| name | cwf-requirements-plan |
| description | Guide user through requirements phase |
| user-invocable | true |
| allowed-tools | ["Read","Write","Edit","Bash","Agent"] |
Gotchas
- Execute every numbered step — do not skip: Every step in the Workflow section is mandatory, including plan review via subagents. Agents tend to skip steps they judge as low-value (especially ones buried mid-list). Skipping creates rework, which is a form of task failure. If a step genuinely doesn't apply, explain why before skipping.
- Do not skip the plan review subagents (Step 8): The map/reduce review via 3 parallel Explore subagents catches phase-sequence errors, unchecked assumptions, and other plan defects before implementation. Skipping it has allowed these errors to ship. It is not optional.
Scope & Boundaries
This step: Complete b-requirements-plan.md with functional requirements, non-functional requirements, and acceptance criteria.
Not this step: Design decisions, implementation planning, code writing, or testing.
If blocked or finished: Call .cwf/scripts/command-helpers/workflow-manager control --current-step=b-requirements-plan --task-path=<path> to determine next action.
Context
Task arguments: {arguments}
Current task/workflow: Run .cwf/scripts/command-helpers/task-context-inference using the Bash tool.
First: Run .cwf/scripts/command-helpers/context-manager location using the Bash tool to confirm git root.
Workflow
Steps 1-4 (Preamble): Read .cwf/docs/skills/workflow-preamble.md and follow Steps 1-4 (argument parsing, task resolution, parent context, LLM decision).
Step 5: Read .cwf/docs/workflow/workflow-steps/requirements.md for detailed requirements phase guidance.
Step 6 (Execute):
- Open b-requirements-plan.md (v2.1) or b-requirements.md (v2.0) or requirements.md (v1.0)
- Focus on: Functional requirements (FR), non-functional requirements (NFR), acceptance criteria
- Avoid: Implementation approaches, code structure, deployment details
- Key questions: What must it do? How well? How do we verify? What are hard constraints?
Step 7: Check decomposition signals. See .cwf/docs/workflow/decomposition-guide.md.
Step 8: Plan review. Read .cwf/docs/skills/plan-review.md and follow the plan review procedure for plan type requirements.
Step 9: Checkpoint commit. See .cwf/docs/skills/checkpoint-commit.md. Stage: b-requirements-plan.md
Step 10 (Next Steps):
- Primary: Move to design →
/cwf-design-plan <task-path>
- Alt: Return to planning if requirements reveal scope issues
- Alt: Create subtasks if complexity signals triggered
Success Criteria