Wrap up completed work. Council validates the implementation, then extract learnings. Triggers: "post-mortem", "wrap up", "close epic", "what did we learn".
Scanned 2/12/2026
Install via CLI
openskills install boshu2/agentops---
name: post-mortem
description: 'Wrap up completed work. Council validates the implementation, then extract learnings. Triggers: "post-mortem", "wrap up", "close epic", "what did we learn".'
dependencies:
- council # multi-model judgment
- retro # optional - extracts learnings (graceful skip on failure)
- beads # optional - for issue status
---
# Post-Mortem Skill
> **Purpose:** Wrap up completed work — validate it shipped correctly and extract learnings.
Two steps:
1. `/council validate` — Did we implement it correctly?
2. `/retro` — What did we learn?
---
## 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
```
---
## Execution Steps
### Step 1: Identify Completed Work
**If epic/issue ID provided:** Use it directly.
**If no ID:** Find recently completed work:
```bash
# Check for closed beads
bd list --status closed --since "7 days ago" 2>/dev/null | head -5
# Or check recent git activity
git log --oneline --since="7 days ago" | head -10
```
### Step 2: Council Validates the Work
Run `/council validate` on the completed work:
```
/council validate <epic-or-recent>
```
**Council reviews:**
- Did implementation match the plan?
- Are there gaps or shortcuts taken?
- Security concerns?
- Technical debt introduced?
**With --quick (inline, no spawning):**
```
/council --quick validate <epic-or-recent>
```
Single-agent structured review. Fast wrap-up without spawning.
**Advanced options (passed through to council):**
- `--deep` — 3 judges instead of 2
- `--mixed` — Cross-vendor (Claude + Codex)
- `--preset=<name>` — Use specialized personas (e.g., `--preset=ops` for production readiness)
- `--explorers=N` — Each judge spawns N explorers to investigate the implementation deeply before judging
### Step 3: Extract Learnings
Run `/retro` to capture what we learned:
```
/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.
### Step 4: Write Post-Mortem Report
**Write to:** `.agents/council/YYYY-MM-DD-post-mortem-<topic>.md`
```markdown
# Post-Mortem: <Epic/Topic>
**Date:** YYYY-MM-DD
**Epic:** <epic-id or "recent">
**Duration:** <how long it took>
## Council Verdict: PASS / WARN / FAIL
| Judge | Verdict | Key Finding |
|-------|---------|-------------|
| Pragmatist | ... | ... |
| Skeptic | ... | ... |
| Visionary | ... | (if --deep/--mixed) |
### Implementation Assessment
<council summary>
### Concerns
<any issues found>
## Learnings (from /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)
```
### Step 5: Feed the Knowledge Flywheel
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)"
fi
```
### Step 6: Report to User
Tell the user:
1. Council verdict on implementation
2. Key learnings
3. Any follow-up items
4. Location of post-mortem report
5. Knowledge flywheel status
---
## 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
```
---
## Examples
### Wrap Up Recent Work
```bash
/post-mortem
```
Validates recent commits, extracts learnings.
### Wrap Up Specific Epic
```bash
/post-mortem epic-123
```
Council reviews epic-123 implementation, retro captures learnings.
### Thorough Review
```bash
/post-mortem --deep epic-123
```
3 judges review the epic.
### Cross-Vendor Review
```bash
/post-mortem --mixed epic-123
```
3 Claude + 3 Codex agents review the epic.
---
## Relationship to Other Skills
| Skill | When | Purpose |
|-------|------|---------|
| `/pre-mortem` | Before implementation | Council validates plan |
| `/vibe` | After coding | Council validates code |
| `/post-mortem` | After shipping | Council validates + extract learnings |
| `/retro` | Anytime | Extract learnings only |
---
## See Also
- `skills/council/SKILL.md` — Multi-model validation council
- `skills/retro/SKILL.md` — Extract learnings
- `skills/vibe/SKILL.md` — Council validates code
- `skills/pre-mortem/SKILL.md` — Council validates plans
No comments yet. Be the first to comment!