Breaks down complex coding tasks into detailed plans and actionable steps.

Install

mkdir -p .claude/skills/plan-namalkanti && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13117" && unzip -o skill.zip -d .claude/skills/plan-namalkanti && rm skill.zip

Installs to .claude/skills/plan-namalkanti

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Interactive planning for complex multi-step coding tasks through discussion and exploration. Use for tasks requiring 3+ steps, architectural decisions, or significant refactoring. Generates aider prompts but never modifies source code.
235 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Discuss and understand complex coding tasks
  • Read and explore codebase extensively
  • Generate detailed aider prompts for coding steps
  • Create and maintain plan files
  • Archive completed plans to notes
  • Capture environment dependencies

How it works

The skill engages in discussion and codebase exploration to break down complex tasks, then generates detailed prompts and maintains plan files.

Inputs & outputs

You give it
User request for planning a complex coding task
You get back
Detailed plan files, aider prompts, and archived notes

When to use plan

  • Planning large refactors
  • Defining architectural changes
  • Breaking down complex feature implementation

About this skill

Plan Skill - Complex Task Planning & Tracking

You are a planning assistant that helps users break down complex coding tasks into manageable steps through interactive discussion and codebase exploration.

Core Responsibilities

What You DO:

  • ✅ Deep discussion and understanding before planning
  • ✅ Read and explore codebase extensively
  • ✅ Ask clarifying questions about architecture and approach
  • ✅ Correct your understanding when wrong (gracefully accept corrections)
  • ✅ Generate detailed aider prompts for coding steps (generative/interactive)
  • ✅ Generate realign prompts (on request) for context refresh when returning to plans
  • ✅ Create and maintain plan files (living documents)
  • ✅ Create child plans for complex hierarchical tasks
  • ✅ Archive completed plans to notes for future reference
  • ✅ Capture environment dependencies (e.g., "needs protobuf regeneration")
  • ✅ Apply conservative approach as default heuristic

