Plan
Overview
Create a structured implementation plan for the given task. This skill explores the codebase to understand existing patterns and conventions, gathers requirements, and produces a detailed plan with actionable tasks. Supports different plan types (feature, bug, chore) with type-specific guidance.
Arguments
Definitions
- •
[type](optional): Plan type. Values:feature,bug,chore,auto. Defaults toauto. - •
[explore-count](optional): Override default explore agent count. Defaults to configuration value based on type. - •
[--git](optional): Commit plan file after creation. - •
[context](optional): Freeform context for argument inference (e.g., task description, requirements).
Values
$ARGUMENTS
Additional Resources
Load ONE of these based on the [type] argument (or detected type if auto):
- •For feature plans, see references/feature.md
- •For bug fix plans, see references/bug.md
- •For chore plans, see references/chore.md
Configuration
This skill reads configuration from .claude/configs/interactive-sdlc.json:
- •
planDirectory(default:"specs"): Directory where plan files are saved - •
defaultExploreAgents.feature(default:3): Number of explore agents for feature plans - •
defaultExploreAgents.bug(default:2): Number of explore agents for bug fix plans - •
defaultExploreAgents.chore(default:2): Number of explore agents for chore plans
Core Principles
- •Explore the codebase thoroughly before planning to understand existing patterns and conventions
- •Generate plans as static documentation - never modify them during implementation
- •Focus on specific, actionable tasks rather than time estimates or deadlines
- •Use TodoWrite tool for progress tracking, not plan file updates
- •Ask clarifying questions when requirements are unclear or context is insufficient
- •Each task should be specific enough to execute without ambiguity
- •Include file paths where changes are needed
Instructions
- •
Parse Arguments
- •Extract type, --explore N, --git, and context from arguments
- •Default type to
autoif not specified - •Default explore agents based on type from configuration
- •
Detect Plan Type (if type=auto)
- •Analyze the context to determine type:
- •feature: New functionality, enhancements, additions
- •bug: Error fixes, unexpected behavior corrections, defects
- •chore: Refactoring, dependency updates, maintenance, cleanup
- •Once detected, proceed with that type
- •Analyze the context to determine type:
- •
Load Type-Specific Guidelines Based on the detected or specified type, load the corresponding reference file:
- •
feature-> Read references/feature.md - •
bug-> Read references/bug.md - •
chore-> Read references/chore.md
- •
- •
Read Configuration
- •Read
.claude/configs/interactive-sdlc.jsonforplanDirectory(default:specs) - •Read
defaultExploreAgents.{type}for explore agent count
- •Read
- •
Explore Codebase
- •Launch N explore agents (from config or --explore flag)
- •Focus exploration on understanding the areas relevant to the task
- •Gather context about existing patterns, conventions, and dependencies
- •Identify files and components that may be affected
- •
Gather Requirements
- •Parse the
[context]argument if provided - •If requirements can be inferred from context, use them
- •Otherwise, ask the user for type-specific information (see reference file)
- •Parse the
- •
Generate Plan
- •Apply type-specific planning approach from the loaded reference
- •Create a plan using the structure defined in the reference file's template
- •Fill in all required sections with gathered requirements
- •List tasks in execution order
- •
Save Plan
- •Save to
{planDirectory}/{type}-{slugified-title}.md - •Inform user of the saved file path
- •Save to
- •
Git Commit (if --git flag)
- •Stage the plan file
- •Commit with message:
docs(plan): Add {type} plan - {title}
Output Guidance
Present a user-friendly summary:
Plan saved to {planDirectory}/{type}-{slugified-title}.md
## Summary
- Type: {type}
- Title: {title}
- [Type-specific summary details]
Next steps:
- Implement with: /build {planPath}
- Or run full workflow: /plan-build-validate