Per-feature retrospective within the coding-team pipeline. Analyzes this feature's commit history, audit findings, and shipping patterns. Produces a structured retro with what went well, what to improve, and recurring patterns. For weekly/sprint-level team retros, use /retro instead.
Post-ship analysis of what happened during the feature build. Looks at commit patterns, test health, audit findings, and process efficiency.
Gather data:
# Recent commits on this branch
git log main..HEAD --oneline --stat
# Commit frequency pattern
git log main..HEAD --format="%ai" | cut -d' ' -f1 | sort | uniq -c
# Files most frequently changed
git log main..HEAD --name-only --format="" | sort | uniq -c | sort -rn | head -20
Analyze patterns:
Produce structured retro:
## Retrospective: <feature name>
### What went well
- [specific positive observations with evidence]
### What to improve
- [specific actionable improvements]
### Recurring patterns
- [patterns from audit findings that appeared across multiple tasks]
### Metrics
- Commits: N total (N feature, N fix, N test, N docs)
- Files changed: N
- Rework ratio: N fix commits / N total commits
- Test commits: N / N feature commits
### Action items
- [ ] [concrete next step]
Save retro to disk:
$REPO_ROOT via git rev-parse --show-toplevel.$REPO_ROOT/docs/retros/ if it does not exist using Bash tool: mkdir -p "$REPO_ROOT/docs/retros/".$REPO_ROOT/docs/retros/YYYY-MM-DD-<feature-slug>.md using the Write tool. Use today's date and a kebab-case slug of the feature name.### Completion Summary section using the Edit tool. Do NOT overwrite the retro content — append only.Eval feed-forward:
Review the "What to improve" and "Recurring patterns" sections from the retro.
For each item that represents a check agents should have caught during implementation or audit (e.g., "missed null check pattern", "forgot to update schema after migration"), append it to $REPO_ROOT/docs/project-evals.md as a checklist item.
If $REPO_ROOT/docs/project-evals.md does not exist, create it using the Write tool with this exact template:
# Project-Specific Eval Criteria
> Accumulated from retrospectives and debug sessions. The planning worker loads these as seed criteria for auditors.
> Each item is a check that agents missed in a prior session.
- [ ] [criterion]
Before appending, read the existing file and check for duplicates. Do NOT add a criterion that is already present (same meaning, even if worded differently). If all items are duplicates, skip this step.
Do NOT add generic criteria like "write better tests" — only add items that encode a specific check an agent could mechanically verify.
Decision capture prompt:
$REPO_ROOT/docs/decisions/YYYY-MM-DD-<slug>.md using the Write tool.