From forge
Executes a plan by dispatching one fresh subagent per STEP. The controller owns the todo and review; subagents own the edits. Keeps the main conversation light.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge:subagent-executionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute a plan by dispatching a fresh subagent per STEP. You (the controller) own the todo and the review; the subagents own the edits.
Execute a plan by dispatching a fresh subagent per STEP. You (the controller) own the todo and the review; the subagents own the edits.
Announce at start: "Using subagent-execution to implement <plan path> — one subagent per step."
Each subagent gets exactly the context it needs for its step — no more, no less. They don't inherit this conversation's history. You curate their inputs and review their summaries.
Use the least powerful model that can handle the step. Match capability to complexity.
| Capability tier | When to use |
|---|---|
| Fast / cheap | Mechanical, fully-specified edit in 1–2 files (rename, add field, isolated pure function). Also [mechanical]-tagged steps. |
| Standard | Default: known-shape multi-file edit, integrating existing patterns, debugging. |
| Most capable | Upgrade only: design judgment, cross-cutting refactor, unfamiliar code, or BLOCKED re-dispatch on a reasoning gap. |
Upgrade signals (standard → most capable): 3+ files crossing a module boundary, step says "decide/design/choose", architectural judgment required, or prior dispatch on same step failed for reasoning.
Downgrade signals (standard → fast): exact edit specified, prior similar step succeeded on fast model, step tagged [mechanical].
On platforms that support per-dispatch model selection (e.g. Claude Code), set it explicitly. On platforms that don't (e.g. OpenCode), the platform chooses — you still signal complexity via the prompt and step scope.
If a STEP is fully specified with zero judgment calls, the controller MAY execute it directly. See references/dispatch-loop.md for indicators and reporting.
.forge/plan/eng-123.md). If not given, use the most recent file in .forge/plan/.Read the plan file. Parse SKILLS TO APPLY, FILES TO CHANGE, STEPS, RISKS, OUT OF SCOPE.
Review critically before dispatching. Look for ambiguous steps, missing setup, contradictions, or QUESTIONS FOR USER → STOP and report if found.
For each STEP, note: step text, relevant files, applicable guideline skills, and prior-step outputs (if dependent). Keep in working memory; do NOT write a new file.
Call TodoWrite once with one task per STEP (content, activeForm, status: pending).
Group steps into parallel batches (disjoint files + no dependency). For each batch:
TodoWrite → mark batch in_progress.Agent dispatch per step (Claude Code), one Task dispatch per step with subagent_type: "general" (OpenCode), or one Codex spawn_agent dispatch per step with agent_type: "worker". On platforms that support per-dispatch model selection, set model per capability tier above.
./implementer-prompt.md filled with STEP, SCENE, RELEVANT FILES, GUIDELINE SKILLS, PRIOR-STEP OUTPUTS.See references/dispatch-loop.md for full batching rules and concurrency details.
After all steps are completed:
STATUS: done | blocked | partial
PLAN: <path>
FILES CHANGED (aggregated across subagents):
- path/to/file.ts — <what changed>
STEPS COMPLETED: <N of M>
SUBAGENT DISPATCHES: <count> (<re-dispatches if any>)
DIRECT EXECUTIONS: <count of mechanical steps executed without dispatch>
NOTES:
- <anything notable from subagent reports>
End with:
"Implementation done. Run the
test-runnersubagent? (scope: backend / frontend / fullstack)"
Dispatch test-runner with Agent (Claude Code), Task with subagent_type: "test-runner" (OpenCode), or Codex spawn_agent with agent_type: "test-runner" on failure. Max 2 fix iterations before escalating.
Edit, stop — dispatch instead.[mechanical] steps executed directly.npx claudepluginhub anthonyespirat/forge --plugin forgeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.