跳到主要内容

mem-setup 精选

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 provides cmem.ai Connect values (sync token, user id, SyncHub URL) for this plugin. Configures the claude-mem-cowork plugin credentials.

在 GitHub 打开

安装方式

cp -r cowork/skills/mem-setup ~/.claude/skills/mem-setup

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/thedotmack/claude-mem.git

依赖与权限

  • 需要 API Key —— 使用前需配置相应的密钥环境变量
  • 需要联网访问外部服务
  • 依赖外部命令:node make
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 thedotmack/claude-mem@356b7c0 · 许可 Apache-2.0 · 内容未修改

Claude-Mem Setup (Cowork 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 (a workers.dev or cmem.ai URL)

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.

  1. Cowork 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.

  1. If this machine also has a local claude-mem install (a ~/.claude-mem/

directory exists), optionally 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) — the hook script

and the local worker both read it.

  1. 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.

质量与来源

所属仓库
thedotmack/claude-mem
仓库星标
10.0 万
最近更新
今天
采集时间
今天
commit
356b7c08f64c
内容指纹
sha256:48fcdb2dd3f3297
文件路径
cowork/skills/mem-setup/SKILL.md

同仓库其它 Skill

查看全部 36 个
Agent Cost Report
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端
claude-mem-install
Use this when setting up claude-mem on Cursor: local or remote worker, local host-login observer or remote cmem.ai inference.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端
mem-search
Use this when the user asks to search memory, "did we already solve this?", "how did we do X last time?", or wants work from previous sessions.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端
Agent Cost Report
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端
host-observer
Use this when fulfilling claude-mem observer jobs on Grok Bot: reply only skip_summary or one full observation XML, never prose.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端
claude-mem-install
Use this when setting up claude-mem on Grok Bot: local worker plus CMEM Pro observer (default), optional host-login observer, or remote cmem.ai. No Cursor required.
精选 thedotmack/claude-mem 10.0 万 原文
Claude CodeCodex CLIMCP 客户端

相似 Skill

更多「编码」
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端