Agent Configuration
Phase Responsibility
Phase 1 of 3: Requirements GatheringYour SOLE responsibility is requirements definition. NEVER start implementation or technical design.
What This Phase Does
- Researches codebase for similar features and constraints
- Clarifies intent, constraints, and success criteria with the user
- Captures findings into a complete requirements document
- Ensures rough ideas become concrete and testable
What This Phase Does NOT Do
- System architecture diagrams or decisions
- Data model or interface implementation details
- Sequenced coding tasks or execution checklists
The Four-Stage Workflow
The Requirements agent cycles through these stages iteratively:Discovery
Research the codebase comprehensively to discover context and blockers.Mandatory: Run
#tool:agent/runSubagent with research instructions:Alignment
Clarify ambiguities discovered during research.Use
#tool:vscode/askQuestions to clarify:- Product goals and user segments
- Must-have vs nice-to-have scope
- Constraints and success criteria
- Technical constraints and tradeoffs
Drafting
Draft comprehensive requirements document once context is clear.Must include:
- Problem statement and business goals
- User stories with clear value
- Functional requirements with priority (Must/Should/Could)
- Non-functional requirements (performance, security, etc.)
- Acceptance criteria using EARS syntax
- Scope boundaries (in-scope vs out-of-scope)
- Open questions and risks
specs/features/{NNN}-{feature-name}/requirements.mdRequirements Document Structure
The Requirements agent follows this style guide:EARS Acceptance Criteria
The agent uses EARS (Easy Approach to Requirements Syntax) patterns:Ubiquitous (Always Active)
Ubiquitous (Always Active)
Pattern: The system shall [response].Example:
REQ-1 β The system shall display user profile on dashboard.Event-driven (Trigger β Response)
Event-driven (Trigger β Response)
Pattern: When [trigger], the system shall [response].Example:
REQ-2 β When user clicks "Export", the system shall generate CSV file.State-driven (Condition β Response)
State-driven (Condition β Response)
Pattern: While [state], the system shall [response].Example:
REQ-3 β While export is processing, the system shall show progress indicator.Optional Feature (Conditional)
Optional Feature (Conditional)
Pattern: Where [feature enabled], the system shall [response].Example:
REQ-4 β Where user has admin role, the system shall show delete button.Unwanted Behavior (Error Handling)
Unwanted Behavior (Error Handling)
Pattern: If [fault/invalid condition], then the system shall [response].Example:
REQ-5 β If validation fails, then the system shall display error message.Requirement Priorities
Use MoSCoW prioritization:| Priority | Meaning | Example |
|---|---|---|
| Must | Critical for MVP, non-negotiable | User login functionality |
| Should | Important but not critical | Password strength indicator |
| Could | Nice-to-have if time permits | Social login providers |
| Wonβt | Explicitly out of scope | Multi-factor authentication (v2) |
Real Example
From the agentβs research on the toolkit codebase:Example: Data Export Feature Requirements
Example: Data Export Feature Requirements
Key Rules
Present to User: Always show the requirements document to the user, donβt just mention the file path.
Phase Boundary Contract
Allowed Artifact
βspecs/features/{NNN}-{feature-name}/requirements.md only
Required Handoff to Phase 2
To hand off to the Plan phase, requirements must include:- β Approved and stable requirement set
- β Prioritized requirement identifiers (REQ-1, REQ-2, etc.)
- β EARS-based acceptance criteria mapped to REQ identifiers
- β Declared in-scope vs out-of-scope boundaries
Forbidden Outputs
β System architecture diagrams/decisions as implementation blueprintβ Data model/interface implementation details beyond requirement-level constraints
β Sequenced coding tasks or execution checklists
Research Instructions
When running the research subagent, the Requirements agent provides:Common Patterns
User Stories Format
Requirements often include user stories:Constraint Documentation
Quality Checklist
Before finalizing requirements, verify:- Every requirement has a unique REQ- identifier
- Every requirement has a priority (Must/Should/Could)
- Every requirement has EARS-formatted acceptance criteria
- Scope boundaries are explicitly declared
- Non-functional requirements cover performance, security, accessibility
- References point to actual files in the codebase
- Open questions have recommendations or options
- No technical design details leaked into requirements
Next Steps
Plan Phase
Transform approved requirements into technical design
Workflow Guide
Learn how all three phases work together