بنقرة واحدة
requirements
Use when a spec has research or goal context and needs requirements.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when a spec has research or goal context and needs requirements.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when a spec has tasks.md and should enter autonomous task execution.
Use when starting curdx-flow, creating a spec, resuming work, or routing intent.
Use when handling curdx-flow flags, state files, delegation, execution loops, or skill entrypoint rules.
Use when curdx-flow needs user decisions after codebase facts are discovered.
Use when a spec has design.md and needs implementation tasks.
Use when showing curdx-flow slash skills, options, workflow, or troubleshooting.
| name | requirements |
| description | Use when a spec has research or goal context and needs requirements. |
| argument-hint | [spec-name] |
| allowed-tools | Read Write Edit Bash Agent AskUserQuestion |
| disable-model-invocation | true |
Generate requirements for the active spec. Running this command implicitly approves research. You are a coordinator, not a product manager -- delegate ALL work to the product-manager subagent.
Complete these coordination steps in order; do not create user-facing implementation tasks from this checklist:
--quick)--quick)curdx-flow snapshot --spec "$ARGUMENTS" when $ARGUMENTS begins with a spec name; otherwise run curdx-flow snapshot.snapshot.active is false, error: "No active spec. Run /curdx-flow:new first."snapshot.spec.fsPath as $SPEC_PATH.curdx-flow state merge "$SPEC_PATH/.curdx-state.json" '{"awaitingApproval":false}'
research.md (if exists), .progress.md, snapshot.state, snapshot.topology, original goal.references/workflow-contract.md and references/agent-output-contract.md.Check if --quick appears in $ARGUMENTS. If present, skip to Step 3.
Parse Intent Classification and prior interview responses to skip already-answered questions.
Intent-Based Question Counts:
Apply adaptive dialogue from ${CLAUDE_PLUGIN_ROOT}/skills/interview-framework/SKILL.md. Ask context-driven questions one at a time.
Requirements Exploration Territory (hints, not a script):
After dialogue, propose 2-3 scoping approaches. Examples (illustrative only):
Append to .progress.md under "Interview Responses":
### Requirements Interview (from requirements.md)
- [Topic 1]: [response]
- Chosen approach: [name] -- [brief description]
Pass combined context to delegation prompt as "Interview Context".
Agent Teams are experimental and disabled by default in Claude Code. Use the team lifecycle only when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set and the TeamCreate / TaskCreate / TaskList / SendMessage tools are visible in the current session. If any team tool is unavailable or fails, immediately continue with the direct Agent(agent_type: product-manager) path. Treat this as the normal path, not a degraded path.
Direct path:
TaskCreate(subject: "Generate requirements for $spec", activeForm: "Generating requirements"). If unavailable or failing, continue without it.Agent(agent_type: product-manager) with research context, goal, and interview context. Instruct it to create user stories with acceptance criteria, functional requirements (FR-), non-functional requirements (NFR-), glossary, out-of-scope, dependencies. Output to ./specs/$spec/requirements.md../specs/$spec/requirements.md.Optional Agent Teams path:
TeamDelete() once to release any stale team; errors are harmless.TeamCreate(team_name: "requirements-$spec")TaskCreate(subject: "Generate requirements for $spec", activeForm: "Generating requirements")Agent(agent_type: product-manager, team_name: "requirements-$spec", name: "pm-1") with the same prompt as the direct path.TaskList check.SendMessage(type: "shutdown_request", recipient: "pm-1")./specs/$spec/requirements.md, then TeamDelete().
If NOT --quick, skip to Step 5.
Invoke spec-reviewer via Agent tool. Follow the standard review loop:
Review delegation: Include full requirements.md content, iteration count, prior findings. Upstream: research.md.
Revision delegation: Re-invoke product-manager with reviewer feedback. Focus on specific issues.
Error handling: Reviewer no signal = REVIEW_PASS. Agent failure = retry once, then use original.
Read ./specs/$spec/requirements.md and display:
Requirements complete for '$spec'.
Output: $PWD/specs/$spec/requirements.md
## What I Created
**Goal**: [1 sentence summary]
**User Stories** ([count] total):
- US-1: [title]
- US-2: [title]
- US-3: [title]
[list all, keep titles brief]
**Requirements**: [X] functional, [Y] non-functional
If --quick, skip to Step 6.
Ask ONE question: "How do you want to proceed?" with these options via AskUserQuestion:
If "Approve": proceed to Step 6. If "Run review": Invoke spec-reviewer via Agent tool with full requirements.md content (upstream: research.md). Display findings table. If REVIEW_PASS, note it. If REVIEW_FAIL, show feedback. Then loop back to this same 3-choice question (user decides next action). If "Request changes" or "Other":
Agent(agent_type: product-manager) and feedback; use the optional team lifecycle only if Agent Teams are enabled and available.curdx-state.json (preserve all existing fields):
curdx-flow state merge \
"$SPEC_PATH/.curdx-state.json" '{"phase":"requirements","awaitingApproval":true}'
.progress.md: mark research as implicitly approved, set current phaseRead commitSpec from .curdx-state.json. If true:
git add ./specs/$spec/requirements.md
git commit -m "spec($spec): add requirements"
git push -u origin $(git branch --show-current)
If commit or push fails, display warning but continue.
(Does not apply in --quick mode.)
-> Next: Run /curdx-flow:design/curdx-flow:design