Prompt Decomposition
Skill orchestrate structured task decomposition. Delegate planning workflow to @planner-agent.
When This Skill Activates
Activate when user want:
- Plan complex feature, migration, refactoring
- Break big task into atomic, parallelizable sub-tasks
- Make structured execution plan with phases + dependencies
- Resume or review existing plan from past session
- Suspend plan in progress for later
Execution
On activate, immediately delegate to @planner-agent via Agent tool. Agent run full planning workflow autonomous:
- Resume Check — Look for existing
.plans/*/plan.mdfiles to resume - Analyze — Understand scope, read referenced files
- Decompose — Break into atomic tasks with dependency mapping
- Organize — Group into parallel phases, avoid file conflicts
- Persist — Save plan to
.plans/before presenting - Iterate — Review with user, apply modifications
- Execute — Run tasks via sub-agents when approved
How to Delegate
Use Agent tool with @planner-agent. Pass user request as prompt. Include context user gave:
- User named project/goal → include
- User referenced files/codebase areas → mention
- User want resume plan → pass along
Example delegation prompt:
"The user wants to plan [topic]. They mentioned [any context]. Follow the full planning workflow."
What NOT to Do
- No run planning workflow yourself — agent do
- No ask prelim questions before delegate — agent handle interaction
- No post-process agent output — agent manage plan lifecycle direct with user