From mem9
Stores a single fact, preference, or instruction to Mem9 when the user explicitly asks Claude to remember something.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mem9:storeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill only when the user explicitly asks Claude to remember or save something to Mem9.
Use this skill only when the user explicitly asks Claude to remember or save something to Mem9.
${CLAUDE_PLUGIN_DATA}/auth.json only as request credentials. If auth is missing, tell the user to run /mem9:setup. Do not print the file contents or the API key.content API. Do not invent tags client-side.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"
plugin_version="unknown"
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json" ]; then
plugin_version="$(node -e 'const fs=require("node:fs"); const data=JSON.parse(fs.readFileSync(process.argv[1],"utf8")); process.stdout.write(data.version || "unknown");' "${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json")"
fi
curl -sf --max-time 8 \
-H "Content-Type: application/json" \
-H "X-API-Key: ${api_key}" \
-H "X-Mnemo-Agent-Id: claude-code" \
-H "User-Agent: mem9-plugin/claude-code/${plugin_version}" \
-d '{"content":"REPLACE_WITH_MEMORY"}' \
"${base_url%/}/v1alpha2/mem9s/memories"
Confirm back to the user what was saved. Never reveal secret values.
npx claudepluginhub mem9-ai/mem9 --plugin mem9Persists facts, preferences, and decisions to PowerMem for cross-session recall. Invoked when the user asks to remember something or reveals a notable pattern.
Saves facts, decisions, and context to Memsy memory for future sessions. Strips framing verbs and persists the substance verbatim via memsy_ingest.
Save information to Memex long-term memory. Captures the given text (or infers the most important context from the conversation) as a persistent note.