name: spec description: Requirements and design for a feature too large for one task - interviews the user, writes one spec, and splits it into tasks. argument-hint: "" disable-model-invocation: true
Write the spec for $ARGUMENTS and split it into tasks. No product code in this step.
- Read the project profile (
<workflowDir>/PROJECT_PROFILE.md), the project's CLAUDE.md,<workflowDir>/lessons.mdand the product playbook (../../departments/product/playbook.md). Find the code the feature touches with Grep, or thedev-workflow:scoutagent for a wide search, started with thescoutmodel (python3 <plugin folder>/hooks/dw.py models --project <project root>, the plugin folder being two levels above this file); read ranges, not files. - Interview the user until you could build it without guessing: who uses it and why, what they see and do, the states (empty, loading, error, success), limits and edge cases, what is out of scope, how it will be judged done. Rounds of at most four questions, recommended answer first; stop asking when the answers stop changing the spec. Do not ask what the code or the profile already answers.
- Write
<workflowDir>/specs/<slug>.md, at most about 80 lines:Goaland who it is for;Requirements, numbered, each with acceptance criteria written as checks;Out of scope;Design: the approach, the modules and data it touches, new dependencies, interface or schema changes, and for anything visual the screens, states and the design source they follow;Risks, with the risk tier of each part and anything that cannot be undone;Tasks: an ordered list, each one small enough for one sitting, with its type from the plan command'stracks.md, the requirement numbers it covers, and what it depends on. Every requirement is covered by at least one task.
- If the design is a real trade-off, run
/dev-workflow:adviseand record the outcome as one dated line in<workflowDir>/DECISIONS.md. - Show the user the requirements and the task list and ask for one approval. Then report the
spec path and the first task in 3 lines, and ask the user to type
/clearand run/dev-workflow:plan(with no argument it takes the next task from the spec).
When a task from the spec is finished, its line in Tasks is ticked with the commit. The spec
is done when every requirement's criteria are ticked.