/execute-phase
Execute all plans in a phase with wave-based parallelization
$ npx -y skills add yeaight7/agent-powerups --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/execute-phase
Context preview
What this command does when you run it.
Execute all plans in a phase with wave-based parallelization
Command definition
execute-phase.mdname: execute-phase
description: Execute all plans in a phase with wave-based parallelization
argument-hint: "<phase-number> [--wave N] [--gaps-only] [--interactive] [--tdd]"
allowed-tools:
- Read
- Write
- Edit
- Glob
- Grep
- Bash
- Task
- TodoWrite
- AskUserQuestion
Objective
Execute all plans in a phase using wave-based parallel execution.
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent (`phase-executor`) handles its own plan independently.
Context budget: ~15% orchestrator, 100% fresh per subagent.
Context
Phase: $ARGUMENTS
**Available flags (active only when present in $ARGUMENTS):**
- `--wave N` — Execute only Wave `N`. Use to pace execution or stay within usage limits.
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter).
- `--interactive` — Execute plans sequentially inline (no subagents) with user checkpoints between tasks. Lower token usage, pair-programming style.
Process
**Step 1 — Resolve Phase**
Read `.planning/STATE.md` and `.planning/ROADMAP.md` to find the phase directory under `.planning/phases/`.
**Step 2 — Discover Plans**
Glob all `*-PLAN.md` files in the phase directory. Parse each plan's frontmatter to extract:
- `wave` number
- `depends_on` list
- `autonomous` flag
- `files_modified` list
**Step 3 — Filter**
Apply active flags:
- `--wave N`: keep only plans with `wave: N`
- `--gaps-only`: keep only plans with `gap_closure: true`
- Otherwise: include all incomplete plans
**Step 4 — Execute by Wave**
Group plans into waves. For each wave (lowest number first):
- Verify all plans in prior waves are complete before starting this wave
- If `--interactive`: execute plans one at a time inline, pause between each for user review
- Otherwise: spawn one `phase-executor` subagent per plan in the wave, in parallel
Collect completion results from each subagent (PLAN COMPLETE format or CHECKPOINT REACHED format).
**Step 5 — Handle Checkpoints**
If any executor returns `CHECKPOINT REACHED`:
- Surface the checkpoint message to the user immediately
- Wait for user response before spawning the next wave
**Step 6 — Phase Completion Check**
After all waves finish (or after the selected wave if `--wave` was active):
If no incomplete plans remain:
- Report phase complete
- Suggest: `/verify-work {phase}` to run UAT
If incomplete plans remain after the last wave:
- List incomplete plans and reasons
- Suggest next step to the user
Success Criteria
- [ ] Phase and plan files resolved
- [ ] Plans grouped by wave with dependency order enforced
- [ ] Each plan executed by a phase-executor subagent (or inline if --interactive)
- [ ] Checkpoint messages surfaced to user
- [ ] Phase completion status reported
- [ ] User knows next step
Read more
name: execute-phase description: Execute all plans in a phase with wave-based parallelization argument-hint: "<phase-number> [--wave N] [--gaps-only] [--interactive] [--tdd]" allowed-tools: - Read - Write - Edit - Glob - Grep - Bash - Task - TodoWrite - AskUserQuestion
Objective
Execute all plans in a phase using wave-based parallel execution.
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent (`phase-executor`) handles its own plan independently.
Context budget: ~15% orchestrator, 100% fresh per subagent.
Context
Phase: $ARGUMENTS
**Available flags (active only when present in $ARGUMENTS):**
- `--wave N` — Execute only Wave `N`. Use to pace execution or stay within usage limits.
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter).
- `--interactive` — Execute plans sequentially inline (no subagents) with user checkpoints between tasks. Lower token usage, pair-programming style.
Process
**Step 1 — Resolve Phase**
Read `.planning/STATE.md` and `.planning/ROADMAP.md` to find the phase directory under `.planning/phases/`.
**Step 2 — Discover Plans**
Glob all `*-PLAN.md` files in the phase directory. Parse each plan's frontmatter to extract:
- `wave` number
- `depends_on` list
- `autonomous` flag
- `files_modified` list
**Step 3 — Filter**
Apply active flags:
- `--wave N`: keep only plans with `wave: N`
- `--gaps-only`: keep only plans with `gap_closure: true`
- Otherwise: include all incomplete plans
**Step 4 — Execute by Wave**
Group plans into waves. For each wave (lowest number first):
- Verify all plans in prior waves are complete before starting this wave
- If `--interactive`: execute plans one at a time inline, pause between each for user review
- Otherwise: spawn one `phase-executor` subagent per plan in the wave, in parallel
Collect completion results from each subagent (PLAN COMPLETE format or CHECKPOINT REACHED format).
**Step 5 — Handle Checkpoints**
If any executor returns `CHECKPOINT REACHED`:
- Surface the checkpoint message to the user immediately
- Wait for user response before spawning the next wave
**Step 6 — Phase Completion Check**
After all waves finish (or after the selected wave if `--wave` was active):
If no incomplete plans remain:
- Report phase complete
- Suggest: `/verify-work {phase}` to run UAT
If incomplete plans remain after the last wave:
- List incomplete plans and reasons
- Suggest next step to the user
Success Criteria
- [ ] Phase and plan files resolved
- [ ] Plans grouped by wave with dependency order enforced
- [ ] Each plan executed by a phase-executor subagent (or inline if --interactive)
- [ ] Checkpoint messages surfaced to user
- [ ] Phase completion status reported
- [ ] User knows next step
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Repo: yeaight7/agent-powerups
Other commands on agent-powerups.
- /bug-check
Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Open command - /build-fix
Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.
Open command - /debug
Use when a bug needs systematic diagnosis before a fix is attempted.
Open command - /doctor
Use to diagnose environment, tooling, and Agent Powerups setup problems.
Open command - /implement
Use to turn a spec or user request into working, tested code.
Open command - /mcp-check
Use to check MCP server prerequisites before activating or using a server.
Open command

