Execute Plan
Execute phases from an implementation plan, following complexity-based grouping.
What It Does
- Reads the plan file and identifies phases
- Groups phases based on complexity scores
- Presents phase details before implementation
- Implements each phase following project patterns
- Marks tasks as complete
- Runs build verification
Usage
/execute-plan <plan_file> [phase]
Arguments:
plan_file(required): Path to the plan filephase(optional): Phase number, range, or "next". Default: next incomplete phase
Phase Options:
1- Execute phase 11-3- Execute phases 1 through 3next- Execute next incomplete phaseall- Execute all remaining phases
Execution Strategy
Based on combined complexity scores:
| Combined Score | Strategy |
|---|---|
| ≤ 6 | Aggregate: Execute multiple phases together |
| 7-10 | Cautious: Execute 1-2 phases, then verify |
| > 10 | Sequential: Execute one phase at a time |
Phase Execution Flow
For each phase:
- Present: Show phase details and approach
- Implement: Write code following project patterns
- Update: Mark tasks complete in plan file
- Verify: Run build verification
Example
/execute-plan @flow/plans/plan_user_auth_v1.md phase:1
Output:
Executing Phase 1: Types and Schemas
Complexity: 3/10
Tasks:
- [ ] Create User type definitions
- [ ] Create Zod validation schemas
Implementing...
✓ Phase 1 Complete
- Created src/types/user.ts
- Created src/schemas/user.ts
Build verification: npm run build ✓
Critical Rules
- Follow Patterns: Always follow existing project patterns
- Build After Each Phase: Verify build passes before proceeding
- Update Plan: Mark completed tasks in the plan file
- Tests Last: Execute test phase only after all other phases complete
Next Command
After executing all phases, run /review-code to review your changes before committing.