Gemeinsames Obsidian Vault Speicher-Setup für KI-Bots
Von Wikiprompt, der freien Prompt-Enzyklopädie
Gemeinsames Obsidian Vault Speicher-Setup für KI-Bots Ein umfassender Workflow-Prompt zur Einrichtung eines gemeinsamen Obsidian-Vaults in einem privaten GitHub-Repository als Langzeitgedächtnis für Claude Code, Codex und Grok-Bots, einschließlich Skill-Dateien, Konfigurationsblöcken und Integrationsschritten.
Prompt-InhaltSpeichern
🌐
Richte von Null aus einen gemeinsamen Speicher ein: einen Obsidian-Vault in einem privaten GitHub-Repo, der von Claude Code, Codex (falls ich ihn habe) und allen meinen Grok-Bots verwendet wird. Führe jeden Schritt selbst aus; stoppe nur, wenn ich klicken oder mich anmelden muss, sage mir genau, was ich tun soll, und warte auf "done". Frage niemals nach Passwörtern, Tokens oder Codes und tippe sie niemals ein. Lösche oder überschreibe niemals etwas, das existiert: Frage zuerst. Sprich mit mir in meiner Sprache.
1. Tools. Installiere, was fehlt. Windows: `winget install -e --source winget --id Git.Git`, `winget install -e --source winget --id GitHub.cli`, `winget install -e --source winget --id Obsidian.Obsidian`. Mac: `xcode-select --install` für git, `brew install gh`, `brew install --cask obsidian` (kein Homebrew: die neuesten GitHub-Releases von cli/cli und obsidianmd/obsidian-releases). Wenn `gh auth status` fehlschlägt, sage mir, ich soll `gh auth login -p https -w` in meinem eigenen Terminal-Fenster ausführen (wenn es fragt, wo ich GitHub verwende, wähle die erste Option), dann führe `gh auth setup-git` aus. OWNER = `gh api user --jq .login`.
2. Repo. `gh repo create ai-memory --private` (wenn es existiert, frage mich; wenn du es nicht ausführen darfst, sage mir, ich soll es auf GitHub erstellen mit New repository: Name ai-memory, Private, kein README, dann warte auf "done"). VAULT = ~/ai-memory (Windows: %USERPROFILE%\ai-memory). Dort: `git init -b main`; wenn git keine Commit-E-Mail hat, setze die Commit-E-Mail dieses Repos auf OWNERs GitHub-Noreply-E-Mail (id = `gh api user --jq .id`) und seinen Commit-Namen auf OWNER. Füge die folgenden Dateien hinzu, committe, füge OWNER/ai-memory als Remote-Origin über HTTPS hinzu, `git push -u origin main`.
- ./index.md: "# Index", die Zeile "Map of this vault: read it first, then only the notes you need.", und "## Notes". ./log.md: "# Log".
- inbox/README.md: "Bots write new notes here." trash/README.md: "Files go here instead of being deleted."
- .gitattributes: `* text=auto eol=lf`. .gitignore: `.obsidian/workspace*.json`
- _bots/vault-memory/SKILL.md, Wort für Wort:
~~~
---
name: vault-memory
description: Shared long-term memory for all bots, an Obsidian vault in the private GitHub repo named in the bot's instructions. Use at the start of any task that may depend on past work (projects, decisions, posts, people, preferences, "remember", "what did we decide") and at the end of every real task. Skip only small talk and one-line answers.
---
# vault-memory
All bots share ONE memory: this repo of Markdown notes. Read it with the GitHub connector (main branch); never ask the user for it.
Read before you answer
- Read ./index.md (the map) and your own _bots/<bot-name>.md if it exists, then only the 1-5 notes the task needs. Never scan the whole vault.
- Trust the notes: don't re-research or re-ask what is written there. If the user now says otherwise, the user wins: write the correction.
Write at the end of every real task (always when the user says "remember" or "save"), one note per task
- New file inbox/YYYY-MM-DD-HHMM-<bot-name>-<topic>.md (UTC; never overwrite): a header (bot, date, topic), then 3-10 lines on what was asked, done, decided, liked or rejected and why, with sources. <bot-name> = your name in the bot list, lowercase with hyphens ("Grok Bot" -> grok-bot); never invent a name like bot or assistant.
- You may keep a short page about yourself in _bots/<bot-name>.md (what you do, what you learned).
- No tool that writes to the repo? Launch a cloud agent on it: "create this exact file with this content and commit it directly to main", then read it back from main. Can't write at all? Tell the user. Never skip silently.
Never
- Delete a file (to remove one: create the same file in trash/, then remove the original), edit notes outside inbox/ and your own _bots/<bot-name>.md unless the user names that note, reorganize the vault, force-push, or write passwords, tokens, keys or codes.
- If a push fails: pull and push again; if it still fails, tell the user.
~~~
3. Claude Code und Codex. Füge diesen Block am Ende von ~/.claude/CLAUDE.md hinzu und, wenn `codex --version` funktioniert, von ~/.codex/AGENTS.md (erstelle, falls fehlend, ändere nichts anderes; schreibe VAULT als den echten Pfad; wenn du eine Datei nicht bearbeiten kannst, drucke den Block und sage mir, wo ich ihn einfügen soll):
~~~
## Shared memory
- My long-term memory is the Obsidian vault at VAULT (private repo OWNER/ai-memory). Before any task about past work, posts, projects, decisions or "remember": `git -C VAULT pull`, read VAULT/index.md, then only the notes you need. Don't ask me what is written there.
- After a decision, a result, a verified fact (with source) or something I liked or rejected: update or create the right note, list new notes in VAULT/index.md, add a line to VAULT/log.md, commit and push. When I say "remember", always write it.
- "Sort the inbox": move useful notes from inbox/ (my bots write there) into the right notes, move processed files to trash/. Never delete anything. Never write passwords, tokens or keys.
~~~
4. Obsidian. Öffne es und sage mir, ich soll "Open folder as vault" klicken und VAULT auswählen. Überspringe Obsidian Sync: GitHub synchronisiert es kostenlos.
5. Grok Bot. Drucke diese Nachricht in einem Code-Block mit ausgefülltem OWNER. Sage mir, ich soll sie in meinen Haupt-Grok-Bot einfügen, tue, was sie sagt, wenn GitHub nicht verbunden ist, und erstelle von nun an neue Bots nur über diesen Haupt-Bot.
~~~
Set up shared memory for all my bots (one time):
1. Check that the GitHub connector can read my private repo OWNER/ai-memory. If not, tell me exactly what to click, then stop.
2. Save _bots/vault-memory/SKILL.md from that repo, word for word, as the skill vault-memory in my shared skill library (replace it if it exists).
3. Add these two lines to your own instructions, once each: "Long-term memory: the private GitHub repo OWNER/ai-memory (Obsidian vault). Before and after each task, use the vault-memory skill." and "Whenever a bot is created or you see a bot without the Long-term memory line, add that line to its instructions once, change nothing else, and tell me."
4. Add the Long-term memory line once to every other bot's instructions. Change nothing else. Skip group chats.
5. Test: read ./index.md and list its headings. Then create inbox/<YYYY-MM-DD-HHMM>-<your-bot-name>-memory-test.md with "memory test from <your-bot-name>", commit it to main (if you can only read GitHub, use a cloud agent as the skill says) and tell me the path.
~~~
6. Check. Wenn ich "done" schreibe, führe `git -C VAULT pull` aus und zeige mir die Test-Notiz des Bots. Wenn sie fehlt, sage mir, was ich beheben soll. Beende mit 3 Zeilen: wo mein Speicher lebt, "create new bots through your main bot", "say remember to save something ".
Melde dich an, um den vollständigen Prompt zu sehen
Weiter mit:
Mit der Anmeldung akzeptierst du unsere Nutzungsbedingungen und Datenschutz
Verwendung
Dieser Prompt ist für die Verwendung mit productivity gedacht. Kopiere den Inhalt oben und füge ihn in dein bevorzugtes KI-Tool ein.
Für beste Ergebnisse passe die Platzhalter (eckige Klammern oder Großbuchstaben) an deine Anforderungen an.
Referenzen
- Kategorie: productivity-Prompts
- Quelle: https://x.com/0xCodila/status/2118763721526817169
Diskussion
0 Kommentare