Agent skill
recall
Use when the current request needs relevant memories from Mem9.
Install this agent skill to your Project
npx add-skill https://github.com/mem9-ai/mem9/tree/main/claude-plugin/skills/recall
SKILL.md
Mem9 Recall
Use this skill when the current request could benefit from historical context stored in Mem9.
Steps
- Check
${CLAUDE_PLUGIN_DATA}/auth.json. If it is missing, tell the user to run/mem9:setupfirst. - Use
${CLAUDE_PLUGIN_DATA}/auth.jsononly as request credentials. Do not print the file contents or the API key. - Search Mem9 with the current question and
agent_id=claude-code-main.
set -euo pipefail
auth_file="${CLAUDE_PLUGIN_DATA}/auth.json"
test -f "$auth_file"
read_api_key_and_base_url="$(node -e 'const fs=require("node:fs"); const data=JSON.parse(fs.readFileSync(process.argv[1],"utf8")); const values=[data.api_key || "", data.base_url || "https://api.mem9.ai"]; process.stdout.write(values.join("\t"));' "$auth_file")"
api_key="${read_api_key_and_base_url%% *}"
base_url="${read_api_key_and_base_url#* }"
test -n "$api_key"
test -n "$base_url"
query='REPLACE_WITH_SEARCH_QUERY'
encoded_query="$(printf '%s' "$query" | node -e 'const fs=require("node:fs"); const raw=fs.readFileSync(0,"utf8").trim(); process.stdout.write(encodeURIComponent(raw));')"
curl -sf --max-time 8 \
-H "Content-Type: application/json" \
-H "X-API-Key: ${api_key}" \
-H "X-Mnemo-Agent-Id: claude-code" \
"${base_url%/}/v1alpha2/mem9s/memories?q=${encoded_query}&agent_id=claude-code-main&limit=10"
Return only the memories that help with the current question. Never reveal secret values.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
mem9-setup
Setup mem9 persistent memory for OpenCode. Triggers: set up mem9, install mem9, configure memory, enable memory, setup memory, mem9 onboarding, memory not working.
store
Use when the user explicitly asks Claude to remember one fact, preference, or instruction in Mem9.
setup
Use when Mem9 needs to be initialized, repaired, or checked in this Claude Code environment.
mem9
Persistent cloud memory plugin for OpenClaw. This document routes setup, troubleshooting, and uninstall flows and defines config boundaries.
mem9
Persistent cloud memory for OpenClaw agents. Use when users say: - "install mem9" - "setup memory" - "add memory plugin" - "openclaw memory" - "mem9 onboarding" - "memory not working" - "import memories" - "upload sessions"
mem9
Persistent cloud memory plugin for OpenClaw. This document routes setup, troubleshooting, and uninstall flows and defines config boundaries.
Didn't find tool you were looking for?