From wf
Stage 2 of the wf workflow. Translate an approved brainstorm spec into a PRD and ADRs. Produces .wf/plans/PRD-<feature_id>.md and .wf/adr/ADR-NNN-*.md. Slash-only — does not auto-commit and does not auto-invoke /wf:code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wf:planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Translate the approved brainstorm spec into an executable plan: a Product Requirements Document (PRD) and one or more Architecture Decision Records (ADRs). This is stage 2 of 4 in the wf workflow.
Translate the approved brainstorm spec into an executable plan: a Product Requirements Document (PRD) and one or more Architecture Decision Records (ADRs). This is stage 2 of 4 in the wf workflow.
Do NOT write any production code, modify any source files, or invoke /wf:code until the user has explicitly approved the PRD and the chosen architecture approach. The output of /wf:plan is documentation, not implementation.Before doing anything else:
.wf/STATE.md. If absent, refuse — tell the user to run /wf:brainstorm first.phase is not planning, refuse and suggest the matching /wf:* command..wf/brainstorm/<feature_id>.md. If absent, refuse — STATE is corrupt.You MUST create a task for each item:
references/architecture-glossary.md/wf:brainstorm, not here..wf/plans/PRD-<feature_id>.md using the template in references/prd-adr-templates.md.wf/adr/ADR-NNN-<slug>.md for each load-bearing decision (one ADR per decision; see "When to write an ADR" below)phase: coding in STATE.md and tell the user to run /wf:code when readyIf the project already has source code (i.e., this isn't greenfield), survey it before drafting the PRD:
CLAUDE.md if present — its conventions trump anything you'd otherwise infer.Glob / Grep / Read directly for narrow lookups.Explore subagent via the Agent tool. Do not dispatch code-explorer / code-architect from wf/agents/ — those are reserved for the wf:code phase to keep their roles unambiguous.references/architecture-glossary.md:
.wf/adr/ or docs/adr/. Surface these in the PRD's "Architecture Notes" section.Always propose 2-3 architecture-level alternatives. Each approach should describe:
Lead with your recommendation. Wait for user confirmation before drafting the PRD.
Write an ADR (.wf/adr/ADR-NNN-<slug>.md) for any decision that is:
Skip ADRs for ephemeral choices ("not worth it right now") or self-evident ones. Borrow this measure from upstream improve-codebase-architecture:
"Want to record this as an ADR so future architecture reviews don't re-suggest it?"
If the user rejects an architecture candidate with a load-bearing reason, offer an ADR for the rejection itself — that is exactly the kind of decision future explorers need to know about.
ADR numbers (NNN) are sequential across the project. Read .wf/adr/ (and docs/adr/ if it exists) and pick the next available number, padded to three digits. If no ADRs exist yet, start at 001.
Spec Self-Review (apply to both PRD and each ADR):
Fix issues inline, then ask the user to review.
Handoff:
After user approval:
.wf/STATE.md: set phase: coding, append a phase-log entry with the current ISO 8601 timestamp./wf:code when ready.Do NOT auto-invoke /wf:code or any other skill.
/wf:brainstormCLAUDE.md or CONTEXT.md trump generic onesGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub anthoooooooony/wf --plugin wf