supermemory-setup
Skill4 starsChanged 7 months agoMITView on GitHub
Wires up Supermemory for cross-session semantic memory in cookiedclaw. Saves SUPERMEMORY_CC_API_KEY to ./.cookiedclaw/keys.env, installs the official Supermemory plugin, and helps export the key into the user's shell so CC picks it up at startup. Requires a Supermemory Pro plan. Invoke when the user explicitly asks to set up / install / enable Supermemory in their cookiedclaw workspace.
- Reads credentials
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdcCursor rule
- daemon-restartSkill
- daemon-statusSkill
- debugSkill
- fal-setupSkill
- install-skillSkill
- setupSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run pwd and confirm a cookiedclaw workspace (./.cookiedclaw/ directory).
- Distinctive: line 28
If all three are present, ask:
- Very specific: line 37
Before sending the user to grab a key, ask via AskUserQuestion:
- Very specific: line 56
Wait for the key. Light validation — it should start with sm_ and be reasonably long.
- Distinctive: line 60
Don't echo the key back. Just say *"saved"*.
- Distinctive: line 78
If marketplace already added, the first command is a no-op (fine).
- Distinctive: line 103
If you ever want to wipe memory or browse it, https://console.supermemory.ai is the dashboard.
- Distinctive: line 107
Don't push Supermemory if the user hesitates on Pro — it really does require Pro to be useful, and a frustrated user is worse than no …
- Distinctive: line 108
Don't echo the API key back in confirmations.
- Very specific: line 109
Don't run claude plugin install without confirming the command first.
- Very specific: line 110
Don't try to put SUPERMEMORY_CC_API_KEY in ./.cookiedclaw/keys.env AND skip the shell export — the cookiedclaw channel server doesn't pass …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Supermemory integration
Standalone setup for Supermemory — cross-session semantic memory that auto-captures context for the agent. The user runs this when they want "the bot to remember stuff across days" or "actually retain memory" beyond what the workspace files (IDENTITY/USER/SOUL.md) already do.
This skill is independent from /cookiedclaw:setup. If the workspace doesn't exist yet, point the user at /cookiedclaw:setup first.
[!IMPORTANT] Supermemory requires a Supermemory Pro plan. Mention this BEFORE the user signs up if they don't already have one. Free-tier accounts will get a permission error from the plugin.
Step 1 — Check workspace + existing config
Run pwd and confirm a cookiedclaw workspace (./.cookiedclaw/ directory). If not:
"This doesn't look like a cookiedclaw workspace yet. Run
/cookiedclaw:setupfirst to bootstrap one, then come back here."
Check current state:
./.cookiedclaw/keys.env— does it already haveSUPERMEMORY_CC_API_KEY?claude plugin list --json— isclaude-supermemoryalready installed and enabled?echo $SUPERMEMORY_CC_API_KEY— does the shell already export it?
If all three are present, ask:
- Question: "Supermemory already looks set up. What now?"
- Options:
Re-do — replace the key with a new oneCancel — leave it as is
Step 2 — Confirm Pro plan
Before sending the user to grab a key, ask via AskUserQuestion:
- Question: "Supermemory's CC plugin requires a Supermemory Pro plan. Do you have one, or want me to walk you through signing up first?"
- Options:
I have Pro — let's continueI don't have Pro yet — show me the signupCancel — let me think about it
For "show me signup", tell them:
"Open https://console.supermemory.ai/billing, pick the Pro plan. Once you're on Pro, rerun
/cookiedclaw:supermemory-setupto continue."
For cancel, exit cleanly.
Step 3 — Get the API key
Tell the user:
"Open https://console.supermemory.ai/keys, create an API key (starts with
sm_), and paste it here."
Wait for the key. Light validation — it should start with sm_ and be reasonably long. If not, ask them to double-check.
Save to ./.cookiedclaw/keys.env as SUPERMEMORY_CC_API_KEY=<value> (replace existing line if present, otherwise append). chmod 600 the file.
Don't echo the key back. Just say "saved".
Step 4 — Install the plugin
Use AskUserQuestion:
- Question: "Install the Supermemory plugin now? (Adds their marketplace to Claude Code, then installs
claude-supermemory.)" - Options:
Yes, installNo, I'll do it manually later
On yes:
claude plugin marketplace add supermemoryai/claude-supermemory
claude plugin install claude-supermemoryIf marketplace already added, the first command is a no-op (fine). If plugin already installed, mention you'll skip that step.
Step 5 — Persist the env var
Supermemory's plugin reads SUPERMEMORY_CC_API_KEY from the shell environment, not from ./.cookiedclaw/keys.env (which is only read by the cookiedclaw channel server). For the plugin to work, the var must be exported when CC starts.
Detect the shell with echo $SHELL. Then AskUserQuestion:
- Question: "Where should I put
SUPERMEMORY_CC_API_KEYso it sticks across CC restarts?" - Options:
Append to my shell rc (<detected rc path>)— auto-add anexportline. Detect:bash→~/.bashrczsh→~/.zshrcfish→~/.config/fish/config.fish(useset -gxnotexport)
Show me the line, I'll do it myself— print the export, let user decideUse ~/.supermemory-claude/settings.json instead— point them at https://supermemory.ai/docs/integrations/claude-code
For "auto-add", append (don't overwrite) to the rc file. Check first if the line is already there to avoid duplicates.
Step 6 — Wrap up
Confirm: "Supermemory set up. Restart your shell (so the export picks up) and then restart Claude Code. After that, the agent has access to mcp__claude-supermemory__* tools and Supermemory will auto-capture context as you chat."
Mention briefly:
- Memory is account-scoped on Supermemory's side, so all your CC sessions (cookiedclaw and otherwise) share the same memory pool.
- If you ever want to wipe memory or browse it, https://console.supermemory.ai is the dashboard.
Don'ts
- Don't push Supermemory if the user hesitates on Pro — it really does require Pro to be useful, and a frustrated user is worse than no integration.
- Don't echo the API key back in confirmations.
- Don't run
claude plugin installwithout confirming the command first. - Don't try to put
SUPERMEMORY_CC_API_KEYin./.cookiedclaw/keys.envAND skip the shell export — the cookiedclaw channel server doesn't pass keys to the plugin.
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.

