agentleFS
cookiedclawcookiedclaw/cookiedclaw-claude-code/skills/supermemory-setup/SKILL.md

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

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

    Run pwd and confirm a cookiedclaw workspace (./.cookiedclaw/ directory).

    line 18
  2. Distinctive:

    If all three are present, ask:

    line 28
  3. Very specific:

    Before sending the user to grab a key, ask via AskUserQuestion:

    line 37
  4. Very specific:

    Wait for the key. Light validation — it should start with sm_ and be reasonably long.

    line 56
  5. Distinctive:

    Don't echo the key back. Just say *"saved"*.

    line 60
  6. Distinctive:

    If marketplace already added, the first command is a no-op (fine).

    line 78
  7. Distinctive:

    If you ever want to wipe memory or browse it, https://console.supermemory.ai is the dashboard.

    line 103
  8. Distinctive:

    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 …

    line 107
  9. Distinctive:

    Don't echo the API key back in confirmations.

    line 108
  10. Very specific:

    Don't run claude plugin install without confirming the command first.

    line 109
  11. Very specific:

    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 …

    line 110

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

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

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:setup first to bootstrap one, then come back here."

Check current state:

  • ./.cookiedclaw/keys.env — does it already have SUPERMEMORY_CC_API_KEY?
  • claude plugin list --json — is claude-supermemory already 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 one
    • Cancel — 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 continue
    • I don't have Pro yet — show me the signup
    • Cancel — 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-setup to 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, install
    • No, I'll do it manually later

On yes:

claude plugin marketplace add supermemoryai/claude-supermemory
claude plugin install claude-supermemory

If 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_KEY so it sticks across CC restarts?"
  • Options:
    • Append to my shell rc (<detected rc path>) — auto-add an export line. Detect:
      • bash → ~/.bashrc
      • zsh → ~/.zshrc
      • fish → ~/.config/fish/config.fish (use set -gx not export)
    • Show me the line, I'll do it myself — print the export, let user decide
    • Use ~/.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 install without confirming the command first.
  • 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 keys to the plugin.

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.