// Create detailed implementation plans through interactive research and iteration. This skill should be used when creating new implementation plans, designing feature specifications, planning technical work, or when the user asks to plan an implementation. Triggers on requests like "create a plan", "plan the implementation", "design how to implement", or when given a feature/task that needs structured planning before implementation.
| name | create-plan |
| description | Create detailed implementation plans through interactive research and iteration. This skill should be used when creating new implementation plans, designing feature specifications, planning technical work, or when the user asks to plan an implementation. Triggers on requests like "create a plan", "plan the implementation", "design how to implement", or when given a feature/task that needs structured planning before implementation. |
Create detailed, well-researched implementation plans through interactive collaboration and thorough codebase investigation.
Parse the user's request to identify:
| Scenario | Action |
|---|---|
| Parameters provided | Read all referenced files completely, then proceed to Research |
| Missing task description | Ask: "What feature or functionality should I plan?" |
| No context provided | Ask: "Are there existing files or documentation I should review?" |
Critical: Thoroughly investigate the codebase before planning.
Spawn parallel sub-tasks using specialized agents:
Research Tasks:
- codebase-locator: Find all files related to the feature area
- codebase-analyzer: Understand existing patterns and architecture
- Explore: Investigate integration points and dependencies
For each research task, provide:
Read all identified files completely - no partial reads or summaries.
Before any design work, present findings:
Codebase Analysis
Clarifying Questions
Wait for user response before proceeding.
Critical: Do not accept user corrections at face value.
When the user provides corrections or additional context:
If conflicts exist, present findings and discuss before proceeding.
Present design approaches with trade-offs:
Option A: [Approach Name]
- Description: [How it works]
- Pros: [Benefits]
- Cons: [Drawbacks]
- Fits pattern: [Reference to existing codebase patterns]
Option B: [Alternative Approach]
- Description: [How it works]
- Pros: [Benefits]
- Cons: [Drawbacks]
- Fits pattern: [Reference to existing codebase patterns]
Recommendation: [Preferred option with rationale]
Wait for user feedback on approach before detailing phases.
Before writing detailed plan, present proposed phases:
Proposed Implementation Phases:
Phase 1: [Name] - [Brief description]
Phase 2: [Name] - [Brief description]
Phase 3: [Name] - [Brief description]
Does this structure make sense? Any phases to add/remove/reorder?
Get explicit approval before writing the full plan.
Write the implementation plan to the designated location:
Default path: docs/plans/YYYY-MM-DD-description.md
Use this structure:
# Implementation Plan: [Feature Name]
## Overview
[2-3 sentence summary of what will be implemented]
## Context
[Background, motivation, relevant existing code references]
## Design Decision
[Chosen approach and rationale]
## Implementation Phases
### Phase 1: [Name]
**Objective**: [What this phase accomplishes]
**Tasks**:
- [ ] Task 1 with specific file references
- [ ] Task 2 with specific file references
**Success Criteria**:
Automated Verification:
- [ ] `npm test` passes
- [ ] `npm run lint` passes
- [ ] `npm run build` succeeds
Manual Verification:
- [ ] [Observable behavior to test]
- [ ] [Edge case to verify]
### Phase 2: [Name]
[Continue pattern...]
## Dependencies
[External dependencies, prerequisites, blockers]
## Risks and Mitigations
[Potential issues and how to handle them]
Automated Verification - Testable via commands:
npm test, make test)npm run lint)npm run typecheck)npm run build)Manual Verification - Human-observable behaviors:
Never mix these categories - keep them distinctly separated.
Do NOT write plans with open questions.
If planning encounters ambiguity:
A plan with "TBD" or "to be determined" sections is incomplete.
Before finalizing any plan: