| name | speccrew-pm-requirement-clarify |
| description | SpecCrew PM Requirement Clarification Skill. Dual-mode support (simple/complex). Produces .clarification-summary.md as interface contract for downstream PRD generation. First step in PRD workflow. |
| tools | Read, Write, Glob, Grep |
Skill Overview
Requirement clarification with dual-mode support. Produces .clarification-summary.md as the interface contract.
Trigger Scenarios
- User provides initial requirement description
- PM Agent needs to clarify before PRD generation
- Requirement complexity assessment needed
Input Parameters
| Parameter | Type | Required | Description |
|---|
requirement_file | string | Yes | Path to requirement document |
iteration_path | string | Yes | Path to iteration directory |
complexity_hint | enum | No | simple or complex. Auto-detect if not provided |
max_clarification_rounds | number | No | Maximum clarification rounds (default: 5) |
Methodology Foundation
Applies ISA-95 Stage 1 (Domain Description) for clarification:
- Define domain boundary, participants, glossary
- Results flow into
.clarification-summary.md only
PM Stage Content Boundary
DO NOT include: API definitions, DB structures, code snippets, technical terminology. These belong to Feature Designer or System Designer.
Templates Used
| Template | Path | When to Load | Purpose |
|---|
| Clarification Questions | templates/CLARIFICATION-QUESTIONS-TEMPLATE.md | Inside Loop L1 (each round) | Round-based questionnaire for user clarification |
| Clarification Summary | templates/CLARIFICATION-SUMMARY-TEMPLATE.md | After G3 guard passes (sufficiency_checks_passed == true) | Final summary document with all Q&A and decisions |
CRITICAL: These two templates are used in separate phases. NEVER load both templates at the same time.
- During the clarification loop: ONLY load
CLARIFICATION-QUESTIONS-TEMPLATE.md
- After ALL sufficiency checks pass: ONLY then load
CLARIFICATION-SUMMARY-TEMPLATE.md
Execution Flow (MANDATORY sequence)
Step 1: Read requirement document
Step 2: Read system knowledge (if exists)
Step 3: Determine complexity mode (simple/complex/auto-detect)
Step 4: Initialize loop variables
Step 5: Clarification Loop (both simple and complex modes):
5a. Load CLARIFICATION-QUESTIONS-TEMPLATE.md (ONLY this template)
5b. Generate .clarification-questions-round-{N}.md from template
5c. *** HARD STOP *** Wait for user to answer questions (user-confirm event)
5d. Read user's answered questions file
5e. Perform sufficiency checks (MUST have real user answers)
5f. If checks fail and rounds remain → back to 5a
5g. If checks pass → exit loop
Step 6: Guard Gateway G3 (sufficiency_checks_passed == true required)
6a. Load CLARIFICATION-SUMMARY-TEMPLATE.md (ONLY now)
6b. Generate .clarification-summary.md from template
6c. Checkpoint: clarification complete
FORBIDDEN: Skipping Step 5c (user-confirm), loading summary template during Step 5, or generating summary without user answers.
AgentFlow Definition
REQUIRED: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
Output Checklist
Constraints
Must do:
- Always perform at least 1 clarification round
- MANDATORY: Execute multiple rounds until ALL 4 sufficiency checks pass
- Use file-based for complex mode or 4+ questions
- Pass all 4 Sufficiency Checks
- Generate
.clarification-questions-round-{N}.md for each round
- Update
sufficiency_checks_passed variable after each sufficiency check
- Increment
round_number after each round
- Maximum 5 rounds allowed (safety valve)
- Use
update-progress.js for JSON files
- After completion, return control to PM Agent for user confirmation — DO NOT auto-proceed to PRD generation
Must not do:
- Skip clarification based on urgency
- Use chat for complex requirements
- Manually write JSON files
- Auto-proceed to Phase 4 (PRD generation) without PM Agent's user confirmation gate
- Auto-pass sufficiency checks without actual user answers
- Checkpoint management is FORBIDDEN in this Skill
- MUST NOT create, write, or modify
.checkpoints.json or any checkpoint files
- Checkpoint write operations are the responsibility of the orchestration layer (PM Agent)
- After this Skill completes, PM Agent writes checkpoints ONLY after user confirmation is received
MANDATORY: User Answer Verification Rule
- Worker MUST NOT auto-pass sufficiency checks without actual user answers
- Each clarification round MUST wait for user to fill in answers before proceeding
- Checkpoint writing is FORBIDDEN in this Skill — checkpoints are managed by the orchestration layer
- The sufficiency check result is ONLY valid when based on real user-provided answers
CRITICAL: User Confirmation Event Enforcement
- Event Block = Hard Stop: Each
<block type="event" action="user-confirm"> (E-ROUND-CONFIRM) MUST trigger a pause. Worker MUST NOT proceed until user provides explicit confirmation.
- No "Automated Scenario" Bypass: Even in automated dispatch mode (speccrew-task-worker),
user-confirm events override Worker autonomy. These are explicit user interaction gates, NOT internal automation points.
- Template-Based Generation Only: All clarification question files (
.clarification-questions-round-{N}.md) MUST be generated using the loaded template (CLARIFICATION-QUESTIONS-TEMPLATE.md) with variable substitution. Freeform generation is FORBIDDEN.
- Template-Based Summary Only: The
.clarification-summary.md MUST be generated using CLARIFICATION-SUMMARY-TEMPLATE.md with variable substitution. Freeform generation is FORBIDDEN.
CRITICAL: Summary Generation Guard
Worker MUST strictly enforce the following before generating .clarification-summary.md:
- Guard Check:
sufficiency_checks_passed MUST be true before proceeding to summary generation
- Event Block Execution: When encountering
user-confirm event blocks (E-ROUND-CONFIRM), Worker MUST pause and wait for user confirmation. Worker MUST NOT auto-confirm or skip.
- Variable State Verification: After loop L1 exits, verify
sufficiency_checks_passed == true. If false, do NOT generate summary — report error and exit.
- FORBIDDEN: Generating
.clarification-summary.md when user has not answered clarification questions is a CRITICAL workflow violation.