一键导入
auto-knowledge-capture
How agents automatically detect and persist learnings at the end of major workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How agents automatically detect and persist learnings at the end of major workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Behavioral rules that make AI coding agents more reliable — verification, self-correction, and scope discipline.
Debugging guidance and structured report template for thorough bug investigation, evidence gathering, and root cause documentation.
Cold-audit a completed delivery — verify the spec was actually delivered, challenge performative claims, and produce a what-landed report.
Guidelines for generating self-contained HTML mockups that look professional and are easy to iterate on.
Shared implementation guidance for making minimal, correct, maintainable code changes that fit existing systems.
The doctrine for `/roadmap-review` — interactive triage of roadmap-shape drift, walked one item at a time, with paste-ready resolution phrasing for the active sizing lens.
| name | auto-knowledge-capture |
| description | How agents automatically detect and persist learnings at the end of major workflows. |
| compatibility | opencode, cursor, claude |
| metadata | {"audience":"agents","purpose":"knowledge-capture"} |
Teach agents how to silently evaluate whether a work session produced knowledge worth capturing, and if so, persist it without prompting the user. This is the "smart auto-capture" skill — it only fires when there's actually something to capture.
This skill is embedded in the final step of /deliver, /diagnose, /retro, and /design. You don't load it manually — it activates automatically at the end of these workflows when knowledge.auto_capture is enabled in hero.json (default: on).
Before writing anything, evaluate whether the session produced novel, reusable knowledge. Ask yourself:
.hero/knowledge/When you determine something is worth capturing:
Don't prompt the user. Don't ask "should I save this?" Just do it.
Classify the learning into the right knowledge type:
.hero/knowledge/conventions/<slug>/spec.md).hero/knowledge/decisions/<slug>/spec.md).hero/knowledge/rules/<slug>/spec.md).hero/knowledge/context/<slug>/spec.md)hero note <slug>)Write concisely. Knowledge entries should be scannable:
Mention it briefly at the end of your response. One line, not a sales pitch:
Run hero index after writing to make it searchable.
---
title: <Pattern Name>
type: convention
status: active
tags: [<tag1>, <tag2>]
created: <YYYY-MM-DD>
---
## Convention
<What the pattern is. 1-2 sentences.>
## Rationale
<Why this pattern exists. What goes wrong without it.>
## Examples
<Good and bad examples if helpful.>
---
title: <Decision Title>
type: decision
status: accepted
tags: [<tag1>, <tag2>]
created: <YYYY-MM-DD>
---
## Decision
<What was decided. 1 sentence.>
## Context
<What prompted this decision.>
## Alternatives Considered
<What else was evaluated and why it was rejected.>
---
title: <Rule Name>
type: rule
status: active
tags: [<tag1>, <tag2>]
created: <YYYY-MM-DD>
---
## Rule
<The constraint. 1 sentence.>
## Rationale
<Why this rule exists.>
Before writing, mentally check against existing knowledge. If you recall that a similar convention or decision already exists from earlier in the conversation or from reading the knowledge base, don't create a duplicate. If the existing entry needs updating, update it instead of creating a new one.
A typical session should produce 0-3 knowledge entries. If you find yourself wanting to write more than 3, you're probably being too granular. Consolidate related learnings into a single entry.