/spwf:enrichfrom spwf
Divergent gate — grow and re-shape an idea before challenge attacks it. Accepts a todo file path as $ARGUMENTS (defaults to the most recent file in todo/ if omitted). Reframes the problem as "How Might We", generates grounded variations across seven lenses, converges on 2-3 distinct approaches with trade-offs and a recommendation, then writes directions / recommended direction / assumptions-to-validate / not-doing back into the ideation file. Skippable for bugs and trivial/mechanical changes. Called as a step by the enricher agent, 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.
Read when SKILL.md points to them.
capture checks an idea is coherent. challenge attacks a fixed idea to zero.
Neither ever asks is this the right shape? or what else could this be?
enrich is the divergent step in between: it opens the option space, converges
on the strongest direction, and hands challenge a sharper idea to interrogate.
Divergent then convergent. Expand before you attack — generating and interrogating are opposite mental modes, so this runs as its own phase.
Everything below serves an outcome for a real person — the end user, the operator, the next developer. Hold that line:
Fit & leverage
(Step 4) is how well a direction serves that outcome durably — it is a
servant of value, never a substitute for it.## Not doing list is for._shared/project-priorities.md so the
value/end-game judgements reflect what this project actually cares about. If no
snapshot exists, that doc explains how to derive one from docs/, the README,
and roadmap/OKR files.Priorities refresh mode. If $ARGUMENTS contains --refresh-priorities,
re-derive .spwf/priorities.md per ../_shared/project-priorities.md
(confirm the draft, write, offer to commit), then stop — this mode only refreshes
the snapshot and does not enrich a file.
Otherwise: if $ARGUMENTS contains a file path, read that file. If not, find the
most recently created file in todo/:
ls -t todo/*.md | head -1
Read it completely. Then load the project priorities snapshot per
../_shared/project-priorities.md (read it if
present; offer to derive it if absent) so Steps 3-4 anchor value on this project's
actual mission, users, and non-goals.
Enrich earns its keep when the shape of the work is still open. Skip it — say
so in one line and point at /spwf:challenge — when the idea is already
single-shaped:
| Skip when | Why |
|---|---|
The file is todo/BUG-*.md | A root-caused bug has one fix shape, not a design space. Go straight to challenge. |
Rough scope says content/config-only or trivial code fix | There is nothing to diverge on. |
| The change is purely mechanical (rename, dependency bump, config toggle) | One obvious approach; divergence is theatre. |
| The user explicitly says the approach is already decided | Respect it — proceed to challenge. |
Otherwise, enrich. When in doubt, run it — a soft idea that survives divergence reaches challenge stronger; a hard one costs two minutes to confirm.
Goal: open the idea up, grounded in what actually exists.
Reframe as "How Might We". Restate the ## Context as a crisp
How might we …? problem statement. This forces clarity on the problem
before anyone commits to a solution. Show it and confirm it captures the
real intent before continuing — a wrong frame poisons everything downstream.
A sharp HMW is narrow enough to act on, broad enough to allow different
solutions, and carries a tension ("…without …"); if the first feels forced,
try 2-3 framings. See frameworks.md § "How Might We — the quality bar".
Ask up to 3 sharpening questions — one at a time. Only ask what the file and codebase can't already answer. Draw from: who is this for, specifically? what does success look like? what real constraints bind us (time, tech, data)? what's been tried before? why now? Provide your own best answer from context with each question; wait for confirmation or override. Stop at three — this is enrichment, not the challenge interview.
Scope smell (early). If the idea describes multiple independent subsystems, flag it now — "this looks like N independent pieces; want to enrich just the first?" Don't spend divergence on something that needs decomposing first. (Challenge owns the formal split; this is just an early warning.)
Generate 5-8 grounded variations. Ground every variation in the codebase —
use Grep/Glob/Read for existing architecture, patterns, and prior art,
and reference specific files. Push past the user's initial framing using these
lenses (pick the ones that fit — don't run all seven mechanically):
Each variation needs a reason it exists, not just a bullet — name the lens that generated it, so the user learns to think this way too. Present them, then let the user react — which resonate, which to drop, what's missing.
When the idea is stuck, over-familiar, or bigger than one lens can crack,
reach for the deeper toolkit in frameworks.md (SCAMPER, first-principles,
jobs-to-be-done, constraint-based, analogous inspiration). Use them
selectively — pick the one that fits; don't run them all.
After the user reacts, switch to convergent mode.
Cluster into 2-3 distinct approaches. Each must feel meaningfully different — different architecture, boundary, or bet — not three flavours of one idea.
Present them as approaches with trade-offs, lead with a recommendation. For each: what it is, what it costs, what it risks. State which you'd pick and why first, then the alternatives — so the user is reacting to a position, not refereeing a survey.
Triage each on three axes (full rubric, red flags, and the value×feasibility
decision matrix in convergence.md):
convergence.md.)Surface hidden assumptions, sorted by cost-of-being-wrong. Don't just list
them — tier them (see convergence.md § "Assumption audit"), each with how it
could be tested, so challenge and spec inherit which bets are load-bearing:
Untested must-be-true assumptions are the number-one killer of good ideas — do not skip this.
Be an honest partner, not a yes-machine. If the user's original idea is the weakest of the set, say so with specificity and kindness. Push back on complexity; name it when the emperor has no clothes.
The tells of a session that actually added thinking, rather than restating the ticket back:
getUser" became "cut p95 profile-load latency without adding a store to keep warm". If the HMW is just the title reworded, you haven't reframed yet.Idea: "add real-time collaboration to our document editor."
Reframe: How might we let 2-5 people work the same document simultaneously without it feeling chaotic — given we have no WebSocket layer today?
A grounded variation (Simplification lens): block-level presence + locking.
src/models/document.tsalready stores independent blocks with flat ordering, so alocked_byfield + a thin presence channel gives real co-editing with no character-level conflict resolution. Reason it exists: the existing block model makes the expensive part (merge/CRDT) unnecessary.Converge: value = high (losing deals to competitors that have it — a painkiller); feasibility = medium (need a presence transport, but no CRDT); fit & leverage = high (rides the existing block boundary rather than fighting it).
Assumption — Must be true: block-level granularity keeps real edit-conflicts rare enough that locking doesn't feel obstructive. Test: instrument current multi-editor sessions for same-block overlap.
Not doing: character-level CRDT (complexity the block model makes unnecessary), offline sync (out of scope for 2-5 live users), AI-mediated merge (premature).
Update the source file. Do not touch the frontmatter (source, status,
created are load-bearing — the todo-frontmatter-check hook enforces them) and
do not delete ## Open questions or ## Rough scope — challenge consumes those.
## Context to lead with the reframed How might we …? line (keep the
original detail beneath it).## What we know:
## Directions considered — the 2-3 approaches, each with its one-line trade-off, the rejected ones marked so.## Recommended direction — the chosen approach and why, in a few sentences. Scope it to the smallest slice that tests the riskiest assumption (see convergence.md § "Smallest-slice principles").## Assumptions to validate — grouped Must / Should / Might be true, each with how it could be tested.## Not doing — good ideas deliberately rejected, each with its reason. (This list is the most valuable output — focus is saying no to good ideas. Make the trade-offs explicit.)## Open questions so challenge attacks it,
and align ## Rough scope with the recommended direction.✓ Enriched: todo/{slug}.md
Reframed: How might we {…}
Explored: {N} variations → {2-3} directions
Recommended: {one-line chosen direction}
Not doing: {count} ideas rejected · {count} assumptions to validate
Recommended next step: /spwf:challenge todo/{slug}.md
Challenge now attacks the chosen direction — and its "Alternatives considered"
dimension arrives pre-answered by ## Directions considered and ## Not doing,
so the interview verifies the rejection rationale instead of starting cold.
Show git diff todo/, then propose:
docs: enrich {slug} — {recommended direction in a few words}
Reframed as: How might we {…}
Recommended: {chosen direction} — {one-line why}
Rejected: {the strongest not-doing, with reason}
{note any surprise surfaced from codebase exploration}
Ask: "Ready to commit? Confirm with 'yes' or edit the message first." After confirming:
git add todo/{slug}.md
git commit -m "{confirmed message}"
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