| name | planner |
| description | Use when planning complex features, architecture design, multi-session work, or when plans need to be shared/reviewed. Activates for requests like "create a plan", "design implementation", "blueprint", or "plan out". |
| allowed-tools | ["shell","read_file","write_file","update_plan"] |
| metadata | {"short-description":"Create standalone implementation plan documents"} |
Implementation Planner
Create standalone implementation plan documents that can be:
- Understood without planning context
- Executed by different sessions or agents
- Validated for completeness before work begins
- Reviewed and approved before execution
Read these references:
~/.config/agent/core/methodology.md - 5-phase problem-solving framework
~/.config/agent/domain/architecture/decomposition.md - Problem breakdown strategies
~/.config/agent/domain/architecture/parallelization.md - Concurrent execution patterns
~/.config/agent/core/task-management.md - TODO discipline and task tracking
~/.config/agent/workflows/planning.md - Complete planning workflow and template
Instructions
Phase 1: Gather Requirements
If requirements are unclear, start with Design Discovery before proceeding:
- Review existing context (files, docs, prior decisions)
- Ask batched clarifying questions (group related items)
- Propose 2–3 approaches with trade-offs when ambiguity remains
- Confirm scope, constraints, and success criteria
Then continue with requirements gathering:
Before creating a plan, thoroughly understand:
- Explicit requirements - what was directly requested
- Implicit requirements - what's needed but not stated
- Constraints - technical, business, resource limitations
- Success criteria - how will we know it's done
- Assumptions - what are we assuming that needs validation
Ask clarifying questions if requirements are unclear. Do not proceed with ambiguous requirements.
Phase 2: Research and Exploration
Explore the codebase to understand:
- Current state - what exists now
- Relevant patterns - how similar problems were solved
- Dependencies - what this work depends on
- Integration points - where this connects to existing code
- Potential conflicts - what might this break
Use tools to gather evidence. Do not guess about code structure.
Phase 3: Design Architecture
Make and document key decisions:
- Approach selection - which solution path
- Component design - what modules/functions needed
- Interface design - how components interact
- Trade-off analysis - what was considered and rejected
Document rationale for significant decisions.
Phase 4: Decompose into Tasks
Break work into atomic, executable tasks:
- Identify atomic tasks - single, clear responsibility each
- Map dependencies - what must happen before what
- Find parallelization - what can run concurrently
- Estimate effort - size each task (S/M/L/XL)
- Define acceptance criteria - how to verify each task
Each task must be:
- Self-contained: Can be executed without reading the whole plan
- Testable: Has clear acceptance criteria
- Appropriately sized: Not too coarse, not too granular
Use decompose for atomic breakdowns and parallelize to identify concurrent work.
Phase 5: Define Verification
Specify how to validate the implementation:
- Test strategy - what tests are needed
- Success criteria - how to know it's complete
- Quality gates - what must pass before done
- Rollback plan - how to undo if needed
Phase 5b: Evidence and Handoff (Required)
Document:
- Evidence mode - label information as Verified vs Reported (Unverified)
- Handoff contract - assumptions to validate, dependencies, and do-not-change items
- Risk register - explicit risks with likelihood, impact, and mitigations
Phase 6: Format and Output
Generate the plan document using the standard template from planning.md.
Output options:
- File (default): Write to project-local
docs/plans/<name>.md or docs/plans/<name>/plan.md
- In-context: Display plan directly if user requests
File structure:
- Single file (default):
docs/plans/<name>.md for most plans
- Directory (complex plans):
docs/plans/<name>/plan.md + supporting files
- Use when: plan >500 lines, has supporting artifacts, or needs to split concerns
- Supporting files:
research.md, architecture.md, alternatives.md, assets/
Project root detection:
- Check if PWD contains
.git/
- If yes, use PWD as project root
- If no, ask user to either confirm PWD or provide a different directory
File creation:
- Single file:
mkdir -p <project-root>/docs/plans && touch <name>.md
- Directory:
mkdir -p <project-root>/docs/plans/<name> && touch plan.md
Plan Quality Checklist
Before presenting the plan, verify:
All guidance from AGENT.md also applies.
Arguments
Topic to plan: ${ARGUMENTS}