pre-mortem
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePre-Mortem Skill
Pre-Mortem 技能
Purpose: Is this plan/spec good enough to implement?
Run on a plan or spec to get multi-model judgment before committing to implementation.
/council validate用途: 该计划/规格说明是否足够成熟可以实施?
运行 命令,在投入实施前对计划或规格说明进行多模型评审。
/council validateQuick Start
快速开始
bash
/pre-mortem # validates most recent plan
/pre-mortem path/to/PLAN.md # validates specific plan
/pre-mortem --quick path/to/PLAN.md # fast inline check, no spawning
/pre-mortem --deep path/to/SPEC.md # 4 judges with plan-review preset
/pre-mortem --mixed path/to/PLAN.md # cross-vendor (Claude + Codex)
/pre-mortem --preset=architecture path/to/PLAN.md # architecture-focused review
/pre-mortem --explorers=3 path/to/SPEC.md # deep investigation of plan
/pre-mortem --debate path/to/PLAN.md # two-round adversarial reviewbash
/pre-mortem # 验证最新的计划
/pre-mortem path/to/PLAN.md # 验证指定的计划
/pre-mortem --quick path/to/PLAN.md # 快速内联检查,不启动额外进程
/pre-mortem --deep path/to/SPEC.md # 4位评审员,使用plan-review预设
/pre-mortem --mixed path/to/PLAN.md # 跨厂商模型(Claude + Codex)
/pre-mortem --preset=architecture path/to/PLAN.md # 聚焦架构的评审
/pre-mortem --explorers=3 path/to/SPEC.md # 对计划进行深度调研
/pre-mortem --debate path/to/PLAN.md # 两轮对抗式评审Execution Steps
执行步骤
Step 1: Find the Plan/Spec
步骤1:查找计划/规格说明
If path provided: Use it directly.
If no path: Find most recent plan:
bash
ls -lt .agents/plans/ 2>/dev/null | head -3
ls -lt .agents/specs/ 2>/dev/null | head -3Use the most recent file. If nothing found, ask user.
如果提供了路径: 直接使用该路径。
如果未提供路径: 查找最新的计划:
bash
ls -lt .agents/plans/ 2>/dev/null | head -3
ls -lt .agents/specs/ 2>/dev/null | head -3使用最新的文件。如果未找到任何文件,询问用户。
Step 1a: Search Knowledge Flywheel
步骤1a:搜索知识飞轮
bash
if command -v ao &>/dev/null; then
ao search "plan validation lessons <goal>" 2>/dev/null | head -10
fiIf ao returns prior plan review findings, include them as context for the council packet. Skip silently if ao is unavailable or returns no results.
bash
if command -v ao &>/dev/null; then
ao search "plan validation lessons <goal>" 2>/dev/null | head -10
fi如果ao工具返回了之前的计划评审结果,将其作为上下文包含在评审数据包中。如果ao工具不可用或未返回结果,则跳过此步骤,不提示。
Step 2: Run Council Validation
步骤2:运行评审委员会验证
Run with the plan-review preset and always 4 judges (--deep):
/council/council --deep --preset=plan-review validate <plan-path>Default (4 judges with plan-review perspectives):
- : What's not in the spec that should be? What questions haven't been asked?
missing-requirements - : What's technically hard or impossible here? What will take 3x longer than estimated?
feasibility - : What's unnecessary? What's missing? Where will scope creep?
scope - : Are boundaries defined? Do conformance checks cover all acceptance criteria? Is the plan mechanically verifiable?
spec-completeness
Pre-mortem always uses 4 judges () because plans deserve thorough review. The spec-completeness judge validates SDD patterns; for plans without boundaries/conformance sections, it issues WARN (not FAIL) for backward compatibility.
--deepWith --quick (inline, no spawning):
/council --quick validate <plan-path>Single-agent structured review. Fast sanity check before committing to full council.
With --mixed (cross-vendor):
/council --mixed --preset=plan-review validate <plan-path>3 Claude + 3 Codex agents for cross-vendor plan validation with plan-review perspectives.
With explicit preset override:
/pre-mortem --preset=architecture path/to/PLAN.mdExplicit overrides the automatic plan-review preset. Uses architecture-focused personas instead.
--presetWith explorers:
/council --deep --preset=plan-review --explorers=3 validate <plan-path>Each judge spawns 3 explorers to investigate aspects of the plan's feasibility against the codebase. Useful for complex migration or refactoring plans.
With debate mode:
/pre-mortem --debateEnables adversarial two-round review for plan validation. Use for high-stakes plans where multiple valid approaches exist. See docs for full --debate details.
/council使用plan-review预设和固定4位评审员(--deep参数)运行 命令:
/council/council --deep --preset=plan-review validate <plan-path>默认配置(4位评审员,具备plan-review视角):
- : 规格说明中缺少哪些必要内容?还有哪些问题尚未被提出?
missing-requirements - : 哪些内容在技术上存在难度或无法实现?哪些部分的耗时会比预估多3倍?
feasibility - : 哪些内容是不必要的?哪些内容缺失?哪些地方会出现范围蔓延?
scope - : 边界是否已明确定义?一致性检查是否覆盖了所有验收标准?计划是否可机械验证?
spec-completeness
Pre-mortem 始终使用4位评审员(--deep参数),因为计划需要全面评审。spec-completeness评审员会验证SDD模式;对于没有边界/一致性部分的计划,会发出WARN(而非FAIL)以保持向后兼容性。
使用--quick参数(内联检查,不启动额外进程):
/council --quick validate <plan-path>单Agent结构化评审。在启动完整评审委员会前进行快速的合理性检查。
使用--mixed参数(跨厂商模型):
/council --mixed --preset=plan-review validate <plan-path>3个Claude + 3个Codex Agent,以plan-review视角进行跨厂商计划验证。
使用显式预设覆盖:
/pre-mortem --preset=architecture path/to/PLAN.md显式的参数会自动覆盖plan-review预设,改用聚焦架构的角色进行评审。
--preset使用explorers参数:
/council --deep --preset=plan-review --explorers=3 validate <plan-path>每位评审员会启动3个探索者Agent,针对计划在代码库中的可行性进行深度调研。适用于复杂的迁移或重构计划。
使用debate模式:
/pre-mortem --debate为计划验证启用两轮对抗式评审。适用于存在多种可行方案的高风险计划。有关--debate的详细信息,请查看文档。
/councilStep 3: Interpret Council Verdict
步骤3:解读评审委员会 verdict
| Council Verdict | Pre-Mortem Result | Action |
|---|---|---|
| PASS | Ready to implement | Proceed |
| WARN | Review concerns | Address warnings or accept risk |
| FAIL | Not ready | Fix issues before implementing |
| 评审委员会 verdict | Pre-Mortem 结果 | 操作建议 |
|---|---|---|
| PASS | 可实施 | 继续推进 |
| WARN | 需评审关注点 | 解决警告问题或接受风险 |
| FAIL | 未就绪 | 在实施前修复问题 |
Step 4: Write Pre-Mortem Report
步骤4:撰写Pre-Mortem报告
Write to:
.agents/council/YYYY-MM-DD-pre-mortem-<topic>.mdmarkdown
undefined保存路径:
.agents/council/YYYY-MM-DD-pre-mortem-<topic>.mdmarkdown
undefinedPre-Mortem: <Topic>
Pre-Mortem: <主题>
Date: YYYY-MM-DD
Plan/Spec: <path>
日期: YYYY-MM-DD
计划/规格说明: <路径>
Council Verdict: PASS / WARN / FAIL
评审委员会 verdict: PASS / WARN / FAIL
| Judge | Verdict | Key Finding |
|---|---|---|
| Missing-Requirements | ... | ... |
| Feasibility | ... | ... |
| Scope | ... | ... |
| 评审员 | Verdict | 关键发现 |
|---|---|---|
| Missing-Requirements | ... | ... |
| Feasibility | ... | ... |
| Scope | ... | ... |
Shared Findings
共同发现
- ...
- ...
Concerns Raised
提出的关注点
- ...
- ...
Recommendation
建议
<council recommendation>
<council recommendation>
Decision Gate
决策节点
[ ] PROCEED - Council passed, ready to implement
[ ] ADDRESS - Fix concerns before implementing
[ ] RETHINK - Fundamental issues, needs redesign
undefined[ ] 推进 - 评审通过,可实施
[ ] 整改 - 修复问题后再实施
[ ] 重新设计 - 存在根本性问题,需要重新设计
undefinedStep 5: Record Ratchet Progress
步骤5:记录Ratchet进度
bash
ao ratchet record pre-mortem 2>/dev/null || truebash
ao ratchet record pre-mortem 2>/dev/null || trueStep 6: Report to User
步骤6:向用户汇报
Tell the user:
- Council verdict (PASS/WARN/FAIL)
- Key concerns (if any)
- Recommendation
- Location of pre-mortem report
告知用户以下内容:
- 评审委员会的verdict(PASS/WARN/FAIL)
- 主要关注点(如有)
- 建议
- Pre-Mortem报告的位置
Integration with Workflow
工作流集成
/plan epic-123
│
▼
/pre-mortem ← You are here
│
├── PASS → /implement
├── WARN → Review, then /implement or fix
└── FAIL → Fix plan, re-run /pre-mortem/plan epic-123
│
▼
/pre-mortem ← 当前步骤
│
├── PASS → /implement
├── WARN → 评审后,选择/implement或修复
└── FAIL → 修复计划,重新运行/pre-mortemExamples
示例
Validate a Plan
验证计划
bash
/pre-mortem .agents/plans/2026-02-05-auth-system.md3 judges (missing-requirements, feasibility, scope) review the auth system plan.
bash
/pre-mortem .agents/plans/2026-02-05-auth-system.md3位评审员(missing-requirements、feasibility、scope)评审认证系统计划。
Cross-Vendor Plan Validation
跨厂商计划验证
bash
/pre-mortem --mixed .agents/plans/2026-02-05-auth-system.md3 Claude + 3 Codex agents validate the plan with plan-review perspectives.
bash
/pre-mortem --mixed .agents/plans/2026-02-05-auth-system.md3个Claude + 3个Codex Agent以plan-review视角验证计划。
Architecture-Focused Review
聚焦架构的评审
bash
/pre-mortem --preset=architecture .agents/specs/api-v2-spec.md3 judges with architecture perspectives (scalability, maintainability, simplicity) review the spec.
bash
/pre-mortem --preset=architecture .agents/specs/api-v2-spec.md3位具备架构视角(可扩展性、可维护性、简洁性)的评审员评审规格说明。
Auto-Find Recent Plan
自动查找最新计划
bash
/pre-mortemFinds the most recent plan in and validates it.
.agents/plans/bash
/pre-mortem在目录中查找最新计划并进行验证。
.agents/plans/See Also
另请参阅
- — Multi-model validation council
skills/council/SKILL.md - — Create implementation plans
skills/plan/SKILL.md - — Validate code after implementation
skills/vibe/SKILL.md
- — 多模型验证评审委员会
skills/council/SKILL.md - — 创建实施计划
skills/plan/SKILL.md - — 实施后验证代码
skills/vibe/SKILL.md