setup
Skill2 starsChanged 9 days agoApache-2.0View on GitHub
First-time setup and repair of agent-memory: checks the tools (git, uv, MemPalace, gh), creates the agent memory repository and its private GitHub remote, creates a starter Obsidian vault, points Claude Code's auto memory at the repository, configures MemPalace as the vault index (embedding model, languages), and verifies everything. Use right after installing the plugin, on "set up agent memory", "install the memory system", "connect my vault", "memory is not loading", "move my memory folder", or when the SessionStart hook says the plugin is not configured.
- Commits and pushes
191 other projects use a version of this.
Adopted by
Most recently taken up by
- hydra-db/hydradb-claude-codetheir own version, first seen Nov 8, 2026
- WALKERKILLER/Look-Tongji-Notestheir own version, first seen Nov 8, 2026
- steerlabs/opensteertheir own version, first seen Nov 8, 2026
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- dsifry/metaswarmtheir own version, first seen Nov 8, 2026
- anombyte93/prd-taskmastertheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-voice-transcription, add-discord and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
juancruzmunozalbeloSkilladd-voice-transcription
Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.
Also in 5 projects that use this
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
juancruzmunozalbeloSkilladd-telegram-swarm
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Also in 7 projects that use this
- +8 more from microsoft
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- anthropics/knowledge-work-plugins★ 35ksame name
- garrytan/gbrain★ 32ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- Q00/ouroboros★ 6.3ksame name
- pytorch/executorch★ 5.2ksame name
- agenticnotetaking/arscontexta★ 3.5ksame name
- aws/agent-toolkit-for-aws★ 3.4ksame name
- spotify/portal-ai-plugins★ 2.8ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- browserSkill
- clean-memorySkill
- codebase-designSkill
- commitSkill
- desktopSkill
- graphicsSkill
- grillingSkill
- implementSkill
- latexSkill
- memory-reviewSkill
- mistakeSkill
- notesSkill
- pdfSkill
- routerSkill
- skill-quality-suiteSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- vault-indexSkill
- videoSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
If the two folders above are empty, the plugin options were never filled: ask the user to set them (each option is a row in /config once …
- Very specific: line 30
Run setup.py check. It lists the tools, the GitHub login, the git identity, and the current settings.
- Distinctive: line 43
Do not install anything yourself without a yes: installing software changes the machine.
- Very specific: line 64
Ask, then setup.py settings --memory "${user_config.memory_dir}".
- Very specific: line 73
If the vault folder is empty or new: setup.py vault --vault "${user_config.vault_dir}" creates the starter layout (Vault map.md, Inbox.md, …
- Distinctive: line 141
Do not claim a stage works that you could not check (a new-session check cannot be run from this session: say it is pending).
“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up agent-memory
Walk the user through it in their language, one stage at a time. Every stage checks first, then asks before changing anything outside the plugin, then verifies. Nothing here is done silently.
- Memory folder:
${user_config.memory_dir} - Vault folder:
${user_config.vault_dir} - Notes language:
${user_config.notes_language} - Script:
${CLAUDE_PLUGIN_ROOT}/scripts/setup.py(writtensetup.pybelow; run it withuv run --no-project "${CLAUDE_PLUGIN_ROOT}/scripts/setup.py" <step>)
If the two folders above are empty, the plugin options were never filled: ask the user to set them
(each option is a row in /config once the plugin is enabled; Claude Code also asks for them when the plugin is enabled), then start again.
Stage 0: what is there
Run setup.py check. It lists the tools, the GitHub login, the git identity, and the current
settings. Tell the user what is missing, grouped:
- Required:
git,uv,mempalace+mempalace-mcpon PATH. Install commands are in the plugin'sdocs/install.md; give them in the user's shell dialect (PowerShell on Windows). MemPalace:uv tool install mempalace, thenuv tool update-shelland restart the terminal and the app somempalace-mcpis on PATH. - Git identity (
user.name,user.email): memory commits need it. Ask for the values; for GitHub, the privacy-safe email is the<id>+<login>@users.noreply.github.comaddress shown in GitHub's email settings. - Optional:
gh(to create the private repo),ffmpegand a Groq key (video tier 3),browser-harness(the browser skill),agent-desktop(the desktop skill). Mention them; install only what the user wants.
Do not install anything yourself without a yes: installing software changes the machine.
Stage 1: the memory repository
setup.py memory --memory "${user_config.memory_dir}": copies the template (README, SCOPES, MEMORY index,claude/rules.md,mistakes/), runsgit initand the first commit. Existing files are never overwritten.- A private remote so memory survives a dead disk. Ask first: it creates something on the
user's GitHub account. With
ghlogged in:gh repo create <name> --private --source "${user_config.memory_dir}" --push. Withoutgh: the user creates an empty private repository on github.com, thengit -C "${user_config.memory_dir}" remote add origin <url>andgit push -u origin main. It must be private: memory holds personal facts. Check withgh repo view <name> --json visibility. memory_autopush(a plugin option, on by default) pushes after every turn once a remote exists.
Stage 2: point Claude Code's auto memory at the repository
Claude Code keeps auto memory per project unless autoMemoryDirectory is set; with it, every
project reads and writes the same memory. A plugin cannot set it (plugin settings only carry
agent and subagentStatusLine), so it goes into the user's ~/.claude/settings.json.
Ask, then setup.py settings --memory "${user_config.memory_dir}". It backs up the file once
(settings.json.bak-agent-memory) and changes only that key. The new value takes effect in the next
session.
The rules (claude/rules.md in the memory repo) need no setting: the plugin's SessionStart hook
prints them into every session. The user edits that file to change them.
Stage 3: the Obsidian vault
- If the vault folder is empty or new:
setup.py vault --vault "${user_config.vault_dir}"creates the starter layout (Vault map.md,Inbox.md, topic folders, the video and PDF registries). An existing vault: do not run it blindly; show what it would add (it only adds missing files) and ask. For an existing vault, write its real top-level folders intoVault map.mdinstead. - The user opens the folder in Obsidian: "Open folder as vault". Obsidian itself is installed from
obsidian.md (
docs/install.md). - Recommend the community plugin Spaced Repetition if they want cards (the
notesskill writes decks in its format).
Stage 4: MemPalace as the vault index
MemPalace has two models inside, and both are the user's choice:
- The embedder (search).
minilmis English-only;embeddinggemmais multilingual (100+ languages, about 300 MB downloaded on first use);openai-compatuses a local server such as Ollama or LM Studio. Recommendembeddinggemmawhenever the notes language is not English. Switching later on a filled palace needsmempalace repair rebuild-index. Since 3.11 a palace refuses to open with a different embedder than the one that built it, and the message names the fix; a palace with no recorded embedder opens with a warning namingmempalace palace set-embedder(vault_index.pyrecords it on the first card).embeddinggemma2is a newer opt-in model; it needsuv tool install "mempalace[embeddinggemma2]"and PyTorch, so do not suggest it by default. - Entity languages: the languages of the notes, for entity detection.
Where the config lives: an install older than 3.10 keeps ~/.mempalace/config.json; a new one
uses ~/.config/mempalace/ (or $XDG_CONFIG_HOME/mempalace/). setup.py resolves it the way
MemPalace does, so do not create ~/.mempalace by hand: an existing folder there with a config
in it takes precedence and splits the setup in two.
Then setup.py mempalace --model <model> --langs <codes>. It also sets hooks.auto_save: false:
here the palace is only the vault index. Session snapshots measured on one real palace were 96 % of
its volume and answered nothing; the mistakes journal lives in the memory repository.
mempalace init has an optional LLM step for entity refinement (Ollama by default; OpenAI-compatible
or Anthropic on request). It is not needed for the index; skip it unless the user wants it, and if an
external provider is chosen, say that note content leaves the machine.
The MCP server comes with the plugin (.mcp.json runs mempalace-mcp); it appears after the app
restarts. A vault that already has notes: run the vault-index skill in batches to card them.
Stage 4b: Office files (optional)
Word, PowerPoint and Excel are handled by Anthropic's own document-skills plugin (docx, pptx,
xlsx, and a pdf for editing, merging and filling PDFs). It is not bundled here: its license
forbids copying and redistribution, so the user installs it from Anthropic under their own terms.
First check whether they already have it: the Claude desktop and web apps ship these skills as
anthropic-skills:docx and the like, and claude plugin list shows an installed
document-skills. If neither, ask, then:
claude plugin marketplace add anthropics/skills
claude plugin install document-skills@anthropic-agent-skills(or the same as /plugin marketplace add anthropics/skills and
/plugin install document-skills@anthropic-agent-skills inside a session). The skills appear after
a restart or /reload-plugins.
Stage 5: verify
setup.py checkagain: everything required showsok.- In a new session: the SessionStart output contains the rules; the auto-memory section of the
system prompt names the memory folder;
ToolSearch("mempalace")returns themempalace_*tools. uv run --no-project "${CLAUDE_PLUGIN_ROOT}/scripts/memory_eval.py" --memory "${user_config.memory_dir}" --dryprints the index size.
Report what was set up, what was skipped and why, and the one thing left for the user to do, if any. Do not claim a stage works that you could not check (a new-session check cannot be run from this session: say it is pending).
Moving things later
- Another memory folder: change the plugin option, move the folder (it is a git repository, moving keeps history), rerun Stage 2.
- Another vault: change the option; the MemPalace cards store paths relative to the vault, so they stay valid if the folder structure inside is the same.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