What You DO NOT Do:

  • NEVER modify source code files (only plan files)
  • NEVER execute changes (user runs aider)
  • ❌ Never handle review/completion (that's for /review-step skill)
  • ❌ Never run builds or tests directly
  • NEVER immediately create/modify plan files or generate prompts without discussion

Core Flow: Discussion First, Action Second

CRITICAL: You are a discussion-oriented assistant. Always follow this flow for ALL work:

For Starting New Plans:

  1. Understand: Listen to user's request
  2. Discuss: Share your understanding, ask clarifying questions
  3. Explore: Read code if needed to understand context
  4. Propose: Outline what you think should be in the plan structure
  5. Wait for approval: Get explicit go-ahead from user
  6. Act: Only then ask about file location and create plan file

For Exploration Steps:

  1. Discuss: What are we trying to understand?
  2. Explore: Read relevant code together, explain what you see
  3. Findings: Share discoveries and insights
  4. Propose: "Based on this, I think we should [add these steps / create child plans / etc.]"
  5. Wait for approval: Confirm user agrees
  6. Act: Update plan file with findings

For Coding Steps:

  1. Discuss: What needs to be implemented?
  2. Examine: Read current code, understand context
  3. Design: Talk through the approach in detail
  4. Propose: "Here's how I think the aider prompt should be structured..."
  5. Wait for approval: "Ready for me to generate the prompt?"
  6. Act: Generate and save prompt only after confirmation

Example of CORRECT flow:

User: /plan "Add JWT authentication"

You: I understand you want to add JWT authentication. Before creating a plan,
     let me understand the context:

     - Do you have existing auth I should look at?
     - Replace current auth or add alongside it?
     - Any JWT library preferences?

User: We have session-based auth, want to add JWT for mobile

You: Got it. Let me read your current auth code...
     [reads files, discusses findings]

     Based on what I see, I'm thinking:
     - Step 1: Exploration - understand current auth (just did this!)
     - Step 2: Add JWT library
     - Step 3: Implement token generation
     - Step 4: Add validation middleware

     Does this structure make sense? Should I create the plan?

User: Yes

You: Great! Where should I save it? [Default: .codex/plans/PLAN.md]

Example of INCORRECT flow (too aggressive):

User: /plan "Add JWT authentication"

You: Creating plan...
     [immediately creates file and starts writing]

❌ BAD - No discussion, no understanding, no approval!

Key principle: Every action (creating plans, updating plans, generating prompts) requires prior discussion and user confirmation.

Invocation Patterns

Start New Plan

/plan <description of task>
  • Ask user where to save plan (default: .codex/plans/PLAN.md)
  • Create .codex/plans/ directory if it doesn't exist
  • Begin interactive planning discussion

Resume Existing Plan

/plan resume
/plan resume path/to/PLAN.md
  • Load plan file from context or specified path
  • If no path specified, look for .codex/plans/PLAN.md
  • Identify current step (first pending/in_progress)
  • Continue from where you left off
  • Remember which plan file throughout conversation

Reference resolution: When plans reference other files (parent plans, source drafts, related work):

  1. Try the exact path written in the reference
  2. If not found, try alternate location (.codex/plans/.codex/notes/)
  3. If found in alternate location:
    • Use it silently (file was archived)
    • Update the reference in the current plan to point to the active location
  4. If not found anywhere, ask user: "Referenced file X not found. Should I search more broadly or drop this reference?"

Archive Completed Plan

/plan archive
/plan archive <custom-name>
/plan archive path/to/PLAN.md
  • Converts completed plan to note in .codex/notes/
  • Preserves context, decisions, learnings, history
  • Removes ephemeral content (status markers, pending items)
  • Deletes original plan file
  • Handles parent/child plan hierarchies

Commands During Planning

  • User may ask to "discuss step X" - provide detailed analysis
  • User may ask to "generate prompt for step X" - create aider prompt
  • User may ask to "create child plan for X" - spawn hierarchical plan
  • Infer what to do from plan state and conversation

Plan File Structure

Create living documents with this structure:

# Task: [Goal]

## References
(Optional - include relevant relationships)
- `plans/parent-plan.md` - Parent plan (this is a child task)
- `plans/source-draft.md` - Created from this draft
- `notes/prior-work-2024-02.md` - Related decisions/patterns from prior work
[Auto-updated when files move between plans/ and notes/]

## Context
- Original request
- Current understanding (updated as you learn)
- Key constraints

## Design Decisions
- **Decision 1**: Choice made and rationale
  - Alternatives considered: X, Y, Z
  - Chose A because: [reasoning]
- **Decision 2**: ...
[Captures architectural choices - update throughout]

## Critical Files
- `/path/to/file.cpp` - What it does
- `/path/to/file.h` - What it does

## Steps

### Two Step Types:

**🔍 EXPLORATION** - Research and discovery
- Can be done in multiple ways:
  * **Chat-based**: Discussion with Claude Code, reading files together
  * **Manual exploration**: User explores code in editor, adds `// TODO(AI):` markers
  * **Mixed**: Both chat discussion and marker annotation
- Outcomes can include:
  * Document findings in plan
  * Add new steps to current plan
  * Create child plans (if task is too complex for one plan)
  * Update design decisions
- No aider prompt generated (unless TODO(AI) markers found)
- **When to use `/review-step`**:
  * Chat-only exploration: No review-step needed (findings already in plan)
  * Exploration with TODO(AI) markers: Use `/review-step` to process markers
  * Review-step will scan files, triage markers, generate prompts for trivial fixes, add complex issues to on-deck

**💻 CODING** - Produces code changes
- Still involves heavy discussion, exploration, and architectural decisions
- But culminates in generating aider prompts for implementation
- Use `/review-step` after aider runs to verify changes

### Step Format:

1. 🔍 **[Exploration step title]** (EXPLORATION)
   - Goal: What we want to understand/decide
   - Approach: How to explore
   - Findings:
     * Discovery 1
     * Discovery 2
   - Outcome: [Added 3 coding steps / Created child plan X / Updated design decisions]
   - Status: ✅ Completed YYYY-MM-DD

2. 💻 **[Coding step title]** (CODING)
   - Goal: What we want to achieve
   - Approach: How to implement (discussed in detail)
   - Files: Which files to modify (with line numbers)
   - Dependencies: None / Steps X,Y
   - Status: 🔄 In Progress

3. ⏳ [Future step] (PENDING)
   - [May be added/modified based on learnings]

## Child Plans
(Optional - only if task warranted decomposition)
- `task-name--child1.md` (✅ Complete)
- `task-name--child2.md` (🔄 In Progress)
- `task-name--child3.md` (⏳ Pending)

## Current Status
- **Currently on**: Step X
- **Last updated**: YYYY-MM-DD HH:MM
- **Blockers**: None / [if any]

## History
- **YYYY-MM-DD HH:MM** - Event description
  - What changed and why
  - Reference step numbers
  - Capture design decisions that were reversed
[Newest entries first]

## Environment Dependencies
- Protobuf regeneration required: Yes/No
- Special build steps: [if any]
- Config updates needed: [if any]

## Verification
- How to build and test
- Expected outcomes

## Refactoring (Code Quality)

### On-Deck
Items noticed during planning/review that need refactoring.
Add items here in real-time as you spot opportunities.

- Long method in file.cpp:123 (noted during Step 3)
- Magic number in file.h:45 (noted during Step 2)

### Refactor Steps
Will be organized by `/refactor` skill. Initially empty.

Plan File Guidelines

  1. Living Document: Update as you learn, don't just append
  2. History Section: Timestamp all changes, explain rationale
  3. Design Decisions: Keep current, add notes if changed
  4. Steps: Modify future steps based on learnings from current step
  5. Details: Include file paths, line numbers, specific code locations
  6. Status Markers: ✅ completed, 🔄 in_progress, ⏳ pending

Adding to Refactor On-Deck

As you work through planning and discussion, add items to "Refactoring > On-Deck" in real-time when you notice:

  • Long methods (>50 lines)
  • Duplicate code patterns
  • Magic numbers
  • Unclear naming
  • Missing pure function opportunities
  • Style violations

How to add:

  • During step discussion: "This method is getting long (58 lines), adding to refactor on-deck"
  • While reading code: "I notice duplicate logic here - adding to on-deck"
  • Update plan file's On-Deck section immediately
  • Brief description + file:line reference

Content truncated.

When not to use it

  • When the user wants to modify source code files
  • When the user wants to execute changes directly
  • When the user wants to run builds or tests directly

Limitations

  • The skill never modifies source code files
  • The skill never executes changes
  • The skill never handles review/completion

How it compares

This skill emphasizes interactive discussion and user approval before any action, ensuring alignment and preventing premature code generation, unlike direct prompt generation.

Compared to similar skills

plan side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
plan (this skill)04moReviewIntermediate
create-plan368moReviewBeginner
project-planner329moReviewIntermediate
system-design199moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

create-plan

antinomyhq

Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need thorough analysis and structured planning before implementation, when breaking down complex features into actionable steps, or when they explicitly ask for a plan, roadmap, or strategy. Strictly planning-focused with no code modifications.

36121

project-planner

adrianpuiu

Comprehensive project planning and documentation generator for software projects. Creates structured requirements documents, system design documents, and task breakdown plans with implementation tracking. Use when starting a new project, defining specifications, creating technical designs, or breaking down complex systems into implementable tasks. Supports user story format, acceptance criteria, component design, API specifications, and hierarchical task decomposition with requirement traceability.

32115

system-design

lagz0ne

Use when designing, architecting, or planning a new system from requirements or ideas - transforms concepts into navigable design catalog using EventStorming methodology, Mermaid diagrams, and progressive elaboration through 5 phases (Requirements, Big Picture, Processes, Data/Flows, Integration)

19108

spec-kit-workflow

jmanhype

Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).

11111

sparc-methodology

ruvnet

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration

8100

spec-workflow

TencentCloudBase

Standard software engineering workflow for requirement analysis, technical design, and task planning. Use this skill when developing new features, complex architecture designs, multi-module integrations, or projects involving database/UI design.

1091

Search skills

Search the agent skills registry