Instructions
Use this when asked to run a multiagent implementation. You (the host assistant)
perform the orchestration using your own subagent-spawning primitives — this is a
procedure, not a runtime. Do not skip the two hard gates (environment readiness,
plan approval).
- Load conventions. Locate and read every governing doc (coding standards,
ADRs, naming, structure, security, test patterns). Confirm what loaded; flag gaps.
- Discover agents. Enumerate the available agent prompts and map each to a
pipeline role (code, ATDD, TDD, verify, enforce, security, debug, PM/architect).
Flag any role with no matching agent.
- Design the execution model. Declare each unit's dependencies explicitly;
independent units run in parallel by default. Spawn a subagent per independently
executable unit, briefing each with its agent prompt, the loaded conventions, its
task scope, and the interfaces it shares with others. A unit with parallelisable
subtasks spawns its own subagents rather than working through them serially.
Define the aggregator that validates across outputs and gates the next phase. See
the
multi-agent-coordination and workflow-orchestration-patterns workflows
for the coordinator pattern.
- Environment-readiness gate (HARD). The
environment-setup subagent
identifies, starts, and health-checks every required service — dev server, test
runner, database, broker, mocks, watchers — before any other lane is unblocked.
Assume nothing is already up. Confirm ports and health checks; document how to
verify and stop each cleanly. The pipeline owns setup — never tell the human to
start services. An unstartable service is a surfaced blocker, not a silent
failure.
- Present the plan for approval (HARD gate). Deliver a markdown document
showing: conventions loaded, agent roster, environment manifest, a Mermaid
execution map (env gate → parallel lanes → subagent spawn points → aggregation →
sequential gates → debug/retry loop), subagent specs, convention-enforcement
checkpoints, test strategy (ATDD before coding, TDD concurrent), gap report, and
debug/retry logic. Wait for approval.
- Execute concurrently on approval. Spawn all unblocked subagents at once —
never wait for one to return before launching the next; unblock downstream the
moment dependencies resolve; surface progress from all streams as it happens;
aggregate at each gate; debug/retry/escalate on failure.
If the roster, conventions, environment state, or plan change materially mid-run,
pause every lane and re-present for approval.
1---2name: multiagent-orchestration-23description: Run a genuinely-parallel multiagent implementation - plan, gate on environment, spawn subagents concurrently, aggregate4when_to_use: Load before planning ANY work with independently executable units - the request names parallel/multiagent/concurrent execution, asks to orchestrate or fan out agents, or decomposes into lanes that would otherwise run one at a time5languages: [all]6subagents: [all]7tools_needed: [read, glob]8metadata:9 source: https://skillmd.com/skills/snoodleboot-io/multiagent-orchestration-210---1112## Instructions1314Use this when asked to run a multiagent implementation. You (the host assistant)15perform the orchestration using your own subagent-spawning primitives — this is a16procedure, not a runtime. Do not skip the two hard gates (environment readiness,17plan approval).18191. **Load conventions.** Locate and read every governing doc (coding standards,20 ADRs, naming, structure, security, test patterns). Confirm what loaded; flag gaps.212. **Discover agents.** Enumerate the available agent prompts and map each to a22 pipeline role (code, ATDD, TDD, verify, enforce, security, debug, PM/architect).23 Flag any role with no matching agent.243. **Design the execution model.** Declare each unit's dependencies explicitly;25 independent units run in parallel by default. Spawn a subagent per independently26 executable unit, briefing each with its agent prompt, the loaded conventions, its27 task scope, and the interfaces it shares with others. A unit with parallelisable28 subtasks spawns its own subagents rather than working through them serially.29 Define the aggregator that validates across outputs and gates the next phase. See30 the `multi-agent-coordination` and `workflow-orchestration-patterns` workflows31 for the coordinator pattern.324. **Environment-readiness gate (HARD).** The `environment-setup` subagent33 identifies, starts, and health-checks every required service — dev server, test34 runner, database, broker, mocks, watchers — before any other lane is unblocked.35 Assume nothing is already up. Confirm ports and health checks; document how to36 verify and stop each cleanly. The pipeline owns setup — never tell the human to37 start services. An unstartable service is a surfaced blocker, not a silent38 failure.395. **Present the plan for approval (HARD gate).** Deliver a markdown document40 showing: conventions loaded, agent roster, environment manifest, a Mermaid41 execution map (env gate → parallel lanes → subagent spawn points → aggregation →42 sequential gates → debug/retry loop), subagent specs, convention-enforcement43 checkpoints, test strategy (ATDD before coding, TDD concurrent), gap report, and44 debug/retry logic. Wait for approval.456. **Execute concurrently on approval.** Spawn all unblocked subagents at once —46 never wait for one to return before launching the next; unblock downstream the47 moment dependencies resolve; surface progress from all streams as it happens;48 aggregate at each gate; debug/retry/escalate on failure.4950If the roster, conventions, environment state, or plan change materially mid-run,51pause every lane and re-present for approval.