一键导入
execute
Execute the current wave of unblocked tasks in parallel
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute the current wave of unblocked tasks in parallel
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates a new Cobra CLI command following the project's New*Cmd() pattern in internal/cli/. Handles command registration in root.go, flag setup, output rendering, and test scaffolding. Use when user says 'add command', 'new subcommand', 'create CLI command', or adds files to internal/cli/. Do NOT use for MCP tools or hooks.
Creates a new hook event handler in internal/hook/ following the handle*() dispatcher pattern. Adds event constant to events.go, handler function, dispatcher case, and tests using fake bd binary. Use when user says 'add hook', 'new hook event', 'hook handler', or modifies internal/hook/. Do NOT use for MCP tools, CLI commands, or graph queries.
Creates a new MCP tool following the handle*() pattern in internal/mcp/. Registers in registerTools(), adds args struct, result struct, handler function, and test using connectInProcess(). Use when user says 'add MCP tool', 'new tool', 'expose to Claude', or adds files to internal/mcp/. Do NOT use for CLI commands (internal/cli/), graph client methods, or Cobra commands.
Build modular CLI applications with Cobra framework. Use when structuring CLI commands, implementing modular command architecture, handling flags and arguments, or when user mentions Cobra, CLI modularity, command registration, or spf13/cobra.
Implements beads graph operations in internal/graph/ using the bd CLI wrapper pattern. Covers bead CRUD, label queries, tier classification, batch writes, and index management. Use when user says 'graph operation', 'bead query', 'add graph method', 'graph client', or modifies internal/graph/. Do NOT use for direct bd CLI usage, MCP tool handlers, or CLI command implementations in internal/cli/.
Writes tests using the fake_bd test binary pattern from internal/graph/testdata/fake_bd/. Covers building fake binary, setting FAKE_BD_* env vars for canned responses, capture files for arg/env verification, and serverState/hookState setup. Use when user says 'write tests', 'add test', 'test coverage', or needs to test graph/mcp/hook code that calls bd. Do NOT use for tests that don't invoke the bd CLI binary (e.g., pure utility functions, config parsing, CLI flag tests).
| name | execute |
| description | Execute the current wave of unblocked tasks in parallel |
| disable-model-invocation | true |
| argument-hint | [phase_number] |
Execute the current wave of tasks for the phase specified in $ARGUMENTS (or the current phase from project context).
You are an execution coordinator. You run waves of parallel tasks through beads. Never mention beads, bead IDs, or graph structures to the developer. Use plan IDs (e.g., 07-01) in all developer-facing output.
Determine the target phase number from $ARGUMENTS or current project context. Call get_status if the phase number is unclear.
Call the execute_wave MCP tool with phase_num. You will receive the current wave number and a tasks array. Each task contains: bead_id, plan_id, title, acceptance_criteria, description, parent_summary, and dep_summaries.
If the tasks array is empty, all tasks are complete for this phase. Display:
All tasks complete for Phase {N}.
Then display: "Verifying phase... (auto-continuing to /gsd-wired:verify in 30 seconds...)"
Wait 30 seconds, then auto-proceed to run /gsd-wired:verify {N}.
Display the current wave in GSD table format before spawning agents:
## Phase {N}: Wave {wave_number}
| Task | Title | Complexity |
|---------|---------------------------|------------|
| {plan_id} | {title} | {S/M/L} |
Then display: "Spawning {count} parallel agents..."
Spawn one Task() agent per task in the wave, all in parallel. Use this MINIMAL prompt template (keep under 20 lines):
You are an execution agent for task {plan_id}: {title}.
Your bead ID is {bead_id}.
Context:
- Task: {description}
- Acceptance: {acceptance_criteria}
- Phase goal: {parent_summary}
- Dependencies completed: {dep_summaries joined by newline}
Instructions:
1. Call claim_bead with id={bead_id}
2. Implement the task described above
3. Run: git add {relevant files} then git commit -m "feat({plan_id}): {title}"
4. Call close_plan with id={bead_id} and reason={one-line summary of what was done}
Critical: Agents only call claim_bead and close_plan. Do NOT instruct agents to call query_by_label, get_bead, or any other graph tools. Commit message format is feat({plan_id}): {title} — use plan ID, not bead ID.
Wait for all Task() agents to complete before proceeding.
For each completed task, verify acceptance criteria (best-effort only — do not do full code review):
go test ./... in the project root.Display per-task validation results inline.
If any validation fails, surface to the developer:
Task {plan_id} did not meet acceptance criteria: {criterion}
Options:
[r] Retry - re-spawn the task agent
[s] Skip - continue to next wave (auto-selected in 30 seconds)
[a] Abort - stop execution
Wait 30 seconds then auto-continue with 'skip' if no response.
Go to Step 2 to fetch the next wave. The execute_wave call returns newly unblocked tasks after the previous wave's tasks are closed.
When Step 3 is reached (empty tasks array), display a completion summary:
Phase {N} execution complete.
Tasks completed: {total_task_count}
Waves executed: {wave_count}
Then display: "Verifying phase... (auto-continuing to /gsd-wired:verify {N} in 30 seconds...)"
Wait 30 seconds, then auto-proceed to /gsd-wired:verify {N}.