跳到正文
Skillpedia
智能体30k · #9353

remember

它能做什么

这项技能把一条重要的见解、决定或事实保存到智能体的长期记忆中。它会为记忆添加关键词标签,方便之后再次找到。

适用场景

  • ✓当你对某件重要的事情说“记住这个”、“保存这个”或“别忘了”的时候。
  • ✓当你做出了一项决定,并且未来的会话应当知道时。
  • ✓当你希望为之后的工作保留某个事实,例如关键文件或你做出的选择时。

技能链接

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/remember/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 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

  1. Pull the core insight, decision, or fact out of $ARGUMENTS.
  2. Extract 2-5 lowercased concept phrases. Prefer specific over generic (jwt-refresh-rotation beats auth).
  3. Extract referenced file paths (absolute or repo-relative). Empty if none.
  4. Call memory_save with content, concepts (comma-separated string), and files (comma-separated string). In a multi-agent setup pass agentId so the memory lands in the right agent's scope.
  5. Confirm the save and echo the concepts so the user knows the retrieval terms.
  6. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能