post-mortem
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePost-Mortem Skill
Post-Mortem Skill
Purpose: Wrap up completed work — validate it shipped correctly and extract learnings.
Two steps:
- — Did we implement it correctly?
/council validate - — What did we learn?
/retro
用途: 收尾已完成的工作——验证成果是否正确交付,并提取经验教训。
两个步骤:
- —— 我们的实施是否符合要求?
/council validate - —— 我们学到了什么?
/retro
Quick Start
快速开始
bash
/post-mortem # wraps up recent work
/post-mortem epic-123 # wraps up specific epic
/post-mortem --quick recent # fast inline wrap-up, no spawning
/post-mortem --deep recent # thorough council review
/post-mortem --mixed epic-123 # cross-vendor (Claude + Codex)
/post-mortem --explorers=2 epic-123 # deep investigation before judging
/post-mortem --debate epic-123 # two-round adversarial reviewbash
/post-mortem # 收尾近期工作
/post-mortem epic-123 # 收尾特定epic
/post-mortem --quick recent # 快速内联收尾,不启动独立进程
/post-mortem --deep recent # 全面的Council评审
/post-mortem --mixed epic-123 # 跨供应商(Claude + Codex)评审
/post-mortem --explorers=2 epic-123 # 评审前先进行深度调查
/post-mortem --debate epic-123 # 两轮对抗式评审Execution Steps
执行步骤
Step 1: Identify Completed Work
步骤1:确定已完成的工作
If epic/issue ID provided: Use it directly.
If no ID: Find recently completed work:
bash
undefined如果提供了epic/问题ID: 直接使用该ID。
如果未提供ID: 查找近期已完成的工作:
bash
undefinedCheck for closed beads
查看已关闭的bead
bd list --status closed --since "7 days ago" 2>/dev/null | head -5
bd list --status closed --since "7 days ago" 2>/dev/null | head -5
Or check recent git activity
或查看近期git活动
git log --oneline --since="7 days ago" | head -10
undefinedgit log --oneline --since="7 days ago" | head -10
undefinedStep 2: Load the Original Plan/Spec
步骤2:加载原始计划/规格说明
Before invoking council, load the original plan for comparison:
- If epic/issue ID provided: to get the spec/description
bd show <id> - Search for plan doc:
ls .agents/plans/ | grep <target-keyword> - Check git log: to find the relevant bead reference
git log --oneline | head -10
If a plan is found, include it in the council packet's field:
context.specjson
{
"spec": {
"source": "bead na-0042",
"content": "<the original plan/spec text>"
}
}调用Council之前,加载原始计划以便进行对比:
- 如果提供了epic/问题ID: 使用获取规格说明/描述
bd show <id> - 搜索计划文档:
ls .agents/plans/ | grep <目标关键词> - 查看git日志: 查找相关的bead引用
git log --oneline | head -10
如果找到计划,将其包含在Council数据包的字段中:
context.specjson
{
"spec": {
"source": "bead na-0042",
"content": "<原始计划/规格说明文本>"
}
}Step 3: Council Validates the Work
步骤3:Council验证工作成果
Run with the retrospective preset and always 3 judges:
/council/council --deep --preset=retrospective validate <epic-or-recent>Default (3 judges with retrospective perspectives):
- : What was planned vs what was delivered? What's missing? What was added?
plan-compliance - : What shortcuts were taken? What will bite us later? What needs cleanup?
tech-debt - : What patterns emerged? What should be extracted as reusable knowledge?
learnings
Post-mortem always uses 3 judges () because completed work deserves thorough review.
--deepThe plan/spec content is injected into the council packet context so the judge can compare planned vs delivered.
plan-complianceWith --quick (inline, no spawning):
/council --quick validate <epic-or-recent>Single-agent structured review. Fast wrap-up without spawning.
With debate mode:
/post-mortem --debate epic-123Enables adversarial two-round review for post-implementation validation. Use for high-stakes shipped work where missed findings have production consequences. See docs for full --debate details.
/councilAdvanced options (passed through to council):
- — Cross-vendor (Claude + Codex) with retrospective perspectives
--mixed - — Override with different personas (e.g.,
--preset=<name>for production readiness)--preset=ops - — Each judge spawns N explorers to investigate the implementation deeply before judging
--explorers=N - — Two-round adversarial review (judges critique each other's findings before final verdict)
--debate
使用回顾预设并指定3名评审者运行:
/council/council --deep --preset=retrospective validate <epic或近期工作>默认配置(3名带回顾视角的评审者):
- :计划内容与交付成果有何差异?缺少了什么?新增了什么?
plan-compliance - :采取了哪些捷径?哪些问题会在后续造成影响?哪些内容需要清理?
tech-debt - :出现了哪些模式?哪些内容可以提炼为可复用的知识?
learnings
Post-mortem始终使用3名评审者(),因为已完成的工作值得全面评审。
--deep计划/规格说明内容会被注入到Council数据包的上下文中,以便评审者对比计划与交付成果。
plan-compliance使用--quick(内联模式,不启动独立进程):
/council --quick validate <epic或近期工作>单Agent结构化评审,快速收尾无需启动独立进程。
使用辩论模式:
/post-mortem --debate epic-123为实施后验证启用两轮对抗式评审。适用于高风险已交付工作,若遗漏问题会对生产环境造成影响。查看文档了解的完整细节。
/council--debate高级选项(传递给Council):
- —— 跨供应商(Claude + Codex)并采用回顾视角
--mixed - —— 用不同角色覆盖默认配置(例如
--preset=<名称>用于生产就绪性评审)--preset=ops - —— 每位评审者在评审前启动N个探索者深入调查实施细节
--explorers=N - —— 两轮对抗式评审(评审者在给出最终结论前互相批判对方的发现)
--debate
Step 4: Extract Learnings
步骤4:提取经验教训
Run to capture what we learned:
/retro/retro <epic-or-recent>Retro captures:
- What went well?
- What was harder than expected?
- What would we do differently?
- Patterns to reuse?
- Anti-patterns to avoid?
Error Handling:
| Failure | Behavior |
|---|---|
| Council fails | Stop, report council error, no retro |
| Retro fails | Proceed, report learnings as "⚠️ SKIPPED: retro unavailable" |
| Both succeed | Full post-mortem with council + learnings |
Post-mortem always completes if council succeeds. Retro is optional enrichment.
运行记录我们学到的内容:
/retro/retro <epic或近期工作>Retro记录内容:
- 哪些方面做得好?
- 哪些方面比预期更困难?
- 下次我们会怎么做?
- 可复用的模式?
- 需要避免的反模式?
错误处理:
| 失败场景 | 行为 |
|---|---|
| Council执行失败 | 停止操作,报告Council错误,不执行Retro |
| Retro执行失败 | 继续操作,记录经验教训为"⚠️ 已跳过:Retro不可用" |
| 两者均执行成功 | 完整的Post-Mortem流程,包含Council验证和经验教训提取 |
只要Council执行成功,Post-Mortem流程就会完成。Retro是可选的增强步骤。
Step 5: Write Post-Mortem Report
步骤5:编写Post-Mortem报告
Write to:
.agents/council/YYYY-MM-DD-post-mortem-<topic>.mdmarkdown
undefined保存路径:
.agents/council/YYYY-MM-DD-post-mortem-<主题>.mdmarkdown
undefinedPost-Mortem: <Epic/Topic>
Post-Mortem:<Epic/主题>
Date: YYYY-MM-DD
Epic: <epic-id or "recent">
Duration: <how long it took>
日期: YYYY-MM-DD
Epic: <epic-id或"近期工作">
时长: <耗时多久>
Council Verdict: PASS / WARN / FAIL
Council评审结论:通过 / 警告 / 失败
| Judge | Verdict | Key Finding |
|---|---|---|
| Plan-Compliance | ... | ... |
| Tech-Debt | ... | ... |
| Learnings | ... | ... |
| 评审者 | 结论 | 关键发现 |
|---|---|---|
| 计划合规性 | ... | ... |
| 技术债务 | ... | ... |
| 经验教训 | ... | ... |
Implementation Assessment
实施评估
<council summary>
<Council总结>
Concerns
问题与担忧
<any issues found>
<发现的所有问题>
Learnings (from /retro)
经验教训(来自/retro)
What Went Well
做得好的方面
- ...
- ...
What Was Hard
困难之处
- ...
- ...
Do Differently Next Time
改进措施
- ...
- ...
Patterns to Reuse
可复用模式
- ...
- ...
Anti-Patterns to Avoid
需避免的反模式
- ...
- ...
Status
状态
[ ] CLOSED - Work complete, learnings captured
[ ] FOLLOW-UP - Issues need addressing (create new beads)
undefined[ ] 已关闭 - 工作完成,经验教训已记录
[ ] 待跟进 - 存在需要处理的问题(创建新的bead)
undefinedStep 6: Feed the Knowledge Flywheel
步骤6:为知识飞轮提供数据
Post-mortem automatically feeds learnings into the flywheel:
bash
mkdir -p .agents/knowledge/pending
if command -v ao &>/dev/null; then
ao forge index .agents/learnings/ 2>/dev/null
echo "Learnings indexed in knowledge flywheel"
else
# Retro already wrote to .agents/learnings/ — copy to pending for future import
cp .agents/learnings/YYYY-MM-DD-*.md .agents/knowledge/pending/ 2>/dev/null
echo "Note: Learnings saved to .agents/knowledge/pending/ (install ao for auto-indexing)"
fiPost-Mortem会自动将经验教训输入到知识飞轮:
bash
mkdir -p .agents/knowledge/pending
if command -v ao &>/dev/null; then
ao forge index .agents/learnings/ 2>/dev/null
echo "经验教训已索引到知识飞轮"
else
# Retro已将内容写入.agents/learnings/ —— 复制到pending目录待后续导入
cp .agents/learnings/YYYY-MM-DD-*.md .agents/knowledge/pending/ 2>/dev/null
echo "注意:经验教训已保存到.agents/knowledge/pending/(安装ao可实现自动索引)"
fiStep 7: Report to User
步骤7:向用户反馈
Tell the user:
- Council verdict on implementation
- Key learnings
- Any follow-up items
- Location of post-mortem report
- Knowledge flywheel status
告知用户以下信息:
- Council对实施成果的评审结论
- 关键经验教训
- 任何待跟进事项
- Post-Mortem报告的位置
- 知识飞轮的状态
Integration with Workflow
与工作流的集成
/plan epic-123
│
▼
/pre-mortem (council on plan)
│
▼
/implement
│
▼
/vibe (council on code)
│
▼
Ship it
│
▼
/post-mortem ← You are here
│
├── Council validates implementation
└── Retro extracts learnings/plan epic-123
│
▼
/pre-mortem(对计划进行Council评审)
│
▼
/implement
│
▼
/vibe(对代码进行Council评审)
│
▼
交付上线
│
▼
/post-mortem ← 当前步骤
│
├── Council验证实施成果
└── Retro提取经验教训Examples
示例
Wrap Up Recent Work
收尾近期工作
bash
/post-mortemValidates recent commits, extracts learnings.
bash
/post-mortem验证近期提交的成果,提取经验教训。
Wrap Up Specific Epic
收尾特定Epic
bash
/post-mortem epic-123Council reviews epic-123 implementation, retro captures learnings.
bash
/post-mortem epic-123Council评审epic-123的实施成果,Retro记录经验教训。
Thorough Review
全面评审
bash
/post-mortem --deep epic-1233 judges review the epic.
bash
/post-mortem --deep epic-1233名评审者对该epic进行评审。
Cross-Vendor Review
跨供应商评审
bash
/post-mortem --mixed epic-1233 Claude + 3 Codex agents review the epic.
bash
/post-mortem --mixed epic-1233名Claude + 3名Codex Agent对该epic进行评审。
Relationship to Other Skills
与其他Skill的关系
| Skill | When | Purpose |
|---|---|---|
| Before implementation | Council validates plan |
| After coding | Council validates code |
| After shipping | Council validates + extract learnings |
| Anytime | Extract learnings only |
| Skill | 使用时机 | 用途 |
|---|---|---|
| 实施前 | Council验证计划 |
| 编码后 | Council验证代码 |
| 交付后 | Council验证成果 + 提取经验教训 |
| 任何时间 | 仅提取经验教训 |
See Also
相关文档
- — Multi-model validation council
skills/council/SKILL.md - — Extract learnings
skills/retro/SKILL.md - — Council validates code
skills/vibe/SKILL.md - — Council validates plans
skills/pre-mortem/SKILL.md
- —— 多模型验证Council
skills/council/SKILL.md - —— 经验教训提取
skills/retro/SKILL.md - —— Council代码验证
skills/vibe/SKILL.md - —— Council计划验证
skills/pre-mortem/SKILL.md