/spwf:recapfrom spwf
Post-ship — Generate a teaching summary of the just-shipped change for the human. Distils what was changed, which domain concepts were touched, the decisions made and why, the surprises that surfaced, and pointers for further learning. Distinct from learn-from-mistakes, which captures rules for the project; this captures takeaways for the user. Default Part 5 of the retrospective; runnable standalone via /spwf:recap [change-id or todo path]. Called as a step by /spwf:retrospective (Part 5), which is why Claude may invoke it. Do not start it unprompted: run it standalone only when the user asks.
Ships in spwf. 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.
Crystallise what the user just shipped — concepts, decisions, surprises, and
growth pointers — in a 30-second engagement check. Companion to
learn-from-mistakes: that captures rules for the project, this captures
takeaways for the human.
Read $ARGUMENTS. Accept any of:
| Input | Resolution |
|---|---|
| Empty | Detect from current branch / most recent active change. Ask if ambiguous. |
change-id (e.g. add-plugin-marketplace) | Look up openspec/changes/{id}/, fall back to openspec/changes/archive/{id}/ |
Todo path ending .md | Read frontmatter to derive change-id; resolve as above |
When invoked as Part 5 of retrospective, the change-id is passed explicitly
— skip detection.
If the change directory cannot be resolved, halt:
Cannot find change "{arg}" in openspec/changes/ or openspec/changes/archive/.
The skill renders at different heading depths depending on context:
/spwf:recap …) — top-level: ## Recap and ### sub-sections.### Part 5 — Recap, so the recap's sub-sections render at ####.Detect by checking whether the caller passed a --retrospective-part marker (or
equivalent context flag). When in doubt, default to standalone (top-level
headings).
Read in order. Skip any that don't exist; do not fail.
1. todo/{slug}.md (or todo/BUG-{slug}.md) — original Context, What we know
2. openspec/changes/{change-id}/proposal.md — problem and chosen solution
3. openspec/changes/{change-id}/design.md (if exists) — Decisions sections
4. openspec/changes/{change-id}/specs/*/spec.md — concrete behaviour
5. git log $(git merge-base HEAD main)..HEAD --format="%h %s%n%b"
For archived changes, the openspec paths fall back to
openspec/changes/archive/{change-id}/.
Do not read:
learn-from-mistakes output (recap reads commits directly for surprises;
no coupling)Five sections, in this order. Apply the anti-padding rules in Step 5 throughout.
One to three sentences. Plain language. Names the user-visible delta.
3–5 bullets. Each concept is a domain-level vocabulary term the user should now recognise in similar code. Format:
- **{Concept}** — {one sentence on what it means in the context of this change}
Examples of acceptable concepts: idempotency, eventual consistency, schema migration, rate limiting, optimistic locking, OAuth flow, dependency inversion, vocabulary mapping, fail-fast.
Examples of banned generic vocabulary: "software engineering", "code quality", "best practices", "the codebase", "good design".
2–4 bullets. Sourced from design.md Decisions sections plus non-trivial
commit messages. Format:
- **{Decision}** → {why}. Alternative considered: {alt} ({why rejected}).
If design.md has no Decisions section and commit messages don't capture
real tradeoffs, omit this section entirely. Don't invent decisions to
fill space.
1–2 bullets. Mined from commit messages — typically fix: commits that
revealed a wrong assumption, or refactor: commits that emerged after
implementation. Format:
- {What was assumed} → {what turned out to be true}. {Brief consequence.}
If no commits surfaced surprises, omit this section entirely. Empty is better than padded.
At most 3 entries:
{path} — what to
notice)openspec/changes/{change-id}/If there is no genuinely useful in-repo reference and no external one, list only the spec link.
These rules are non-negotiable. Apply them throughout Step 4.
Skip empty sections. If a section has no real material, omit it entirely. Print nothing rather than pad with filler.
Cap each section. Concepts: 3–5. Decisions: 2–4. Read next: ≤3.
Bullet floor: 1. If a section has at least one substantive bullet, include it. Don't force minimums.
Forbid generic vocabulary. "Concepts touched" entries must be domain-level terms. See the banned list above.
Forbid hedging phrases. Banned: "It is worth noting that…", "In conclusion…", "This change demonstrates…", "Overall…", "It should be noted…", "Importantly…".
Tiny-change escape hatch. If the recap would amount to a single substantive bullet across all sections combined, abandon the structured format and print one line:
Recap skipped — change too small for concept extraction. {one-line summary}
Better to admit small than fake big.
Format the assembled sections at the appropriate heading depth (Step 2). Standalone:
## Recap: {change-id} — {one-line title}
### What changed
…
### Concepts touched
- **…** — …
### Decisions (why this, not that)
- **…** → …
### What surprised us
- …
### Read next
- `…` — …
- {external link, if any}
- The spec: `openspec/changes/{change-id}/`
When invoked as Part 5 of retrospective, the skill prints under the
existing ### Part 5 — Recap heading and uses #### for its sub-sections.
After the recap is printed, ask once:
"Save this recap? [y/N]"
Default is no. If the user does not say "yes" (or "y"), skip silently.
If yes, write to openspec/changes/{change-id}/recap.md (or
openspec/changes/archive/{change-id}/recap.md for archived changes) using
top-level headings (the file is a self-contained document).
If recap.md already exists at that path, ask before overwriting:
"A recap already exists at {path}. Overwrite? [y/N]"
If the user does not say "yes", skip silently. If yes, overwrite.
When invoked from close's retrospective, the file is saved before
close's archive step, so the recap travels into the archive automatically.
Senior engineer briefing a junior. Concrete, specific, no hand-waving. Names files and lines. No emoji. No celebration. No filler.
After Step 7 completes:
✓ Recap printed for {change-id}
{✓ Saved to {path} | — Not saved}
When invoked as Part 5 of retrospective, no separate report — the recap itself is the report.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./