/spwf:understandfrom spwf
Post-ship — Teach the developer what a change did, so they know where to look when it breaks later. Works through 3-4 structural topics, and for each one explains before asking anything, then checks the explanation landed, then explains again by a different route if it didn't. Uncertainty is the trigger to teach, never a gap to record. Calibrated via .spwf/learner.md. Produces an orientation note of what the developer now knows. Companion to recap, which prints what and why; this teaches consequence and navigation. Retrospective Part 6; runnable standalone via /spwf:understand [change-id | todo path | branch]. Called as a step by /spwf:retrospective (Part 6), 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.
The goal: when this breaks in six months, the developer knows where to look and why.
Not hand-coded fidelity — navigational understanding. Enough to orient, not enough to have written it.
Explain first. Always. Every topic, every level.
This skill teaches. It does not audit. If the developer says "I don't know", that is the moment to teach — not a gap to write down and move past.
Why this warning is here. The first version of this skill was adapted from
do-i-understand, a pre-merge accountability audit which correctly refuses to explain (explaining would launder the very gap the audit exists to expose). That posture was imported wholesale and it produced a session the developer called "difficult and abstract and not great for learning." The technique was worth borrowing; the posture was not. Do not reintroduce it.
No AskUserQuestion in allowed-tools, deliberately — it is structurally
multiple-choice, and this is not a quiz. Plain conversational text.
Read $ARGUMENTS:
| Input | Resolution |
|---|---|
| Empty | Detect from the current branch, or the most recent change. Ask if ambiguous. |
| change-id | openspec/changes/{id}/, falling back to openspec/changes/archive/{id}/ |
Todo path ending .md | Read frontmatter to derive the change-id; resolve as above |
| Branch name or commit range | Use directly — standalone runs outside the golden path |
As Part 6 of retrospective, the change-id is passed explicitly — skip detection.
If nothing resolves, halt naming both searched locations. Do not interview on a different change.
Cannot find change "{arg}" in openspec/changes/ or openspec/changes/archive/.
Read .spwf/learner.md per
_shared/learner-profile.md.
If absent, ensure .spwf/learner.md is in .gitignore (add it if not — it
records personal gaps and must never be committed), then ask once:
"Before we start — roughly where are you with this codebase and its stack: new to it, working in it comfortably, or fluent? It sets how much background I put around each explanation."
Never ask this again on later runs.
Level sets how much scaffolding each explanation carries. It never decides whether explanation happens, and it never makes the check questions easier.
| Level | Explanations |
|---|---|
new | Name concepts before using them. Offer an analogy or worked example where one genuinely clarifies. More background per topic. |
working | Assume the vocabulary; explain the specifics of this change and why it's shaped that way. |
fluent | Terser. Straight to the decision and its consequence. Fewer topics if the change is small. |
If level ever results in no explanation, the calibration question was pointless and this skill has regressed to its failed first version.
Read the shape of the change, not every line.
RANGE="$(git merge-base HEAD "${BASE:-main}")..HEAD" # or the resolved range
git diff --stat $RANGE
git log $RANGE --format="%h %s%n%b"
Then read only the changed files carrying structural weight — a new module, a
new dependency, a changed interface, a shifted data flow. Read design.md,
proposal.md and the todo/ file second, as supporting material.
Do not read the full diff. At orientation depth it is fidelity the session has already decided not to use.
Pick things that are teachable, not merely checkable. A topic needs
substance to explain: a reason behind it, a consequence, a connection to
something else. "The .gitignore entry changed" is checkable and worthless to
teach; "personal state now lives outside the repo, and here's what that costs
you" is a topic.
Weight toward what would matter if something went wrong later.
State the selection up front so the developer knows the shape of the session:
Four topics, ~10 minutes:
1. The export queue — why the write path is now async
2. The S3 client — a new external dependency and what it assumes
3. The UserExport interface change — four callers moved
4. Where failures surface
Skipping the config rename and test fixtures — nothing to navigate there.
Trivial change? Say so and stop:
Nothing here you'd need to navigate later — {one-line summary}. Skipping.
Announce position each time: "Topic 2 of 4 — the S3 client".
This is the first move. Never open a topic with a question.
A short paragraph or two — not an essay, not a single line. Cover:
Pitch the background to the recorded level. Name the thing before reasoning about it.
If recap ran in Part 5, don't re-explain its ground (what changed and why in
the abstract) — go straight to consequence and connection. Standalone, include a
compact what/why as setup, since nothing has covered it.
One question, answerable from the explanation just given plus ordinary reasoning.
Good checks ask the developer to apply or extend what they were just told:
Banned — the failure mode of the first version:
If a candidate question could only be answered by someone who typed the code, or by someone who read something you didn't explain, discard it.
Any signal of uncertainty routes back into teaching. That includes:
Explain again, by a different route than the first time. Not the same words rearranged — a genuinely different angle:
| First explanation was… | Try instead |
|---|---|
| Structural ("A now calls B") | Trace it — walk the actual sequence in the code |
| Abstract | A concrete worked example with real values |
| Descriptive | Consequence-first: "here's what breaks if this is wrong" |
| Prose | The two-line version, stripped to the essential claim |
Then confirm it landed — lightly, not as a re-test: "Does that make more sense?"
Only if a second explanation also fails does the item go into the note's open list, with a concrete suggestion for what would close it. Then move on without a third attempt in the same session.
Never express disapproval, assign a score, or move to the next topic leaving a gap unexplained.
Topic 1 of 4 — the retrospective's part numbers
The retrospective is an ordered list of parts, and each part's number is written down in four separate files: the orchestrator itself,
close(which lists what it runs),changelog(whose description names its own position), and the README. There's no single source — each states its number independently.That's why
changelogsat claiming "Part 5" for two releases afterrecaptook that slot. Andworkflow-lint, the drift checker, didn't catch it: it verifies that names resolve to real files, not that numbers agree.So — if you added a Part 8 tomorrow, how many files would you expect to touch, and would anything tell you if you missed one?
The developer answers from what they were just told. Contrast the first version's question on the same subject, which asked them to work all of that out unaided.
Always, however the session went:
"If this misbehaves in six months, where do you look first, and what would you expect to see?"
If the developer can't answer it, walk through the answer explicitly. This question summarises material already taught, so an unanswerable close means the teaching didn't land — not that the developer has a gap to record. Give the answer, then note in the orientation note which topic needs revisiting.
Load-bearing: the orientation note can be saved to a committed, pushed path.
Mask any credential-shaped value — API keys, tokens, passwords, cookies,
connection strings, private keys — before it reaches an explanation, a question,
the note, or .spwf/learner.md:
api_key="sk-…REDACTED…"
Redaction fires before a value enters an explanation, not only before the save: a leaked value printed in the session is already in the transcript, which no commit hook ever sees.
If you find a hard-coded credential while reading, put it in the note's open items naming the file but not the value.
A record of what the developer now knows. Not an inventory of gaps, not a verdict, no score.
## Orientation: {change-id}
### The shape of this change
{2–4 sentences: what moved, what's new, what now depends on what.}
### Where to look when things go wrong
- **{symptom}** → {file/area}, because {reason}
- ...
### Still open
- {only items that survived two explanations} — {what would close it}
### Concepts covered
- {concept} — {one line}
"Where to look when things go wrong" carries the whole purpose. If the session produced nothing for it, say so plainly rather than padding it.
If the developer exits partway, write the note for the topics reached. A partial map beats a discarded session.
Offer to save once:
"Save this orientation note? [y/N]"
On yes, write to openspec/changes/{change-id}/understanding.md (or the
archive/ path), where it travels into the OpenSpec archive with the change.
Per _shared/learner-profile.md:
## Known, with change-id and date## Open, with what would
close them## Open more than twice → ## Recurring blind spots## Covered is not ## Known. Concepts brief covered before the build are
recorded there, explained but never checked. Treat them as unproven: explain and
check them here like any other, then promote what the developer demonstrates to
## Known. Skipping a topic because it appears under ## Covered is the one
misreading this section exists to prevent.
Level adjustment is observed, not asked. If the developer reasons through consequences unprompted across several topics, promote them for that area and say so — never silently. Never demote on a single weak answer.
Standalone:
✓ Orientation note for {change-id}
{N} topics covered · {M} needed a second explanation · {K} still open
{✓ Saved to {path} | — Not saved}
{✓ Ledger updated: {N} concepts → Known}
As Part 6 of retrospective, the note is the report — render its sections at
#### beneath the existing ### Part 6 heading.
A colleague explaining their work to someone who'll maintain it, not an examiner checking whether you did the reading. Concrete, names files, no emoji, no celebration, no praise inflation.
The promise: you didn't write this, but you'll know where to start when it breaks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwfOther plugins' skills for the same job
38 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./