From claude-memory
This skill should be used when the user asks to set up, configure, or install the claude-memory plugin, check memory health, diagnose memory issues, or reconfigure their LLM provider. Trigger phrases include "set up memory", "configure memory", "memory setup", "setup memory plugin", "diagnose memory", "check memory setup", "reconfigure memory provider", "fix memory". Also triggered by /memory-setup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-memory:memory-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interactive guided setup for the claude-memory plugin. Walk the user through each step, asking for their input before proceeding.
Interactive guided setup for the claude-memory plugin. Walk the user through each step, asking for their input before proceeding.
First, check the current state of the installation:
~/.config/claude-memory/.venv/bin/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose.py 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose.py
This returns a JSON array of check results. Present them as a status table to the user:
| Component | Status | Detail |
|---|---|---|
| Python version | ok/fail | version number |
| Virtual environment | ok/fail | path |
| ... | ... | ... |
Use checkmarks and X marks for status. If everything is "ok", tell the user the plugin is already configured and ask if they want to reconfigure. If there are failures, explain what needs fixing.
Ask the user which LLM provider they want to use for observation extraction and consolidation. Present these options clearly:
gemini-3.1-flash-lite-preview. Requires GOOGLE_API_KEY.claude-haiku-4-5-20251001. Requires ANTHROPIC_API_KEY.gpt-4o-mini. Requires OPENAI_API_KEY.claude -p. Slightly slower but zero additional cost.Wait for the user to choose before proceeding. If the diagnostics showed an API key already set, mention which provider it corresponds to.
If the user chose Google, Anthropic, or OpenAI:
export GOOGLE_API_KEY="your-key" (get from https://aistudio.google.com/)export ANTHROPIC_API_KEY="your-key"export OPENAI_API_KEY="your-key"~/.zshrc, ~/.bashrc, or ~/.secrets.env) for persistenceIf the user chose "claude" or "local", skip this step.
If the user chose "local", ask for the endpoint URL (default: http://localhost:8080).
Ask if they want to use the default model or specify a custom one. Show the default for their chosen provider:
| Provider | Default Model |
|---|---|
gemini-3.1-flash-lite-preview | |
| Anthropic | claude-haiku-4-5-20251001 |
| OpenAI | gpt-4o-mini |
| Claude | haiku |
| Local | default |
Most users should keep the default. Only advanced users need to change this.
Ask if the user wants to customize these (show defaults — most users should keep them):
claude -p if the configured provider's API key is missingOnce all choices are collected, write the config file:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/write_config.py \
--provider "<chosen_provider>" \
--model "<chosen_model>" \
--fallback-to-claude "<true_or_false>" \
--retention-days <days> \
--max-inject-tokens <tokens>
For local provider, add --local-url "<url>".
Show the user the resulting config that was written to ~/.config/claude-memory/config.json.
Execute the plugin setup script to create the venv, install dependencies, and initialize the database:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh
If this fails, help the user debug based on the error output.
Run diagnostics again to confirm everything passes:
~/.config/claude-memory/.venv/bin/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose.py 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose.py
Present the updated status table. All checks should now be "ok".
Give the user a concise summary of what was set up:
~/.config/claude-memory/config.json~/.config/claude-memory/.venv/Remind the user about available slash commands:
/memory-query <topic> — Search memories/memory-status — Check database health/memory-consolidate — Manually trigger consolidation/memory-forget <query> — Remove observationsnpx claudepluginhub seangsisg/deja-claudeCross-host durable memory for AI agents using the ling-mem CLI. Maintains a three-tier model of who the user is across sessions and hosts (Claude Code, Codex, OpenClaw).
Installs, configures, or upgrades ClaudeMemory: checks gem version, runs doctor, inits databases, adds version markers, and reports status.
Manages total-recall memory system: search, store, forget memories, inspect tiers, run eval, and configure. Automatically activates on memory-related queries.