Mem Setup skill for Claude

This skill should be used when the user asks to "set up claude-mem", "pair claude-mem", "connect cmem", "add my cmem key", "set up cloud sync in Cowork" or in the Claude app, or provides cmem.ai Connect values (sync token, user id, SyncHub URL) for this plugin. Configures the CMEM Pro plugin credentials.

Mem Setup SKILL.md

The full skill file from thedotmack/claude-mem (Apache-2.0).

Claude-Mem Setup (Claude app pairing)

Configure this plugin with the user's own cmem.ai credentials so hooks can capture and inject memory. Anyone can pair — credentials are per-user configuration, never hardcoded in plugin logic.

What to collect

From cmem.ai → Connect, the user has three values:

  1. sync token (starts with cm_) — used as the bearer API key
  2. user id (UUID)
  3. SyncHub URL (https://sync.cmem.ai)

If the user pastes the whole Connect blurb, extract the three values from it. If any are missing, ask for the sync token at minimum — the other two are optional.

Secret handling — non-negotiable

  • Never echo the token back in conversation, put it in a shell argv, or log it.
  • Move it only via file writes (Write/Edit tool) and file reads.

Steps

  1. Locate the installed plugin root (this skill's own plugin). Update its config.json: set apiKey to the sync token, userId, and syncHubUrl. Leave other settings unless the user asks (inject toggles). Project naming is automatic (cmem_work_*) and is not configurable.

  2. Claude app containers are ephemeral: edits to the installed copy last only for this session. To make pairing permanent, repackage — zip the plugin directory as <plugin-name>.plugin and send it to the user to re-install (the cowork-plugin skill's packaging flow). Tell the user this is why.

  3. If this machine also has a local claude-mem install (a ~/.claude-mem/ directory exists), write the same values to ~/.claude-mem/settings.json with mode 0600 (CLAUDE_MEM_CLOUD_SYNC_TOKEN, CLAUDE_MEM_CLOUD_SYNC_USER_ID, CLAUDE_MEM_CLOUD_SYNC_HUB_URL keys — the same keys the local claude-mem cloud-sync pairing writes). This plugin's hooks stay off wherever claude-mem is installed locally, so that pairing is what carries this machine's work to cmem.ai. The worker reads those keys only at startup: restart it and run the claude-mem cloud-sync skill's Verify step, which must report configured: true and hub.reachable: true. Don't report success before it does; if it never does, pair through that skill's installer flow instead.

  4. Verify without exposing the secret:

    node "${CLAUDE_PLUGIN_ROOT}/scripts/cmem-hook.mjs" status
    

    Report the masked output. A MISSING key means the write didn't land; a 404 on /api/hooks/context is expected until the Pro endpoints deploy (search/injection still work via /api/mcp).

Alternate source

Env vars override everything and need no file edits: CMEM_API_KEY, CMEM_USER_ID, CMEM_SYNC_HUB_URL, CMEM_API_BASE.

How to install Mem Setup

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit thedotmack/claude-mem/cowork/skills/mem-setup#main ~/.claude/skills/mem-setup

Codex

npx degit thedotmack/claude-mem/cowork/skills/mem-setup#main ~/.codex/skills/mem-setup

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Mem Setup skill do?

This skill should be used when the user asks to "set up claude-mem", "pair claude-mem", "connect cmem", "add my cmem key", "set up cloud sync in Cowork" or in the Claude app, or provides cmem.ai Connect values (sync token, user id, SyncHub URL) for this plugin. Configures the CMEM Pro plugin credentials.

+How do I install Mem Setup in Claude Code?

Copy the skill folder into ~/.claude/skills/mem-setup, for example with "npx degit thedotmack/claude-mem/cowork/skills/mem-setup#main ~/.claude/skills/mem-setup". Claude Code loads it automatically and uses it when a task matches.

+Does Mem Setup work with ChatGPT or Codex?

Yes. Mem Setup uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/mem-setup. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Mem Setup free?

Mem Setup is published on GitHub by thedotmack under the Apache-2.0 license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Connect

    Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub,…

    ComposioHQ/awesome-claude-skills★ 80k
  5. Cellprofiler

    Runs reproducible CellProfiler microscopy pipelines for nuclear segmentation, cell counts, and per-object fluorescence measurements.

    K-Dense-AI/scientific-agent-skills★ 58k
  6. Database Lookup

    Queries documented public database APIs with explicit endpoints, filters, pagination, and provenance.

    K-Dense-AI/scientific-agent-skills★ 58k
  7. Ginkgo Cloud Lab

    Guides protocol selection, input preparation, pricing checks, and browser ordering on Ginkgo Bioworks Cloud Lab (cloud.ginkgo.bio).

    K-Dense-AI/scientific-agent-skills★ 58k
  8. Matchms

    Processes, cleans, compares, and searches tandem mass spectra with matchms.

    K-Dense-AI/scientific-agent-skills★ 58k
  9. Nextflow

    Builds, runs, and debugs Nextflow DSL2 pipelines and nf-core workflows.

    K-Dense-AI/scientific-agent-skills★ 58k

See all devops & cloud skills →

More skills from thedotmack

  1. Mode Creator

    Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags,…

    thedotmack/claude-mem★ 118k
  2. Oh My Issues

    Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and…

    thedotmack/claude-mem★ 118k
  3. Owner Goals

    Map what the owner wants from the prompts they typed themselves (prompts an agent wrote are left out), then sort it into focus areas, asks…

    thedotmack/claude-mem★ 118k

All skills by thedotmack →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.