agentleFS
letsloose501letsloose501/sqs-agent-memory/skills/setup/SKILL.md

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

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.
  • juancruzmunozalbeloSkill

    add-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

  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • juancruzmunozalbeloSkill

    add-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

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
  1. Very specific:

    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 …

    line 25
  2. Very specific:

    Run setup.py check. It lists the tools, the GitHub login, the git identity, and the current settings.

    line 30
  3. Distinctive:

    Do not install anything yourself without a yes: installing software changes the machine.

    line 43
  4. Very specific:

    Ask, then setup.py settings --memory "${user_config.memory_dir}".

    line 64
  5. Very specific:

    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, …

    line 73
  6. Distinctive:

    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).

    line 141

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 (written setup.py below; run it with uv 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-mcp on PATH. Install commands are in the plugin's docs/install.md; give them in the user's shell dialect (PowerShell on Windows). MemPalace: uv tool install mempalace, then uv tool update-shell and restart the terminal and the app so mempalace-mcp is 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.com address shown in GitHub's email settings.
  • Optional: gh (to create the private repo), ffmpeg and 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

  1. setup.py memory --memory "${user_config.memory_dir}": copies the template (README, SCOPES, MEMORY index, claude/rules.md, mistakes/), runs git init and the first commit. Existing files are never overwritten.
  2. A private remote so memory survives a dead disk. Ask first: it creates something on the user's GitHub account. With gh logged in: gh repo create <name> --private --source "${user_config.memory_dir}" --push. Without gh: the user creates an empty private repository on github.com, then git -C "${user_config.memory_dir}" remote add origin <url> and git push -u origin main. It must be private: memory holds personal facts. Check with gh repo view <name> --json visibility.
  3. 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

  1. 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 into Vault map.md instead.
  2. The user opens the folder in Obsidian: "Open folder as vault". Obsidian itself is installed from obsidian.md (docs/install.md).
  3. Recommend the community plugin Spaced Repetition if they want cards (the notes skill 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). minilm is English-only; embeddinggemma is multilingual (100+ languages, about 300 MB downloaded on first use); openai-compat uses a local server such as Ollama or LM Studio. Recommend embeddinggemma whenever the notes language is not English. Switching later on a filled palace needs mempalace 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 naming mempalace palace set-embedder (vault_index.py records it on the first card). embeddinggemma2 is a newer opt-in model; it needs uv 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

  1. setup.py check again: everything required shows ok.
  2. 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 the mempalace_* tools.
  3. uv run --no-project "${CLAUDE_PLUGIN_ROOT}/scripts/memory_eval.py" --memory "${user_config.memory_dir}" --dry prints 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.