orchestrate
Skill2 starsChanged 4 months agoMITView on GitHub
Goal-directed orchestration and convergence for concurrent work — turns a single goal into parallel agent work and verifies it back into one result. Use when the user types /orchestrate or says \"split this across agents\", \"set up worktrees for these branches\", \"fan this goal out\". Mode A only — never auto-fires.
72 other projects use a version of this.
Adopted by
Most recently taken up by
- Significant-Gravitas/AutoGPTtheir own version, first seen Nov 18, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- kentcdodds/kcd-skillstheir own version, first seen Oct 1, 2026
- hcaiano/skillstheir own version, first seen Sep 30, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
Used with
Projects with it also use ship-pr, eval and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Upsolve-LabsSkillship-pr
Ship a feature branch: write docs, bump version, create PR with screenshots and evidence. Links Linear tickets if available. Use when ready to merge.
Also in 3 projects that use this
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
Also in 3 projects that use this
paulo-yamagishiSkillevolve
Auto-maintain Claude Code config files as your codebase evolves
Also in 3 projects that use this
AWSSkillwriting-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Also in 5 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 6 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 8 projects that use this
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- Significant-Gravitas/AutoGPT★ 188ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- boshu2/agentops★ 447same name
- varun29ankuS/shodh-memory★ 300same name
- provencher/codex-skills★ 271same name
- sd0xdev/sd0x-harness★ 191same name
- josipjelic/orchestrated-project-template★ 95same name
- grainulation/grainulator★ 86same name
- AsiaOstrich/universal-dev-standards★ 76same name
- tranhieutt/software_development_department★ 72same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- autonomizeSkill
- blueprintSkill
- brainstormSkill
- captureSkill
- checkpointSkill
- close-outSkill
- coordinateSkill
- deliverSkill
- discoverSkill
- dispatchSkill
- draft-planSkill
- envisionSkill
- executeSkill
- extract-conventionsSkill
- glossarySkill
- humanizeSkill
- human-viewSkill
- improve-promptSkill
- memory-auditSkill
- new-agentSkill
- new-agents-mdSkill
- new-hookSkill
- new-mcpSkill
- pr-authorSkill
- prepSkill
- pre-pushSkill
- pr-reviewSkill
- pr-triageSkill
- recapSkill
- retrospect-coreSkill
- reviewSkill
- rulesSkill
- specSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- update-changelogSkill
- update-codemapSkill
- using-git-worktreesSkill
- visualise-codemapSkill
- work-stateSkill
- wrapSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 59
Not a parallelizer of sequential work: If Q1's graph is a single chain, the skill refuses to fan out and says so.
- Distinctive: line 92
deletion test applied to orchestration: if you cannot say how the pieces reconverge, the split was not real — stop and re-decompose.
- Distinctive: line 96
Refuse to fan out a sequential chain: If every unit depends on the prior (a single chain), say so plainly and stop:
- Distinctive: line 226
Never "do NOT touch X" — negative fences stay out of the boilerplate (finding 2).
- Very specific: line 265
Boundary audit (a parent step): Run git status --porcelain --untracked-files=all for the unit (or its worktree) and compare the …
- Distinctive: line 311
Every dispatched unit returns in a known shape so the parent reassembles structured pieces instead of re-parsing prose.
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Orchestrate
Overview
You own the convergence discipline for goal-directed concurrency: one objective decomposed into interdependent units that several workers handle in parallel and then reconverge into one coherent result. This is the coordination job the existing organs leave open.
using-git-worktreesisolates one branch into one worktree. It says nothing about N concurrent workspaces or which work belongs in a worktree vs the shared tree.dispatchfans out subagents for independent failures and synthesizes by collection ("read each summary, check for conflicts"). That is the wrong shape for a single goal decomposed into interdependent parts, where the hard work is convergence, not collection.
/orchestrate is a caller of both — it adds decompose (Q1), place (Q2), keep-on-track
(Q3.5), and converge (Q4) around them. It never re-implements dispatch mechanics or
worktree setup.
Two research findings constrain the entire protocol:
- No mid-flight window. A dispatched subagent returns one final result — the parent cannot stream its progress. So keep-on-track is prevent-at-dispatch, never live supervision.
- Prompt scope fences have ~0% deterrent effect. A unit told "do not write outside X" attempts out-of-scope writes at the same rate as one told nothing. Hard placement (a worktree / allowlist) is the only real scope enforcement — it outperforms prompt instruction 2.6–7.6×. Positive scope in the prompt is supplementary attention-guidance; negative "do NOT" fences are dropped from the boilerplate entirely.
Announce at start: "I'm using the orchestrate skill to fan this goal out and converge it."
When to run
Mode A — manual only. Never auto-fires. Fanning a goal across agents or worktrees is expensive; the user must opt in.
- User types
/orchestrate. - Natural language: "split this across agents", "set up worktrees for these branches", "fan this goal out", "run these in parallel and combine".
Do not auto-decompose a goal, auto-fire on session start, or run on any hook.
What this skill is NOT
- Not a replacement for
dispatch. That skill owns dispatch mechanics; this one calls it. - Not a replacement for
using-git-worktrees. That skill owns single-worktree setup; the N-worktree registry is a deferred extension (see Deferred design). - Not the harvest contract. Harvest is what a unit learned crossing back (State, the
harvest:block). This skill is where each unit works and how the goal reconverges (Scope). It invites harvest in its dispatch prompts, but harvest is orthogonal. - Not auto-fire. Mode A throughout. Nothing auto-decomposes a goal.
- Not a parallelizer of sequential work. If Q1's graph is a single chain, the skill refuses to fan out and says so. Orchestrating a sequential goal is pure overhead.
- Not an auto-merge / auto-resolve tool. Q4 surfaces merge conflicts and unit contradictions; the user resolves them. No silent convergence.
- Not a long-running daemon. It does not poll, watch, or run in the background across turns. It decomposes, dispatches, and reconverges within its own turns.
- Not Claude-Code-locked. The unit return contract is tool-neutral — a human at a worktree or a non-Claude worker could fill it in by hand.
The protocol
/orchestrate walks four questions plus a keep-on-track discipline, surfacing decisions
rather than acting silently:
Q1 DECOMPOSE → Q2 PLACE → Q3 DISPATCH → (Q3.5 KEEP ON TRACK) → Q4 CONVERGEQ1 — Decompose
Is this goal actually parallelizable? Before fanning out, force the decomposition to
be explicit and test it (the inverse of dispatch's independence test,
applied to one goal instead of many failures).
- Partition the goal into units. Each unit gets a one-line boundary statement — what it owns, in plain words.
- Build the unit dependency graph. For each pair of units, ask one question:
- Does B need A's output? → sequential (the graph has layers; parallelize within a layer, barrier between layers).
- Does B touch A's files? → collision risk → route to Q2 (isolate or serialize).
- Neither? → parallel-safe, dispatch concurrently.
- State the convergence. Q1's required output is a convergence statement: how the units come back together — merge (branches) or integrative synthesis (agents). This is the deletion test applied to orchestration: if you cannot say how the pieces reconverge, the split was not real — stop and re-decompose. A goal-directed fan-out earns its complexity only at convergence.
Refuse to fan out a sequential chain. If every unit depends on the prior (a single chain), say so plainly and stop:
This goal is sequential, not parallel — every step needs the previous step's output. Orchestration buys nothing here; do it in one agent. (Refusing to fan out a sequential goal is the right call, not a failure.)
Worked example — sequential chain (refusal)
Goal: "Add a
--jsonflag": parse flag → thread through formatter → update snapshots. A single chain — every edge is "needs output". Refuse; nothing to reconverge.
Q2 — Place
For each unit, decide where the work happens. This is the rule using-git-worktrees
never states because it only ever isolates one thing:
| Situation | Placement |
| Unit writes files no other concurrent unit touches | Shared tree — isolation buys nothing, costs setup. |
| Two concurrent units write the same files | One worktree per colliding unit, OR serialize them. Never two writers in one tree. |
| Unit is a different branch / feature entirely | Worktree per branch (the N-worktree extension — deferred, see Deferred design). |
| Unit is read-only (investigation, no writes) | Shared tree — read-only units never collide. |
The hard invariant, stated once:
Two concurrent units that write the same files must never share a working tree. Either isolate (a worktree each) or serialize (a barrier between them). This is the collision-avoidance rule the rest of the harness is missing — and it is not negotiable.
The worktree is the enforcement, not tidiness. Beyond collision-avoidance, a worktree is the boundary a breach can't happen across (see Overview finding 2) — which is why Q3.5's prompt-level positive scope is supplementary to placement, never a substitute.
Agent-mode shared-tree safety: in agent mode, read-only units and write-disjoint units share the tree safely. If two concurrent units both write and their scopes overlap, escalate them to worktree placement automatically (or serialize) — agent mode and branch mode converge on the same isolation rule the moment writes collide.
Worked example — overlapping write claim
U1 rename-symbol claims
src/payment/*.ts; U2 add-currency-field claimssrc/payment/model.ts+api.ts— two writers, same files. Serialize (U1, merge, then U2) or worktree each and merge in dependency order at Q4. Never both in the shared tree.
Q3 — Dispatch
Dispatch goes through dispatch — unchanged. This skill is a caller, not a
replacement. dispatch's three gates fire on every unit dispatch — model tier (a Haiku
parent does not spawn; no unit above its parent's tier), depth ≤ 2 (the prompt carries the
depth annotation line), and a user-visible justification surface before the call — see
dispatch/SKILL.md. Sibling width is uncapped.
The dispatch prompt for each unit carries exactly six elements (riding alongside dispatch's depth annotation):
- Positive scope declaration — "you may write only
<files>." Evidenced to beat negative fences. The unit is also placed (Q2) where that scope is physically enforced. - Placement — which worktree, or "shared tree" (from Q2).
- Step budget —
maxTurns, scaled to the autonomy contract'seffortper dispatch's Autonomy contract at dispatch section (dispatch owns the scaling; set it explicitly per unit — it does not cascade). The forced-BLOCKED return (Q3.5) trips when the budget is exhausted. - Convergence-contract reference — return a
produced:block per the Unit return contract section, so the parent can reassemble. harvest:invitation — "if you reach a decision, lesson, or landmine worth keeping beyond this task, emit aharvest:block."- Ask posture — the contract's
askposture per dispatch's Autonomy contract at dispatch section. Read at dispatch only (the platform has no model-visible mid-flight channel) — never streamed in.
The unit's task content itself takes dispatch's delegation brief shape (Goal · Files · Constraints · Acceptance · Verify, pointers not pastes) — dispatch owns that contract; these six elements ride alongside it.
Scope is stated positively and fenced by placement — see Overview finding 2. Positive scope guides attention; the Q2 worktree/placement is the enforcement.
Worked example — one unit dispatch, dispatch gates firing
Justification surfaced before the call (Gate 3): "Dispatching the drift-control research unit to a fresh depth-1 subagent — write-disjoint from the other two, tier same as parent; I'll synthesize its
produced.summaryat Q4." Gates 1–2 pass (parent not Haiku; depth 1 ≤ 2).Dispatch prompt:
You are a depth-1 subagent. Maximum allowed depth is 2. You may spawn one more level only if needed; beyond that, return work to your parent rather than spawning. Research evidence-based drift-control techniques for multi-agent orchestration. SCOPE (positive): you may write ONLY docs/findings/<topic>.md (the drift-control subsection). Placement: shared tree (read-only research + one write-disjoint file section). BUDGET: maxTurns = 12. If you exhaust it without finishing, return produced.status = blocked with a reason — never a confident fake. FIRST ACTION: restate the goal, your file-scope, and your stop-condition before any work. RETURN: a `produced:` block (status / scope_declared / files_changed / summary / self_check) per the orchestrate unit return contract. HARVEST: if you learn a decision, lesson, or landmine worth keeping, emit a `harvest:` block.
Q3.5 — Keep on track
A dispatched unit runs in isolated context with no mid-flight window (Overview finding 1), so "keep on track" means prevent drift at dispatch and catch it at the cheapest checkpoint (Q4). Periodic mid-flight self-reporting ("step 2/4 done…") is rejected as pure ceremony — the parent cannot read it live.
The waiting itself is zero-token: between dispatch and return the parent does not poll, check
in, or narrate progress — unit completion (the harness's task notification) wakes it. A
consult return is not mid-flight supervision and stays compatible with finding 1: it is a
normal return (produced.status: blocked carrying one specific question + evidence, per
dispatch's Consult returns section) that the parent answers tersely and re-dispatches — one
guidance round at a time, capped at two per unit, never a streamed conversation.
Four drift modes, controlled in evidence-ranked order (cheapest + most effective first):
| Drift mode | What it looks like | Control (and where it bites) |
| Boundary breach | Unit writes outside its scope, collides with a sibling | Worktree / hard placement (Q2) — the only proven control (finding 2). Audited post-hoc at Q4's boundary audit. |
| Scope creep | Unit also refactors neighbours, "improves" things | Positive scope declaration in the prompt ("modify only X") + the Q4 boundary audit. |
| Goal misread | Unit confidently solves the wrong problem | Restate-goal-first (unit's first output = its understanding of goal + scope + stop-condition) catches ~65–75%; the rest is caught by Q4's separate-verifier pass, not by self-report. |
| Silent stuck | Unit thrashes, returns a plausible non-result | Step budget (maxTurns) + a forced BLOCKED return — a stuck unit returns produced.status: blocked with blocked_reason + budget_used, never a confident fake. |
Three disciplines fall out — the load-bearing additions to each dispatch prompt (riding alongside dispatch's depth annotation and the harvest invitation):
- State scope positively, fence with placement. The prompt says "you may write only
<files>" (positive), and the unit is placed (Q2) where that is physically enforced. Never "do NOT touch X" — negative fences stay out of the boilerplate (finding 2). - Restate-then-act, stop-and-return on boundary. The unit's first action restates the goal, its file-scope, and its stop-condition (catches goal-misread before any work). When it hits its boundary mid-task, it stops and returns to the parent for a re-scope decision — it never expands scope on its own. This is dispatch's anti-escalation rule (return to parent rather than self-upgrade) applied to scope instead of tier. Chosen over "expand within a budget" and "hard-fail": stop-and-return wastes no work and keeps the collision invariant intact.
- Budget the unit, force a loud failure. Each dispatch sets
maxTurns; the return contract requiresstatus: blockedwith a reason when the unit cannot finish. This converts "silent stuck" (the most expensive, hardest-to-detect mode) into a loud, cheap signal the parent acts on at Q4.
What Q3.5 deliberately does not do: no prompt-only scope enforcement as a primary mechanism; no trusting a unit's self-assessed success — that is Q4's separate-verifier job ("a grader can't grade a vibe").
Worked example — boundary hit, stop-and-return
The add-currency-field unit discovers it needs a migration in
src/db/migrations/— outside its declared scope. It returnsproduced.status: blockedwithblocked_reason+needs, never silently widening its scope; the parent re-scopes at Q4.
Q4 — Converge
This is the half neither existing organ owns. After the units return, convergence has two stages — verify, then combine. The verify stage is the backstop for everything Q3.5's dispatch-time prevention didn't catch. A unit's self-reported success is never the verdict.
The autonomy contract's stopping posture shapes convergence (autonomize):
under criteria-met (default), converge only when every unit's success criteria are
met — a BLOCKED or short unit is re-dispatched / re-scoped, not absorbed; under the other
postures, freeze the best coherent result the returned units already give and record what each
BLOCKED unit left outstanding. The contract selects whether Q4 pushes to completeness or
freezes a coherent best-so-far; it does not change the verify discipline below (self-report
is never the verdict, regardless).
Stage 1 — verify each unit (independently, not by self-report)
- Boundary audit (a parent step). Run
git status --porcelain --untracked-files=allfor the unit (or its worktree) and compare the changed-file paths against thescope_declaredfield of itsproduced:block. Files written outside the claim are flagged before any combine. This is a near-free, ~98%-reliable catch for boundary breach and scope creep. It runs as an explicit parent step — no hook dependency, and it is the sole, load-bearing audit control.- Use
git status --porcelain --untracked-files=all, notgit diff --name-only. A unit that creates new files leaves them untracked, andgit diffignores untracked files — it would report an empty diff and silently pass a real boundary breach. Porcelain with--untracked-files=alllists tracked changes and new files, expanded per-path. - Why not an automatic
SubagentStophook? It cannot surface output to the parent (no model-visible channel), so the audit stays a parent step.
- Use
- Separate-verifier pass. A unit's own
self_checkis untrusted — self-eval is miscalibrated ("a grader can't grade a vibe"). For a unit whose correctness is not mechanically checkable by the aggregate suite, grade the result against the unit's success criteria independently. A unit returningstatus: blockedskips straight here — the parent decides re-dispatch / re-scope / absorb.
Verifier threshold (who grades):
- Mechanically checkable (compiles, suite passes, lint clean) → the aggregate suite is the verifier. No separate grader needed.
- Not mechanically checkable (research correctness, prose quality, design soundness) → the parent grades against the unit's stated success criteria.
- Grade needs isolation or expertise (large surface, specialist domain) → escalate to a dispatched verifier unit (itself a gated dispatch). Use this only when parent-grading is genuinely insufficient — it costs a spawn.
Stage 2 — combine the verified units (agent mode)
Integrative synthesis, not collection. Unlike dispatch's "read each
summary," the units shared a goal, so the parent must reconcile overlaps, resolve
contradictions between unit conclusions, and produce a single artifact — not N stacked
summaries. The convergence contract (each unit's produced: block) is what makes this
tractable: the parent reassembles structured pieces (summary + verified files_changed)
rather than re-parsing prose. Contradictions between units are surfaced for the user, never
silently resolved.
(Branch mode — merging verified worktree branches in dependency-layer order, conflicts surfaced not auto-resolved — is documented in Deferred design; v1 builds agent-mode only.)
Worked example — agent-mode, end to end
A three-unit research fan-out worked end to end on the live runtime.
Unit return contract
Every dispatched unit returns in a known shape so the parent reassembles structured pieces instead of re-parsing prose. There are two separately keyed blocks:
produced:— what the unit did (this section). Used by Q4 convergence.harvest:— what the unit learned (decisions / lessons / open_questions). Orthogonal; routed to/capture+/recapon Mode-A confirmation. A unit may emit one, both, or neither.
The produced: block is tool-neutral and human-writable — plain YAML with no Agent-tool
return-semantics assumption. A human at a worktree, or a Codex / Cursor worker, could fill it
in by hand. This matters for the cross-tool portability era: orchestration must not assume the
Claude Agent tool is the only worker.
produced:
status: done # done | blocked | partial — the forced-loud signal from Q3.5; never a confident fake
scope_declared: # echo of the POSITIVE scope handed at dispatch (Q3) — Q4's boundary-audit comparand
- docs/findings/<topic>.md # paths the unit was told it may write
files_changed: # the unit's CLAIM of what it wrote — cross-checked at Q4, never trusted
- docs/findings/<topic>.md
summary: > # one paragraph: the integrative input to Q4 Stage-2 synthesis
Verified the platform-capability half of the findings: no mid-flight subagent
observability, SubagentStop/maxTurns exist, background agents are pollable peers.
self_check: "claims verified against code.claude.com docs" # UNTRUSTED — Q4's separate verifier overrides it
# present only when status is blocked or partial:
# blocked_reason: "…"
# needs: ["…"] # what the parent must supply / re-scope to unblock
# budget_used: "7/10 steps"The harvest: block rides alongside, separately keyed.
Deferred design
Future-work pieces — background-session runtime, branch-mode merge-convergence, the N-worktree registry, per-edge readiness scheduling, and the probed-but-unbuildable SubagentStop audit — are deferred, each with its own build trigger. None fire during an orchestrate run.
The one load-bearing takeaway is already inline in Q4 Stage-1: the boundary audit is an explicit parent step, porcelain not diff.
Relationship to other organs
dispatch: the dispatch engine this skill calls; every unit dispatch walks its three gates.- Subagent state coordination: prompts carry the
harvest:invitation — harvest = what a unit learned; the convergence contract = what it produced. using-git-worktrees: the isolation primitive Q2 places work into; N-worktree registry deferred.- Plan/execute + done-criteria: Q1's decomposition is a lightweight plan over concurrent units; Q4's aggregate verification is their collective done-criteria.
- Harness vocabulary: Scope subsystem — this pins each unit's boundary and the aggregate's done-criteria.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

