Basic Flow
The typical workflow progression:Start with Requirements Agent
Invoke the π Requirements agent with your feature idea or user request.The agent will:
- Research your codebase for similar features
- Ask clarifying questions
- Draft a requirements document
- Iterate until you approve
Hand Off to Plan Agent
Once requirements are approved, invoke the π Plan agent with the requirements document.The agent will:
- Research architectural patterns
- Design component structure
- Create implementation sequencing
- Iterate until you approve
Generate Tasks
With approved requirements and plan, invoke the β
Task agent.The agent will:
- Break design into coding tasks
- Identify dependencies
- Create verification criteria
- Produce actionable checklist
Agent Invocation Patterns
Each agent accepts different input formats:Requirements Agent
Plan Agent
Task Agent
Internal Agent Workflow
Each agent follows the same internal cycle:1. Discovery
The agent uses a research subagent to autonomously explore:- Existing features and patterns
- Project conventions and skills
- Technical constraints
- Analogous implementations
Agents MUST use
#tool:agent/runSubagent for research β they donβt explore directly. This keeps the main agent focused on synthesis and decision-making.2. Alignment
If research reveals ambiguities:- Agent uses
#tool:vscode/askQuestionsto clarify - Surfaces technical constraints and tradeoffs
- Validates assumptions before drafting
- May loop back to Discovery if scope changes significantly
3. Drafting
Once context is clear:- Agent drafts the spec document (requirements/plan/tasks)
- Follows the phase-specific style guide
- Includes traceability identifiers (REQ-, DES-, etc.)
- Persists to
specs/features/{NNN}-{feature-name}/ - Shows scannable summary to user
4. Refinement
User can request:- Changes β Agent revises and syncs the file
- Alternatives β Loops back to Discovery
- Clarifications β Agent explains or asks follow-ups
- Approval β Enables handoff to next phase
Decision Trees
Requirements Agent Decisions
Plan Agent Decisions
Task Agent Decisions
File Structure
The workflow produces this structure:Naming Convention
{NNN}: Zero-padded sequential number (e.g.,042){feature-name}: Kebab-case description (e.g.,data-export)
specs/features/001-oauth-integration/specs/features/042-data-export/specs/features/137-workspace-sharing/
Practical Examples
Example 1: Simple Feature
Export CSV Feature (Start to Finish)
Export CSV Feature (Start to Finish)
Phase 1: RequirementsPhase 2: PlanPhase 3: Tasks
Example 2: Complex Feature
Real-time Collaboration (Abbreviated)
Real-time Collaboration (Abbreviated)
Phase 1 focuses on:
- User personas (editors vs viewers)
- Conflict resolution requirements
- Performance constraints
- Security and permissions
- WebSocket vs Server-Sent Events
- Operational Transform vs CRDT
- State synchronization strategy
- Rollback and recovery
- Phase A: Core infrastructure (WebSocket, connection management)
- Phase B: Document sync (conflict resolution, state management)
- Phase C: UI integration (presence indicators, live cursors)
Best Practices
Start with Why
Begin requirements with the problem and user value, not the solution
Question Early
Use
askQuestions liberally in Discovery and Alignment β donβt guessResearch First
Always run research subagent before drafting specs
Sync Files
Keep spec files in sync with every revision β donβt just update in-chat
Trace Everything
Maintain REQ β DES β Task mappings throughout all phases
Verify Incrementally
Add verification steps at task boundaries, not just at the end
Common Pitfalls
Next Steps
Requirements Phase
Learn how to gather and document requirements
Plan Phase
Explore technical design and planning
Task Phase
Master implementation task breakdown