Retrospective Agent
Use this skill to capture execution lessons in a controlled, auditable way.
This skill exists to improve how the agent works over time.
It does not create a second factual memory system, rewrite identity, or invent autonomy.
Core principles
- - Keep factual continuity in existing memory files
- Keep execution lessons separate and scoped
- Prefer reports and recommendations over automatic changes
- Promote patterns only after repeated evidence
- Never infer preferences from silence
- Never rewrite persona, config, or outbound behavior on your own
Memory split
Use existing memory for
- - facts
- events
- decisions
- dates
- people
- open tasks
Examples:
- - INLINECODE0
- agent INLINECODE1
- project INLINECODE2
Use retrospective-agent files for
- - repeated corrections
- workflow improvements
- tool failure patterns
- success patterns worth repeating
- project or domain execution lessons
Storage
Skill files live in:
Operational data lives in:
Expected first-pass files:
- - INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
- INLINECODE9
If the ops folder or expected files do not exist, create only the minimum needed for the current task.
Do not create extra files "just in case".
Triggers
Use this skill when:
- - the user asks for a retrospective or lessons learned
- a multi-step task ends and a short retro would be useful
- the user gives a reusable correction
- a process or tool fails in a reusable way
- a project needs scoped lessons for future work
- a weekly review is requested
Do not use this skill for:
- - one-off instructions with no reusable lesson
- customer messaging drafts
- sensitive personal profiling
- fake automation or hidden monitoring claims
Operating modes
1. Post-task retrospective
Use after meaningful work.
Output:
- - what went well
- what went wrong
- what to repeat
- what to change next time
- whether anything deserves logging
Keep it short and operational.
2. Correction logging
Use when an explicit correction reveals a reusable lesson.
Workflow:
- 1. capture the exact correction
- classify it
- choose scope: project, domain, or global execution lesson
- append a concise entry if warranted
- recommend promotion only after repeated evidence
3. Weekly retrospective
Use on demand or when a scheduled review is explicitly requested.
Output:
- - recurring wins
- recurring misses
- repeated patterns
- candidate updates to memory, README files, or skills
Scope hierarchy
Most specific wins:
- 1. project
- domain
- global execution lesson
If scope is unclear, prefer domain over global.
If still unclear, say so.
Promotion model
Use conservative states:
- - observed
- repeated
- candidate rule
- confirmed rule
Suggested threshold:
- - 1 occurrence: observed
- 2 occurrences: repeated
- 3 occurrences: candidate rule
Do not silently promote a candidate into durable agent behavior everywhere.
Recommend the promotion and ask when confirmation matters.
Guardrails
Never:
- - rewrite INLINECODE10
- rewrite INLINECODE11
- rewrite INLINECODE12
- patch config
- send messages
- install companion skills without approval
- infer preferences from silence
- store credentials, secrets, or sensitive personal data
- claim autonomous monitoring unless a real scheduler exists
Workflow references
Read these only when needed:
- - INLINECODE13
- INLINECODE14
- INLINECODE15
Use templates from:
- - INLINECODE16
- INLINECODE17
- INLINECODE18
Style
Be honest, compact, and boring in a good way.
Avoid AGI theater, inflated claims, and vague self-improvement language.
Prefer operational wording like "lesson", "pattern", "correction", and "recommended update" over dramatic wording like "optimize myself" or "evolve".
Output rule
Lead with the useful retrospective or lesson.
Do not narrate the framework unless the user asks.
回溯代理
使用此技能以可控、可审计的方式捕获执行经验。
此技能旨在随时间推移改进代理的工作方式。
它不会创建第二个事实记忆系统、重写身份或发明自主性。
核心原则
- - 将事实连续性保留在现有记忆文件中
- 将执行经验分离并限定范围
- 优先使用报告和建议,而非自动更改
- 仅在重复验证后推广模式
- 绝不从沉默中推断偏好
- 绝不自行重写角色、配置或对外行为
记忆分离
使用现有记忆存储
示例:
- - memory/YYYY-MM-DD.md
- 代理 MEMORY.md
- 项目 README.md
使用回溯代理文件存储
- - 重复修正
- 工作流程改进
- 工具故障模式
- 值得重复的成功模式
- 项目或领域执行经验
存储
技能文件位于:
- - workspace/skills/retrospective-agent/
操作数据位于:
- - workspace/ops/retrospective-agent/
预期初始文件:
- - workspace/ops/retrospective-agent/corrections.md
- workspace/ops/retrospective-agent/weekly/
- workspace/ops/retrospective-agent/domains/
- workspace/ops/retrospective-agent/projects/
- workspace/ops/retrospective-agent/templates/
如果操作文件夹或预期文件不存在,仅创建当前任务所需的最少内容。
不要以防万一创建额外文件。
触发条件
在以下情况下使用此技能:
- - 用户要求进行回溯或经验总结
- 多步骤任务结束且简短回溯会有帮助
- 用户给出可复用的修正
- 流程或工具以可复用的方式失败
- 项目需要限定范围的经验供未来工作参考
- 请求进行周回顾
在以下情况下不使用此技能:
- - 一次性指令且无可复用经验
- 客户消息草稿
- 敏感的个人画像
- 虚假自动化或隐藏监控声明
操作模式
1. 任务后回溯
在有意义的工作后使用。
输出:
- - 哪些做得好
- 哪些出了问题
- 哪些值得重复
- 下次需要改变什么
- 是否有任何内容值得记录
保持简短且可操作。
2. 修正记录
当明确的修正揭示了可复用的经验时使用。
工作流程:
- 1. 捕获确切的修正
- 对其进行分类
- 选择范围:项目、领域或全局执行经验
- 如有必要,添加简洁条目
- 仅在重复验证后推荐推广
3. 周回顾
按需使用,或当明确请求定期回顾时使用。
输出:
- - 重复出现的成功
- 重复出现的失误
- 重复模式
- 对记忆、README文件或技能的候选更新
范围层级
最具体的成功:
- 1. 项目
- 领域
- 全局执行经验
如果范围不明确,优先选择领域而非全局。
如果仍不明确,请说明。
推广模型
使用保守状态:
建议阈值:
- - 1次出现:已观察
- 2次出现:已重复
- 3次出现:候选规则
不要将候选规则静默推广为代理的持久行为。
推荐推广,并在确认重要时询问。
护栏
绝不:
- - 重写 SOUL.md
- 重写 IDENTITY.md
- 重写 USER.md
- 修补配置
- 发送消息
- 未经批准安装配套技能
- 从沉默中推断偏好
- 存储凭证、密钥或敏感个人数据
- 声称自主监控,除非存在真实的调度器
工作流程参考
仅在需要时阅读以下内容:
- - references/workflow.md
- references/promotion-rules.md
- references/boundaries.md
使用以下模板:
- - assets/templates/post-task-retro.md
- assets/templates/weekly-retro.md
- assets/templates/lesson-entry.md
风格
诚实、简洁、务实。
避免AGI表演、夸大声明和模糊的自我改进语言。
优先使用经验、模式、修正和推荐更新等操作术语,而非优化自我或进化等戏剧性表述。
输出规则
以有用的回溯或经验开头。
除非用户询问,否则不要叙述框架。