with one click
plan
// Create phased implementation plans from design artifacts. Decomposes designs into parallelized atomic phases with success criteria in thoughts/shared/plans/. Use after design.
// Create phased implementation plans from design artifacts. Decomposes designs into parallelized atomic phases with success criteria in thoughts/shared/plans/. Use after design.
| name | plan |
| description | Create phased implementation plans from design artifacts. Decomposes designs into parallelized atomic phases with success criteria in thoughts/shared/plans/. Use after design. |
| argument-hint | ["design artifact path"] |
You are tasked with creating phased implementation plans from design artifacts. The design artifact contains all architectural decisions, full implementation code, and ordering constraints. Your job is to decompose that design into parallelized atomic phases with success criteria that implement can execute.
When this command is invoked:
Determine input mode:
Design artifact provided (path to a .md file in thoughts/shared/designs/):
No arguments provided:
I'll create an implementation plan from a design artifact. Please provide the path:
`/skill:plan thoughts/shared/designs/2025-01-20_09-30-00_feature.md`
Run `/skill:design` first to produce the design artifact. There is no standalone path.
Then wait for input.
Read any additional files mentioned in the design's References — research documents, tickets. Read them FULLY for context.
Read the Ordering Constraints and File Map from the design artifact. Apply phasing rules:
If the design's Ordering Constraints say "all files independent", consider whether a single phase is appropriate. Don't split into phases just for the sake of it — if all changes can be done in one worktree session, one phase is correct.
Present phase outline and get developer feedback BEFORE writing details:
Here's my proposed plan structure based on the design at [path]:
## Implementation Phases:
1. [Phase name] - [what it accomplishes] ([N] files)
2. [Phase name] - [what it accomplishes] ([N] files)
3. [Phase name] - [what it accomplishes] ([N] files)
Phases [2] and [3] can run in parallel after Phase 1.
Total: [N] files across [M] phases.
Does this phasing make sense? Should I adjust the order or granularity?
Use the ask_user_question tool to confirm the phase structure. Question: "[N] phases, [M] total files. Does this structure work?". Header: "Phases". Options: "Proceed (Recommended)" (Write the detailed plan with code blocks and success criteria); "Adjust phases" (Split, merge, or reorder phases before writing); "Change scope" (Add or remove files from the plan).
Get feedback on structure before writing details.
After structure approval, write the plan incrementally — skeleton first, then fill each phase:
Write the plan skeleton to thoughts/shared/plans/YYYY-MM-DD_HH-MM-SS_description.md
YYYY-MM-DD_HH-MM-SS_description.md where:
2025-01-08_14-30-00_ENG-1478-parent-child-tracking.md2025-01-08_14-30-00_improve-error-handling.mdFill code blocks using Edit — one phase at a time:
Use this template structure:
---
date: [Current date and time with timezone in ISO format]
planner: [User from injected git context]
git_commit: [Current commit hash]
branch: [Current branch name]
repository: [Repository name]
topic: "[Feature/Task Name]"
tags: [plan, relevant-component-names]
status: ready
design_source: "[path to design artifact]"
last_updated: [Current date in YYYY-MM-DD format]
last_updated_by: [User from injected git context]
---
# [Feature/Task Name] Implementation Plan
## Overview
[Brief description of what we're implementing and why. Reference design artifact.]
## Desired End State
[From design artifact's Desired End State / Summary — what "done" looks like and how to verify it]
## What We're NOT Doing
[From design artifact's Scope → Not Building]
## Phase 1: [Descriptive Name]
### Overview
[What this phase accomplishes]
### Changes Required:
#### 1. [Component/File Group]
**File**: `path/to/file.ext`
**Changes**: [Summary of changes]
```[language]
// Code from design artifact's Architecture section
pnpm typecheckpnpm lintpnpm test[Similar structure with both automated and manual success criteria...]
[From design artifact — copied directly]
[From design artifact — copied directly. If applicable: schema changes, data migration, rollback strategy, backwards compatibility. Empty if not applicable.]
thoughts/shared/designs/[file].mdthoughts/shared/research/[file].mdthoughts/me/tickets/[file].md
## Step 4: Review
1. **Present the plan location**:
Implementation plan written to:
thoughts/shared/plans/[filename].md
[N] phases, [M] total file changes.
Please review:
When ready, run /skill:implement thoughts/shared/plans/[filename].md Phase 1
2. **Iterate based on feedback** — be ready to:
- Split large phases
- Merge small phases
- Adjust success criteria
- Reorder phases
3. **Continue refining** until the developer is satisfied
## Guidelines
1. **Trust the Design**:
- Design decisions are fixed — do not re-evaluate architectural choices
- If something in the design seems wrong, flag it to the developer
- Don't silently change the approach or add scope
- The design is the source of truth for what to build
2. **Be Interactive**:
- Don't write the full plan in one shot
- Get buy-in on phase structure first
- Allow course corrections on granularity
- Work collaboratively
3. **Be Practical**:
- Focus on incremental, testable changes
- Each phase should leave the codebase in a working state
- Think about what can be verified independently
- Include "what we're NOT doing" from the design's scope
4. **Phase for Worktrees**:
- Each phase should be implementable in an isolated worktree
- No phase should depend on another phase's uncommitted changes
- If the design says "all independent," one phase may be correct
- Don't split for the sake of splitting
5. **Track Progress**:
- Use a todo list to track planning tasks
- Mark planning tasks complete when done
6. **No Open Questions in Final Plan**:
- If you encounter open questions during planning, STOP
- If the design artifact has unresolved questions, send the developer back to design
- Do NOT write the plan with unresolved questions
- The implementation plan must be complete and actionable
## Success Criteria Guidelines
**Always separate success criteria into two categories:**
1. **Automated Verification** (can be run by execution agents):
- Commands that can be run: `make test`, `npm run lint`, etc.
- Specific files that should exist
- Code compilation/type checking
- Automated test suites
2. **Manual Verification** (requires human testing):
- UI/UX functionality
- Performance under real conditions
- Edge cases that are hard to automate
- User acceptance criteria
**Format example:**
```markdown
### Success Criteria:
#### Automated Verification:
- [ ] Database migration runs successfully: `make migrate`
- [ ] All unit tests pass: `go test ./...`
- [ ] No linting errors: `golangci-lint run`
- [ ] API endpoint returns 200: `curl localhost:8080/api/new-endpoint`
#### Manual Verification:
- [ ] New feature appears correctly in the UI
- [ ] Performance is acceptable with 1000+ items
- [ ] Error messages are user-friendly
- [ ] Feature works correctly on mobile devices
Convert design's Verification Notes to success criteria:
pnpm build && verify in built app[ ] Open [component], scroll, observe slim scrollbargrep -r "X" src/ should return 0 matchesAnalyze solution options for features or changes. Compares approaches with pros/cons and provides recommendations. Produces documents in thoughts/shared/solutions/. Use when multiple valid approaches exist.
Design features through iterative vertical-slice decomposition and progressive code generation with developer micro-checkpoints. For complex multi-component features touching 6+ files across multiple layers. Produces design artifacts in thoughts/shared/designs/. Always requires a research artifact from discover → research, or a solutions artifact from explore.
Generate trace-quality research questions from codebase discovery. Spawns discovery agents and reads key files for depth, then synthesizes into dense question paragraphs for the research skill. Produces question artifacts in thoughts/shared/questions/. First stage of the research pipeline.
Execute approved implementation plans phase by phase. Implements changes with verification against success criteria. Use when a plan is ready for implementation.
Answer structured research questions via targeted parallel analysis agents. Consumes question artifacts from discover. Produces research documents in thoughts/shared/research/. Second stage of the research pipeline — always requires a questions artifact.
Update existing implementation plans based on feedback. Makes surgical edits while preserving structure and quality. Use when plans need adjustments after review or during implementation.