/spwf:challengefrom spwf
Gate — Challenge a plan, ideation file, or design relentlessly. Accepts a file path as $ARGUMENTS (defaults to the most recent file in todo/ if omitted). Builds an explicit question map, interviews one question at a time across a 13-dimension taxonomy, runs an adversarial premortem + red-team pass, then a completeness self-audit so coverage is provable rather than vibes — finishing with a scope-sizing check that recommends splitting independent work or proceeding as one change.
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.
Read the target file. Then interview relentlessly about every aspect of the plan until all open questions are resolved.
If $ARGUMENTS contains a file path, read that file.
If no argument given, find the most recently created file in todo/:
ls -t todo/*.md | head -1
Read the file completely.
Before interviewing, enumerate the decision tree so coverage is provable, not a feeling — this is what stops a challenge from being "light." Produce an explicit working checklist (in your reply, not the file yet) of every point that must be resolved, drawn from:
## What we know item open to more than one reading## Open questionsThe interview is not complete until every item on the map is either resolved or consciously marked N/A with a one-line reason — never silently skipped. Silent skipping is the failure mode this map exists to prevent.
Walk these in order. For each: ask (one question at a time) or mark N/A — {reason}.
.spwf/priorities.md exists (see _shared/project-priorities.md), cross-check its ## Explicit non-goals — a plan drifting into a standing non-goal is a red flag worth one question## Directions considered / ## Not doing section (from /spwf:enrich), verify the rejection rationale still holds rather than asking cold; otherwise ask what alternatives were weighed## Current priorities / user outcome in .spwf/priorities.md when one exists, or is it success in a vacuum?Drive the map to zero. For each unresolved item:
Walk down each branch of the decision tree, resolving dependencies between decisions one by one. Tick items off the map as they resolve.
Cooperative questioning surfaces what the planner already half-knows; this step attacks the plan to surface what they don't. It is where "misses nothing" actually comes from — do not skip it.
Every new issue found here re-enters Step 3.
Before declaring done, run one explicit meta-check — the guard against a confidently incomplete interview:
State the outcome: either "no open items — every branch resolved," or the explicit residual risks carried into spec, each tagged with confidence. The challenge is complete only when the map is clear and this audit surfaces nothing new. Do not summarise before this passes.
Once the interview, adversarial pass, and self-audit are complete, update the source todo file:
## Open questions section with the resolved answers — each question followed by its answer in one or two sentences## Challenge decisions section listing every new decision made during the interview that was not already in the file (include the ones surfaced by the premortem / red-team in Step 4)## Residual risks section listing each with its confidence — so spec and build inherit them explicitly rather than rediscovering themWith all questions resolved and the rough scope now clear, assess whether this is one coherent OpenSpec change or whether it should be split.
| Signal | Description |
|---|---|
| Independent deployability | Part A could ship and be useful without Part B |
| Natural system boundary | Parts touch different layers, services, or teams |
| Different risk profiles | One part is safe/mechanical; another is exploratory or risky |
| Scope suggests > 2 phases | The rough scope breaks into phases that have no dependencies on each other |
| Different "done" definitions | Success for part A looks nothing like success for part B |
| Signal | Description |
|---|---|
| Tight coupling | The parts only make sense shipped together |
| Single user journey | One unbroken flow from the user's perspective |
| Shared data model change | A migration or schema change that both parts depend on |
If keeping as one change:
If the scope is large but tightly coupled, recommend structuring tasks.md with explicit phases so build can commit between phases. Note this in the summary. Proceed to Step 8.
If splitting is recommended:
Present the proposed split clearly:
Scope check: this work spans independent boundaries and would be cleaner as
separate changes.
Proposed split:
1. {slug-a} — {one sentence: what this delivers and why it stands alone}
2. {slug-b} — {one sentence: what this delivers and why it stands alone}
{3. ...}
Original ticket ({PROJ-123 or slug}) stays as the parent — each child references it.
Confirm split? (yes / no — 'no' keeps it as a single change)
If split confirmed:
todo/{slug-a}.md and todo/{slug-b}.md (etc.) using the ideation file format, carrying over ticket: if present and setting status: ideationstatus: split, add a ## Split into section listing the child file pathsspec independentlyIf split declined:
Note "kept as one change" in the summary and proceed.
Print the summary:
Challenge complete. All questions resolved.
Key decisions made:
- {decision 1}
- {decision 2}
...
Show git diff todo/ so the user can see what changed, then propose a commit.
If kept as one change:
docs: challenge {slug} — resolve open questions
Decisions made:
- {decision 1}
- {decision 2 — include any gotcha or non-obvious constraint that emerged}
{note any surprises from codebase exploration}
{note if large scope: "structured as N phases in tasks.md due to size"}
If split:
docs: challenge {slug} — split into {N} changes
{slug-a}: {one sentence}
{slug-b}: {one sentence}
Original marked status: split. Each child carries ticket: {PROJ-123}.
Ask: "Ready to commit? Confirm with 'yes' or edit the message first."
After confirming, stage all affected todo files and commit:
git add todo/
git commit -m "{confirmed message}"
Recommended next step:
/spwf:spec todo/{slug}.md/spwf:spec todo/{slug-a}.md (then repeat for each child)What SKILL.md sets; muted values are Claude Code's defaults
Other 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./npx claudepluginhub simon-potter/spwf --plugin spwf