跳到正文
Skillpedia
智能体101k · #1272

how-it-works

它能做什么

这个 AI 代理会记录你的操作(读取、编辑、执行命令),并在会话结束时进行总结。下次你在同一个项目上工作时,它会利用这些记录为你提供上下文,这样你就不必把所有内容再解释一遍。

适用场景

  • ✓当你开始一个新项目,希望 AI 记住你之前做过的事情时。
  • ✓当你希望 AI 了解你的工作历史,而不必每次重复说明时。
  • ✓为了避免每次回到某个任务时,都要重新解释代码或之前的决定。

技能链接

https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/how-it-works/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/how-it-works/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“Claude 是怎么工作的?”

每周 5 个新技能,1 分钟读完。

工作原理

它会把你的操作记录为‘观察记录’。会话结束时,它会对这些观察记录做总结。下次使用时,它会把重要的笔记插入到发给 AI 的提示词中,让 AI 一开始就带着上下文开始工作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

常见问题

AI 什么时候开始记住我的工作内容?

从你在同一个项目上的第二次工作会话开始。第一次时,它会先‘播下记忆的种子’;之后的会话中,它会带入已经学到的上下文。

这些笔记存放在哪里?

所有信息都保存在你的电脑上,位于 ~/.claude-mem 文件夹中。

我的数据会离开我的电脑吗?

不会。只有笔记会被发送给你配置的用于总结的 AI 模型,其他内容都不会离开你的电脑。

详情

作者的原始描述

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?".

repo: thedotmack/claude-mem

热度

GitHub 星标
101k
排名
#1272
许可证
Apache-2.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能