/ai-pipeline:retrospectivefrom ai-pipeline
Runs a post-merge retrospective for a feature's PR: reads review comments, diff, fix commits, SPEC.md and PLAN.md, writes RETRO.md comparing against earlier retros, and routes lessons to project rules, architecture/lint rules, skills, or review prompts.
Ships in ai-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Mistakes repeat unless something changes. This turns a merged PR's review findings into durable changes — project rules, mechanical checks, or process — and records what happened.
Read .claude/pipeline.md before you start. A name in double braces below, such as {{base}},
stands for that name's value in its table.
If a value this skill uses is missing there, stop and tell the user which; do not
guess it.
{{feature-docs}}/If not given, infer from the branch or ask.
The feature branch is merged, so work on a new one:
git checkout {{base}} && git pull --ff-only
git checkout -b {{retro-prefix}}{feature-name}-retro
{{hosting}}):
gh api repos/{owner}/{repo}/pulls/{n}/comments and
gh api repos/{owner}/{repo}/issues/{n}/commentsglab api projects/:id/merge_requests/{n}/discussions --paginate --output ndjson.
A discussion whose first note has a position is an inline comment, with its replies; one
without is the summary or another general comment.gh pr diff {n}glab mr diff {n} --rawpipeline: version in PLAN.md's header: the release that
built the feature. A plan written before versioning has none; write unstampedRETRO.md (in their {{feature-docs}}) — for the comparison and for repeatsClassify each finding: fixed, skipped (why — false positive, trade-off, deferred), or merged unaddressed. For each fixed one, find the root cause stage: did the spec, the plan, or the implementation introduce it? A plan-level defect is implemented faithfully, so only the architect's self-checks could have caught it.
Look for patterns: the same mistake in several places, a repeat of a lesson from an earlier retro (a lesson that never became a rule), framework-specific mistakes (Compose, coroutines, Room) that suggest an outdated or incorrect pattern, and what the gate or reviewer should have caught.
For every lesson, pick exactly one destination:
| The lesson is… | It goes in… |
|---|---|
| A rule about the code | {{rules-home}} — the rule plus a one-line reason |
| Mechanically checkable | A {{architecture-rules}} rule (in {{architecture-rules-home}}) or a lint rule — prose gets violated, a rule can't be |
| About how a pipeline stage works | The skill — as a general process step |
| Something the automated reviewer should check | The review prompt in {{review-prompt}} |
| What happened and why | RETRO.md only |
Test for anything going into {{rules-home}}, a skill or the review prompt: would it still be true and useful if this
feature had never existed? If not, it is history — keep it in RETRO.md. Write rules as the
mechanism ("a condition that treats null and empty alike needs a test for each"), never as
the incident ("in feature X, phase 2 missed…"): no feature names, phase numbers, file names or
counts. A new {{architecture-rules}} or lint rule must be shown to fail on the code that prompted it.
Save to {{feature-docs}}/RETRO.md:
# Retrospective: {Feature Name}
PR: #{n} · Merged: {date} · pipeline: v{X.Y.Z from PLAN.md, or unstamped}
## Summary
What was built; findings by severity; how many fixed; how many merged unaddressed.
## Compared with earlier retros
The same metrics side by side (findings by severity, fixed before merge, merged unaddressed,
review waves), with each feature's pipeline version. Say which *kind* of finding changed, not
just the count, and whether it changed with a pipeline release.
## What went well
Correct patterns and decisions, with evidence from the diff.
## What the reviewer caught
Per finding: issue · file · root cause (and which stage introduced it) · fix · prevention.
## Issues found outside review
## Patterns to watch
## Recommended changes
### Coding rules (`{{rules-home}}`)
### {{architecture-rules}} / lint
### Skills
### Review prompt
Ready-to-paste text, each passing the test in step 4.
## Baseline for next time
The metrics table, and the target for the next feature.
Present the recommended changes and ask which to apply. Apply the approved ones in the files they belong to, commit them with RETRO.md, and open a docs PR.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pantstamp/ai-dev-pipeline --plugin ai-pipeline6 skills in this plugin
/architectDesigns a feature together with the user and turns the approved SPEC.md into a phased PLAN.md that another agent can execute without further context: briefs the user on the code the feature touches with a current-state diagram, has the user propose their own design first, reviews it honestly against best practice and the codebase, then writes buildable, dependency-ordered phases with files, signatures, tests and a verification command each. Use when the user wants an implementation plan, a technical design, a PLAN.md, or a feature broken into phases.
/developerImplements a PLAN.md one phase at a time on the feature branch, running each phase's verification, committing it, and stopping for the user's approval before the next; then offers the pre-PR gate, and pushes and opens the pull request. Use when the user wants to implement, build or execute a plan, start or resume a phase, or create the PR.
/pre-pr-checklistRuns a pre-PR quality gate on a feature branch: checks that the PLAN.md was followed, that each SPEC.md acceptance criterion is covered, that no debug leftovers or TODOs are in the diff, and that the changed code follows the project's written judgement rules, then runs a local mirror of CI and reports GO, CONDITIONAL GO or NO GO. Use when the user asks whether a branch is ready for a PR, or for a pre-PR check, quality gate or final check.
/product-ownerInterviews the user one topic at a time to turn raw requirements or an issue into a SPEC.md with user stories, acceptance criteria, edge cases and out-of-scope items, on a new feature or fix branch. Use when the user wants to spec, scope or define a feature or bug fix, write user stories or acceptance criteria, or start work on an issue.
/review-triageWalks through a pull request's inline review comments one at a time, showing the code, the suggestion and an assessment, and waits for the user's decision on each; then applies the accepted fixes, verifies, commits, pushes, replies on each thread, and checks for comments newer than the last commit before merge. Use when the user wants to triage, go through or address PR review comments or findings.
Other plugins' skills for the same job