remember
它能做什么
这项技能把一条重要的见解、决定或事实保存到智能体的长期记忆中。它会为记忆添加关键词标签,方便之后再次找到。
适用场景
- ✓当你对某件重要的事情说“记住这个”、“保存这个”或“别忘了”的时候。
- ✓当你做出了一项决定,并且未来的会话应当知道时。
- ✓当你希望为之后的工作保留某个事实,例如关键文件或你做出的选择时。
技能链接
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/remember/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请记住:我们每次使用时都会轮换 JWT 刷新令牌,旧令牌会在刷新文件中被撤销。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从你的消息中提取关键要点,添加几个具体的搜索标签以及相关文件路径,然后保存。它会确认保存成功,并显示这些标签,以便你之后知道如何找到它。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
The user wants to save this to long-term memory: $ARGUMENTS
Quick start
memory_save {
"content": "We rotate JWT refresh tokens on every use; the old token is revoked server-side in auth/refresh.ts.",
"concepts": "jwt-refresh-rotation, token-revocation, auth-flow",
"files": "src/auth/refresh.ts"
}
Expected output:
Saved memory abc12345 with 3 concepts: jwt-refresh-rotation, token-revocation, auth-flow.
Why
A memory is only as useful as the terms that retrieve it. Tag with specific
concepts so a future recall finds it, and preserve the user's own phrasing.
Workflow
- Pull the core insight, decision, or fact out of
$ARGUMENTS. - Extract 2-5 lowercased concept phrases. Prefer specific over generic
(
jwt-refresh-rotationbeatsauth). - Extract referenced file paths (absolute or repo-relative). Empty if none.
- Call
memory_savewithcontent,concepts(comma-separated string), andfiles(comma-separated string). In a multi-agent setup passagentIdso the memory lands in the right agent's scope. - Confirm the save and echo the concepts so the user knows the retrieval terms.
- To update a fact, save the corrected version outright: near-duplicate content supersedes the old record, which leaves recall but stays in the version chain.
Anti-patterns
WRONG: concepts: "stuff, code, notes" (generic tags nothing can find later).
RIGHT: concepts: "jwt-refresh-rotation, token-revocation" (specific, retrievable).
Checklist
- Content preserves the user's phrasing, not a paraphrase.
- Concepts are specific, lowercased, 2-5 items.
- File paths are real references, not guesses.
- Confirmation echoes the exact concepts tagged.
See also
recall: retrieve what you save here (the pair to this skill).forget: remove a memory you saved by mistake.lesson: behavioral rules from corrections; memories are for facts.memory-discipline: when to save unprompted.
Troubleshooting
See TROUBLESHOOTING.md if memory_save is not available.
常见问题
它如何选择合适的标签?
它会从内容中挑选两到五个具体的关键词,避免“笔记”或“代码”之类的泛泛之词。
我之前保存的事实如何更新?
保存修正后的版本即可。新记录会在搜索中取代旧记录,变更历史也会被保留。
一条记忆可以只属于某一个智能体吗?
可以。在多智能体配置中,记忆可以保存到特定智能体的范围内。
详情
作者的原始描述
Save an insight, decision, or learning to agentmemory's long-term storage with searchable concept tags. Use when the user says "remember this", "save this", "note that", "don't forget", or wants to preserve knowledge for future sessions.
repo: rohitg00/agentmemory
热度
- GitHub 星标
- 30k
- 排名
- #9353
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agentmemory-agents
30k帮你的智能体把 agentmemory 记忆服务器连接到 Claude Code、Cursor 和 Codex 等编程工具。
agentmemory-architecture
30k解释 agentmemory 如何为编程智能体存储、搜索和管理记忆,从记录到回忆的整个过程。
agentmemory-config
30k帮你的智能体设置并检查 agentmemory 记忆服务器,包括端口、配置和功能开关。
agentmemory-hooks
30k帮你的智能体自动从编程会话中记录有用的笔记,而不需要你逐条手动保存。