how-it-works 精选
Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".
安装方式
cp -r plugin/skills/how-it-works ~/.claude/skills/how-it-works把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
/plugin marketplace add thedotmack/claude-mem⚠️ 该命令形态随客户端版本变化,仅在检测到 .claude-plugin/marketplace.json 时展示;不可用时请用「目录复制」。
https://raw.githubusercontent.com/thedotmack/claude-mem/356b7c08f64c29f931171e264e848772a039da62/plugin/skills/how-it-works/SKILL.md下载后另存为 ~/.claude/skills/how-it-works/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/thedotmack/claude-mem.git
依赖与权限
- 无需 API Key
- 无需联网
- 依赖外部命令:
npx - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
How claude-mem works
What it does
Every Read, Edit, and Bash that Claude makes turns into a compressed observation. Observations get summarized at session end. Relevant ones get auto-injected into future prompts so the next session starts with context from the last one — no re-explaining the codebase, no re-discovering decisions.
When it kicks in
Memory injection starts on your second session in a project.
The first session in a fresh project seeds memory; subsequent sessions receive auto-injected context for relevant past work. Run /learn-codebase if you want to front-load the entire repo into memory in a single pass (~5 minutes, optional).
Where data lives
Everything stays in ~/.claude-mem on this machine.
Nothing leaves your machine except calls to whichever AI provider you configured for compression (Claude / OpenRouter / Gemini). Local installs contact cmem.ai once, at signup, to create the sign-in link; nothing else is sent to cmem.ai. The SQLite database, vector index, logs, and settings all live under that directory and are removed cleanly on npx claude-mem uninstall.
质量与来源
- 所属仓库
- thedotmack/claude-mem
- 仓库星标
- 10.0 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- 356b7c08f64c
- 内容指纹
- sha256:465a3433dce7c26
- 文件路径
- plugin/skills/how-it-works/SKILL.md