Full 9-phase workflow for complex features, epics, and security-critical changes (2-4 hours)
Perfect for (complex tasks, ~5% of work):
Time estimate: 2-4 hours
Success criteria:
Phase 1: Research → Deep exploration, feasibility analysis
Phase 2: Story Creation → Formal requirements, acceptance criteria
Phase 3: Planning → Technical design, architecture
Phase 4: Adversarial Review → Security audit, edge case analysis
Phase 5: Implementation → Parallel coding, incremental builds
Phase 6: Testing → Comprehensive validation, all platforms
Phase 7: Validation → Acceptance criteria verification
Phase 8: Clean-up → Documentation, artifacts, debt log
Phase 9: Deployment → Full quality gates, staged rollout
Goal: Deep understanding of requirements, feasibility, and technical landscape.
Time allocation: 20-30 minutes
Define the problem space
Explore current implementation
# Find all related code
grep -r "related_feature" src/
# Find similar patterns
find src/ -name "*similar*"
# Check git history for similar features
git log --grep="similar feature" --oneline
Research dependencies and integrations
Identify risks and constraints
Evaluate alternatives
Problem Understanding:
Technical Research:
Risk Analysis:
Feasibility:
## Research Findings: [Feature Name]
### Problem Statement:
[Clear description of what we're solving]
### Users Affected:
- [User type 1]: [how they benefit]
- [User type 2]: [how they benefit]
### Technical Approach:
[High-level approach, alternatives considered]
### Files to Create/Modify:
- /path/to/new/file.js - [purpose]
- /path/to/existing/file.js - [what changes]
- /path/to/test/file.test.js - [test coverage]
### Dependencies:
- External: [external packages, APIs]
- Internal: [internal modules, services]
### Platform Considerations:
- **Platform A**: [specific notes]
- **Platform B**: [specific notes]
- **Platform C**: [specific notes]
### Risks:
1. [Risk 1] - Mitigation: [strategy]
2. [Risk 2] - Mitigation: [strategy]
### Success Metrics:
- [Metric 1]: [target]
- [Metric 2]: [target]
### Timeline Estimate:
- Research: [time]
- Implementation: [time]
- Testing: [time]
- Total: [time]
Goal: Create formal user stories with acceptance criteria and success metrics.
Time allocation: 15-20 minutes
Write user stories
Define acceptance criteria
Set success metrics
Create testing scenarios
Use the template in resources/story-template.md for consistent formatting.
Goal: Create detailed technical design and implementation plan.
Time allocation: 20-30 minutes
Architecture design
File-by-file implementation plan
Data schema design
Testing strategy
Rollout strategy
## Implementation Plan: [Feature Name]
### Architecture
#### Component Structure:
[Describe component hierarchy or architecture]
#### Data Flow:
User Action → Component → Service → State → UI Update [Detailed flow description]
#### State Management:
- **State location**: [where state lives]
- **State shape**: [schema]
- **Update methods**: [new methods needed]
### File-by-File Plan
#### New Files:
1. **/src/services/newService.js**
- Purpose: [what it does]
- Functions:
- `function1()`: [description]
- `function2()`: [description]
- Dependencies: [what it imports]
2. **/src/components/NewComponent.js**
- Purpose: [what it does]
- Props: [prop schema]
- State: [local state]
#### Modified Files:
1. **/src/existing/file.js**
- Add: [new functionality]
- Modify: [existing behavior]
#### Test Files:
1. **/tests/services/newService.test.js**
- Test coverage:
- [ ] Unit tests for all functions
- [ ] Edge cases
- [ ] Error handling
### Data Schema
#### New Fields:
```javascript