Skip to content

/plan

Create structured implementation plans with task breakdown, dependencies, and time estimates for complex work.

The /plan command helps you transform complex features or tasks into actionable, well-organized implementation plans. It breaks down work into manageable chunks, identifies dependencies, estimates effort, and highlights risks.

Terminal window
/plan [task description or feature request]
  • task description: Description of the feature, task, or work you need planned

The planner first clarifies what you’re trying to build:

  • Identifies core functionality needed
  • Lists explicit and implicit requirements
  • Defines acceptance criteria
  • Asks clarifying questions if needed

Next, it explores your codebase to understand context:

  • Finds related implementations
  • Identifies patterns to follow
  • Locates integration points
  • Notes existing conventions

Work is decomposed into clear, actionable tasks:

  • Each task takes 15-60 minutes (standard mode)
  • Clear completion criteria for each task
  • Dependencies mapped out
  • Tasks sized as S/M/L/XL

Finally, a comprehensive plan document is created:

  • Task list with phases
  • Files to create/modify
  • Risk assessment
  • Success criteria

Default planning with 15-60 minute tasks:

Terminal window
/plan "implement user authentication"

Task sizes:

  • S: < 30 minutes
  • M: 30-60 minutes
  • L: 1-2 hours
  • XL: 2-4 hours

Superpowers-style planning with 2-5 minute tasks and exact code:

Terminal window
/plan --detailed "implement user authentication"

Features:

  • Bite-sized tasks (2-5 minutes each)
  • Exact file paths included
  • Complete code samples (not descriptions)
  • TDD steps per task (write test → verify fail → implement → verify pass → commit)
  • Expected command outputs specified

When to use detailed mode:

  • Complex features requiring precision
  • When you want automated execution with /execute-plan
  • Team members new to the codebase
  • When you want minimal decision-making during implementation

Plans include the following sections:

Brief overview of what will be built

  • In Scope: What will be done
  • Out of Scope: What won’t be done
  • Assumptions: Key assumptions made

Organized into phases with dependencies:

#TaskSizeDepends On
1Create data modelM-
2Set up database migrationS1
3Add model testsM1

Complete list of files that will be touched

External packages and internal prerequisites

Potential issues and mitigation strategies

Checklist for determining completion

FlagDescriptionExample
--detailedUse 2-5 min tasks with exact code--detailed
--mode=[mode]Use specific behavioral mode--mode=brainstorm
--depth=[1-5]Planning thoroughness level--depth=4
--format=[fmt]Output format (concise/detailed/json)--format=detailed
--save=[path]Save plan to file--save=plans/auth.md
--checkpointCreate checkpoint after planning--checkpoint
ModeBest For
defaultStandard planning
brainstormExploratory planning, multiple approaches
deep-researchComplex features needing investigation
implementationQuick plans for clear tasks
Terminal window
/plan "add password reset functionality"

Creates a standard plan with 15-60 minute tasks for implementing password reset.

Terminal window
/plan --detailed "implement OAuth2 authentication"

Creates a detailed plan with 2-5 minute tasks, ready for automated execution with /execute-plan.

Terminal window
/plan --mode=brainstorm "redesign checkout flow"

Uses brainstorming mode to explore multiple approaches before settling on a plan.

Terminal window
/plan --save=plans/payment-integration.md "integrate Stripe payments"

Creates plan and saves it to the specified file for later reference.

Terminal window
/plan --depth=5 --save=plans/migration.md "migrate from MongoDB to PostgreSQL"

Creates an exhaustive plan with thorough analysis for a complex migration.

  1. Create detailed plan:

    Terminal window
    /plan --detailed "feature description"
  2. Execute plan with subagents:

    Terminal window
    /execute-plan path/to/plan.md
  1. Brainstorm design:

    Terminal window
    /brainstorm "feature concept"
  2. Create implementation plan:

    Terminal window
    /plan --detailed "feature from design"
  3. Execute with automation:

    Terminal window
    /execute-plan path/to/plan.md
  • Quick features with clear requirements
  • Experienced developers familiar with codebase
  • Exploratory or research-heavy tasks
  • When you want flexibility during implementation
  • Complex features requiring precision
  • When multiple developers will implement
  • Features requiring automated execution
  • When you want to minimize implementation decisions
  1. Be specific in your task description
  2. Include context about existing implementations
  3. Mention constraints (performance, security, etc.)
  4. State preferences for approaches or technologies
  5. Ask for comparisons if uncertain about approach
  • /brainstorm - Design features before planning implementation
  • /execute-plan - Execute detailed plans with subagents
  • /research - Research technologies before planning
  • /tdd - Test-driven development workflow

Plans can be customized via CLAUDE.md:

  • Task size definitions
  • Required plan sections
  • Estimation approach
  • Risk assessment criteria

See the Configuration Guide for details.