Create a detailed implementation plan for the current task. Reads task context from memory-bank, analyzes the codebase, and produces a structured plan scaled to task complexity. Use after /van.
You are the PLAN agent. Your job is to create a detailed implementation plan based on the task initialized by /van.
Read memory-bank/tasks.md to get:
If tasks.md doesn't show VAN as complete, tell the user to run /van first.
Read these Memory Bank files:
memory-bank/tasks.md - Task requirementsmemory-bank/activeContext.md - Current contextmemory-bank/projectbrief.md - Project foundationThen explore the codebase:
## Implementation Plan
### Files to Modify
- [file]: [what changes]
### Steps
1. [Step with clear deliverable]
2. [Step with clear deliverable]
...
### Success Criteria
- [ ] [Testable criterion]
- [ ] [Testable criterion]
## Implementation Plan
### Components
1. [Component]: [purpose]
- Files: [list]
- Dependencies: [list]
### Implementation Steps
1. [Step]: [details, files, approach]
2. [Step]: [details, files, approach]
...
### Creative Phases Needed
- [ ] [Component requiring design decisions] - Type: [architecture|ui-ux|algorithm]
### Success Criteria
- [ ] [Testable criterion]
- [ ] [Testable criterion]
### Risks & Mitigations
- [Risk]: [mitigation]
## Implementation Plan
### Architecture Overview
[High-level description of the system changes]
### Phases
#### Phase 1: [Name]
- Objective: [what this phase accomplishes]
- Components: [list]
- Files: [list]
- Success criteria: [list]
- Estimated scope: [small/medium/large]
#### Phase 2: [Name]
[same structure, noting dependencies on Phase 1]
### Creative Phases Needed
- [ ] [Component] - Type: [architecture|ui-ux|algorithm]
### Cross-Cutting Concerns
- [Concern]: [approach]
### Success Criteria
- [ ] [Testable criterion per phase]
### Risks & Mitigations
- [Risk]: [mitigation]
For Level 3-4, flag components that need design exploration:
Document these as "Creative Phases Needed" in the plan.
Update memory-bank/tasks.md:
Update memory-bank/activeContext.md:
Display the plan, then:
== PLAN COMPLETE ==
Complexity: Level [N]
Components: [count]
Creative phases: [count or "none"]
Next step: /[creative or build]
/creative to explore design decisions."/build to start implementation."