From discuss-and-execute
Decomposes a CONTEXT document into parallelizable waves of tasks with file ownership boundaries and dependency ordering. Writes .context/PLAN-<SLUG>.md consumable by /execute. Requires .context/CONTEXT-<SLUG>.md (run /discuss first). <triggers> /plan-waves, plan in waves, create wave plan, decompose into waves, run plan-waves, plan parallelizable tasks, turn context into plan </triggers>
How this skill is triggered — by the user, by Claude, or both
Slash command
/discuss-and-execute:plan-wavesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Plan with full awareness of conventions, concerns, and file ownership — so agents build it right the first time.
Plan with full awareness of conventions, concerns, and file ownership — so agents build it right the first time.
Requires: .context/CONTEXT-<SLUG>.md (run /discuss first)
---
config:
layout: elk
---
graph LR
A["/plan-waves [slug]"] --> B["Read CONTEXT"]
B --> R["Pre-plan research"]
subgraph PLAN_LOOP["Plan Review Loop"]
C["Planner agent"] --> D["Present to user"]
D --> E{"Approved?"}
E -->|Revise| C
end
R --> C
E -->|Approved| F["PLAN-<SLUG>.md"]
If slug provided as argument, read .context/CONTEXT-<SLUG>.md. Otherwise, list available CONTEXT docs and ask which to plan.
Also read from .context/codebase/:
ARCHITECTURE.md and STRUCTURE.md — where things live, how layers communicateCONVENTIONS.md — so tasks are assigned following established patternsCONCERNS.md — so the planner avoids fragile areas or adds protective tasksTESTING.md — so test tasks use the right framework and patternsSTACK.md and INTEGRATIONS.md — so tasks account for external services and dependenciesBefore generating the plan, spawn researcher agents to investigate domain-specific questions raised by the CONTEXT doc. This gives the planner current external knowledge, not just codebase knowledge.
Scan the CONTEXT doc's decisions and scope for research-worthy topics — library choices, architectural patterns, integration approaches. Spawn 1-3 researchers in parallel (mode: comparison or feasibility as appropriate):
_Pre-plan research (<N> topics)..._
_[topic 1]: .context/research/<SLUG>-<TOPIC>.md_
_[topic 2]: .context/research/<SLUG>-<TOPIC>.md_
Skip research if: the CONTEXT doc's decisions are all internal (naming, file structure, UI layout) with no external library or pattern choices. Not every plan needs research.
Pass research results to the planner — include the research file paths in the planner's prompt so it reads them alongside the CONTEXT doc.
Spawn a planner agent with the CONTEXT doc contents and codebase context. The agent writes the plan to .context/PLAN-<SLUG>.md.
Read $CLAUDE_PLUGIN_ROOT/skills/plan-waves/references/plan-template.md for the output template.
Present the generated plan — wave by wave:
Cross-wave handoffs (files touched by multiple waves):
- `lib/minions/epic.rb` — Task 2.2 (flock) -> Task 3.1 (parallel fetch)
- `test/test_helper.rb` — Task 1.2 (FatalError) -> Task 4.1 (async support)
If none: "No cross-wave handoffs — clean ownership."Ask: Approve / Revise / Add wave / Remove task
If revise: re-prompt the planner with the user's feedback. Max 3 revision cycles. If still not approved after 3 cycles, write the best current version and note remaining disagreements in the PLAN header.
Plan written: .context/PLAN-<SLUG>.md
Waves: [N]
Total tasks: [M]
Estimated parallelism: [tasks in largest wave]
Next: /execute [slug]
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub emmahyde/dotfiles --plugin discuss-and-execute