capture-learnings
它能做什么
这项技能说明智能体如何在记忆中存储持久的笔记。它涵盖团队知识和个人记忆,以及四种记忆类型。适合希望智能体随时间从反馈和偏好中学习的人。
适用场景
- ✓当你对智能体的错误提供反馈或进行更正的时候。
- ✓当你分享了偏好,或关于你的角色或项目的事实的时候。
- ✓当你发现一个有用的细节,希望下次仍然记得的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/capture-learnings/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请记住,以后所有报告我都希望是简短的摘要,并使用要点列表。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体将笔记保存为一条记忆,并标注类型,例如 user、feedback、project 或 reference。之后的对话开始时会加载这些记忆。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Capture Learnings
This is background knowledge, not a slash command. Organization learnings and your personal memory index are loaded at the start of every conversation, including Slack/integration turns. Capture durable context proactively when you learn something worth remembering.
How to Read & Write Memories
Memories are stored as resources in the SQL database, not as files on disk.
Team/organization knowledge: shared
LEARNINGS.md. Read it first, merge the new fact, then write the full updated file with theresourcestool usingscope: "shared". Shared scope resolves to the active organization; it must never leak to another organization in the same deployment.Personal knowledge:
memory/MEMORY.mdplusmemory/<name>.md, written withsave-memory.Save a memory:
save-memory --name <name> --type <type> --description "..." --content "..."Read a memory:
resource-read --path memory/<name>.mdDelete a memory:
delete-memory --name <name>List all memories:
resource-list --prefix memory/
Memory Types
| Type | Use for |
|---|---|
user |
Preferences, role, personal context, contacts |
feedback |
Corrections, confirmed approaches, things to avoid or repeat |
project |
Ongoing work context, decisions, deadlines, status |
reference |
Pointers to external systems, URLs, API details |
When to Capture
Follow the user's personal memory/INSTRUCTIONS.md when deciding what to
preserve or leave out. It is loaded automatically with the user's personal
AGENTS.md instructions.
At the natural stopping point of a meaningful multi-turn task, review the conversation for durable preferences, corrections, decisions, conventions, or project context that would improve a future thread. Save only new, supported facts; completed task details and temporary debugging notes stay in the thread.
Team and organization knowledge (LEARNINGS.md, shared scope)
- Canonical destinations and workflows (for example, which Content database receives a type of Slack request)
- Required intake fields, ownership, prioritization conventions, metric definitions, and approved terminology
- Durable external references that the whole team needs, including the canonical page/database URL
- Corrections or decisions that should affect every organization member's future Slack and app conversations
Store the fact and a concise provenance link when available. Do not paste full private conversations, customer data, credentials, or secrets into learnings. Put stable always-on policy in shared AGENTS.md; put learned facts and evolving conventions in shared LEARNINGS.md.
User Preferences & Memory (user)
- Tone and style — "I prefer casual tone", "don't use emojis", "keep replies short"
- Personal context — contacts, relationships, habits ("my wife's email is...", "I'm in PST timezone")
- Workflow preferences — "always CC my assistant", "I like to review before sending"
- Role and expertise — "I'm a data scientist", "new to React"
Feedback & Corrections (feedback)
- Corrections — user says "no, do it this way" → capture the right way
- Confirmed approaches — user validates a non-obvious choice ("yes, that's perfect")
- Repeated friction — you hit the same issue twice; save it
Project Context (project)
- Ongoing work — who is doing what, why, by when
- Decisions — why something is done a certain way
- Status — current state of initiatives
References (reference)
- External systems — "bugs are tracked in Linear project INGEST"
- URLs — dashboards, documentation, tools
- API quirks — undocumented behavior, version-specific gotchas
Don't Capture
- Things obvious from reading the code
- Standard language/framework behavior
- Temporary debugging notes
- Anything already in AGENTS.md, shared LEARNINGS.md, or skills
- Ephemeral task details (use tasks/plans instead)
Key Rules
- Save proactively — don't ask permission. When you learn something durable, save it immediately at the correct scope.
- Choose scope by audience. Organization workflow or reference → shared
LEARNINGS.md; one person's preference/context → personal memory. - One memory per topic — e.g.
coding-style,project-alpha, not one giant dump - Read before updating — if a memory exists, read it first and merge, don't overwrite
- Make memories retrievable — concise descriptions include name
常见问题
记忆存储在哪里?
它们作为记录存储在应用的数据库中,而不是磁盘上的文件。
谁能看到团队记忆?
共享的团队笔记只在当前活动的组织内可见。
我能删除一条记忆吗?
可以。技能包含一条通过名称删除记忆的命令。
详情
作者的原始描述
Capture and apply accumulated knowledge via structured memory. Use when the user gives feedback, shares preferences, corrects a mistake, or when you discover something worth remembering for future conversations.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13143
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …