/spwf:brieffrom spwf
Phase 1.5 — Explain a planned change before it is built. Runs between spec and approve-plan, so a mismatch costs a conversation rather than a change. Five sections, expanding then summarising — what will be built, why this way, the choices you didn't make, what it touches, and a short summary. Never blocks: it prints, offers one skippable prompt, and returns. Calibrated via .spwf/learner.md. Companion to recap and understand, which teach after the fact; this teaches before. Runs on changes, not bug fixes.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Explain what is about to be built, while it can still be changed cheaply.
recap and understand teach after the work has shipped. By then comprehension
debt has already been incurred and there is nothing to be done about a wrong
turn. brief runs before the build, when "that's not what I meant" costs a
conversation.
Teaching is the point; catching errors is a side effect. Success is that you could explain the plan to someone else afterwards. Most plans are fine and section 3 will find nothing — that is a successful run, not a wasted one.
Never blocking. This skill prints, offers one skippable prompt, and returns. It does not gate
approve-plan, does not require an answer, and does not act on what you tell it.approve-planis the gate; a second gate two lines earlier is friction that gets routed around. Any future edit that makes this skill halt, insist, or re-run something contradicts this paragraph.
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 |
If nothing resolves, halt naming both searched locations:
Cannot find change "{arg}" in openspec/changes/ or openspec/changes/archive/.
Incomplete artefacts. brief needs proposal.md and tasks.md. If either is
missing, say which and stop:
Cannot brief {change-id} — {proposal.md | tasks.md} is missing.
Run /spwf:spec first, or check the change id.
Do not brief from partial artefacts. A brief assembled from half a plan is worse than none, because it reads as complete.
Every exit path ends by naming the next step — including the halts above, the bug skip in Step 2, and the trivial-change stop in Step 5:
── Next step ───────────────────────────────────────────────────
/spwf:approve-plan — review the task list and give the go/no-go
Read the **Type**: line from proposal.md.
| Value | Action |
|---|---|
bug | Skip, stating why (below). |
Anything else — change, absent, or an unsubstituted {bug | change} | Proceed. |
Match bug exactly and treat everything else as a change. Only bug should
suppress a brief, so only bug is worth matching; a spec run that left the
template placeholder in place should not silence this skill.
On a bug:
Briefs cover changes rather than bug fixes — a fix's plan is usually its
diagnosis, and there's little to explain ahead of it that the bug report
didn't already say.
Then name the next step and stop.
Why absent means proceed. Every change spec'd before the Type line existed
has no value to read. Treating absent as "unknown, do nothing" would make this
skill silently inert on the entire back catalogue. A brief on an old bug fix is
mildly off-target; silence on everything is worse.
Read .spwf/learner.md per
_shared/learner-profile.md.
If absent — order matters. Ensure .spwf/learner.md is listed in
.gitignore before writing the file. The profile records what a person does
not yet understand; a first run in a fresh project must not commit that. Add the
entry if it is missing, then ask:
"Before I explain this — 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 section."
Create the file with the answer. Never ask again on later runs.
understand already implements this ordering; copy it rather than reinventing it.
Level sets how much background each section carries. It never changes which sections appear.
| Level | Sections |
|---|---|
new | Name concepts before using them; more background per section; an analogy where one genuinely clarifies. |
working | Assume the vocabulary; explain the specifics of this plan. |
fluent | Terser. Straight to the decision and its consequence. |
All five sections appear at every level.
1. the ideation file — what was asked for (the left side of §3's delta)
2. openspec/changes/{id}/proposal.md — Why, What Changes, Impact
3. openspec/changes/{id}/tasks.md — the shape and size of the work
4. openspec/changes/{id}/design.md — if it exists; supporting only
5. openspec/changes/{id}/evidence.md — if it exists; supporting only
Resolving the ideation file — try both locations. proposal.md's Source
link is written at spec time and is not rewritten when close moves the file,
so on any archived change it points at a path that no longer exists:
| Try | Path |
|---|---|
| 1 | todo/{slug}.md |
| 2 | todo/_done/{slug}.md — where close moved it |
Take the slug from the Source line's filename and ignore its directory.
If neither resolves, say so and drop section 3, then brief from the remaining sections:
No ideation file found for {change-id} (tried todo/ and todo/_done/) —
skipping "Choices you didn't make", which is derived from it.
Never fake the delta from design.md alone. Section 3's whole claim is that it
compares the plan against what was asked for; without the left-hand side there is
no comparison, and the two sources disagree about exactly the decisions that
matter — design.md records what someone chose to write down.
evidence.md does not exist yet — it arrives with adaptive-research-lean-execution.
Read it when present and ignore it otherwise, so this skill needs no edit on the
day it appears.
Five sections, expanding then summarising — detail first, so the summary lands as a takeaway rather than a heading.
Trivial change? Say so and stop, naming the next step:
Nothing here worth briefing — {one-line summary of the plan}.
Plain language, 3–5 sentences. The substance.
Not the task list — approve-plan will print that in a moment. If the reader
couldn't tell a colleague what is about to happen after reading this section, it
has failed.
The shaping decisions and their reasons, from design.md and the proposal's Why.
Where an alternative was rejected, name it and say why.
The section this skill exists for. Derived from the todo → plan delta:
what you asked for is the ideation file; what got planned is proposal.md +
tasks.md + design.md. Anything in the plan with no antecedent in the ideation
file is, by construction, a decision something else made.
design.md is supporting detail only, never the primary source. It is
frequently absent, and it records only decisions someone thought worth writing
down — the ones that never got written down are precisely the dangerous ones.
Two filters, both load-bearing.
a) Consequence. A spec is always more detailed than the ideation file — that
is what spec does — so a literal delta is most of the plan. Report a candidate
only if choosing differently would change the shape of the result:
| Report | Don't report |
|---|---|
| An approach or mechanism chosen among alternatives | What a file or symbol is called |
| A new dependency taken on | How tasks were split or ordered for convenience |
| A boundary drawn — what's in scope, what's separate | Which phase a task landed in |
| An ordering that constrains later work | Wording, formatting, structure of the artefacts |
If you find yourself listing more than about five, the filter is too loose. Forty banal items bury the two that matter, and a section nobody reads catches nothing.
b) enrich output counts as "what you asked for". If the ideation file
carries ## Directions considered, ## Recommended direction or ## Not doing,
those are decisions the developer made — enrich walked them through it.
The delta's left side is the whole ideation file, those sections included.
Re-surfacing them as unasked-for is both wrong and insulting.
Empty is a real answer. If nothing survives the filters, say so and omit the section:
Nothing significant here you didn't ask for — the plan follows the ideation
file closely.
Never invent decisions to fill it.
Ideation file said: "add a learning step at close that explains the change."
Plan contains a new _shared/ convention doc, a gitignored state file, and a
renumbering of the retrospective's parts.
Choices you didn't make
- The learner profile is a new file in
.spwf/, gitignored. You asked for calibration "appropriate to my level"; the plan decided that means persistent per-project state rather than asking each run. Consequence: it doesn't follow you across machines.- The retrospective grew a part rather than extending
recap. The plan treats teaching and summarising as separate steps, which means two things run back to back at close.
Both change the shape of the result. Neither is in the ideation file. Naming the
convention doc learner-profile.md is not in this list — it changes nothing.
Blast radius, from tasks.md and the proposal's Impact — which areas, roughly
how much, anything load-bearing. So the size is visible before it happens rather
than after.
Two or three lines. The what and the why, crystallised. This is what you carry into the build.
Cap the whole brief at roughly one screen. When it runs long, reduce depth in sections 1, 2 and 4 — never section 3. Section 3 is the only one with no substitute anywhere else in the workflow; the others restate material that also exists in the artefacts.
One prompt, then return:
"Anything here not what you expected? [enter to continue]"
An invitation, not a check. Enter dismisses it.
On a "yes": name the remedy, do not act on it.
| What's wrong | Remedy |
|---|---|
| A task looks wrong | Raise it at approve-plan — it's the next command and can revise tasks |
| The plan is wrong | Re-run /spwf:spec, or edit the artefacts directly |
| The idea is wrong | Back to /spwf:challenge |
Say which applies and why, then stop. Do not re-run spec, reopen
challenge, or edit any artefact. Offering to act is where a teaching step
becomes a control-flow step, and where the non-blocking guarantee at the top of
this file quietly dies.
Per _shared/learner-profile.md, record the
concepts the brief covered under ## Covered with the change-id and date.
brief explains rather than checks, so it has no evidence the developer
understood anything. Per that file's write-permission table, an explain-only
skill may write ## Covered and nothing else — not ## Known, not ## Open,
and never the level. Writing ## Known here would switch off understand at
close, on this same change; that file says why.
✓ Brief for {change-id}
{N} sections · {M} unasked-for decisions surfaced
── Next step ───────────────────────────────────────────────────
/spwf:approve-plan — review the task list and give the go/no-go
A colleague telling you what they're about to do and why, before they start. Concrete, names files, no emoji, no celebration. Short enough that reading it is never the expensive part of the change.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./approve-planPhase 2 — Approve plan. Reviews the task list from spec for quality (atomicity, testability, clarity), then applies four adversarial lenses (Skeptic, Architect, Minimalist, Security) as advisory input for the human reviewer. Quality issues are blocking; adversarial findings are advisory. Security lens identifies tasks touching auth, billing, user input, or secrets so the builder has explicit awareness before writing those tasks. Presents everything for explicit human go/no-go before building starts./branch-rescueRecovery skill — moves commits that landed on the base branch onto a proper feature branch and resets local base, without touching origin. Resolves the active OpenSpec change, detects the pre-spec base commit (subject-line grep with manual-confirm fallback), performs three local-only safe git operations, and surfaces the force-push command for the user to run manually. Run standalone; pr-create's rescue offer runs the same procedure inline (_shared/branch-management.md §4), because this skill is user-only./buildPhase 3 orchestrator — Full Red-Green-Refactor cycle. For each pending task: invokes write-tests (Red: write failing tests), then opsx:apply (Green: implement via OpenSpec), then run-tests (Verify: confirm green before moving on). Loops until all tasks complete. After all tasks complete, runs opsx:verify (spec sign-off), then recommends simplify (Refactor)./capturePre-phase orchestrator — accepts any input (issue tracker ticket, Slack message, file, or freeform description), classifies it as a bug or a change, then routes to the appropriate path. Bug path runs systematic root-cause investigation and produces todo/BUG-{slug}.md. Change path runs a lightweight qualification check and produces todo/{slug}.md. Both outputs feed /spwf:challenge.