orchestrate
Skill2 starsChanged 6 months agoMITView on GitHub
Decompose a multi-file task, fan out to parallel workers in dependency-ordered waves, and reconcile their results — with a one-writer-per-file guarantee. The third orchestration mode (parallel fan-out) alongside sequential and iterative-retrieval. Rides the platform Workflow tool as the engine; the skill is the lead — it splits the work, groups tasks into waves by their declared dependencies, assigns disjoint file-ownership within each wave, dispatches workers under explicit contracts, and merges their summaries. Opt-in; not wired into the default pipeline. Use when a task spans 3+ files that can be grouped into waves of independent, disjoint-write-set work.
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, checkpoint and 5 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
genomewalkerSkillcheckpoint
Save a checkpoint of task status, decisions, active files, and next steps
Also in 5 projects that use this
sahinSkillexecute
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
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 repository35 other files it gives its agents.
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- benchmarkSkill
- build-fixSkill
- deploySkill
- design-reviewSkill
- designSkill
- discoverSkill
- evalSkill
- extractSkill
- fixSkill
- harness-implementSkill
- harness-maintainSkill
- harness-planSkill
- harnessSkill
- harness-verifySkill
- healthSkill
- implementSkill
- lazySkill
- observeSkill
- onboardSkill
- operateSkill
- plan-checkSkill
- planSkill
- refactor-cleanSkill
- researchSkill
- resume-sessionSkill
- reviewSkill
- save-sessionSkill
- security-reviewSkill
- shipSkill
- specSkill
- testSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Write the decomposition plan: before dispatching. For each subtask: a one-line goal, its
- Very specific: line 92
Every worker is dispatched under an explicit contract (worker-contract.md): one clear input, a minimum tool scope, an ownership boundary …
- Very specific: line 101
Git boundary holds: no worker and no reconcile step commits or pushes unless the objective explicitly arms it.
“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 — split the work, fan out, reconcile
Goal: take a task that spans many independent files and do it in parallel without two
workers ever clobbering the same file. This skill is the discipline layer: the platform
Workflow tool is the engine (parallel()/pipeline() + agent(prompt, {schema})); /harness-claude:orchestrate
is the lead — it decomposes the task, assigns one writer per file, dispatches workers
under explicit contracts, and reconciles their structured summaries into one result.
Opt-in. No default-pipeline skill or hook fans out. Parallel orchestration is always explicit. Git boundary: a run never commits or pushes unless you explicitly arm it in the objective; the lead creates one shared convention-named branch for the whole task before fan-out (
rules/git.md) — workers never branch. Token discipline: workers return summaries, not raw dumps (perrules/agents.md).
This is the parallel-fan-out mode from rules/agents.md. Reach for it when the work is
splittable into 3+ tasks whose concurrent members have disjoint write-sets. Tasks
that depend on each other's output aren't excluded — they run in later waves, not the
same batch. Only if the whole task is one unsplittable sequence is this the wrong mode.
How it works
decompose → group into waves (by depends_on) → per wave: verify disjointness → fan out (Workflow) → reconcile- Decompose the task into subtasks (
T1,T2, …), each scoped to a set of files it will write and adepends_onlist of prior task IDs. (APLAN.mdfrom/harness-claude:planalready carries this format — seedocs/state-and-artifacts.md.) - Assign owners — every writable file belongs to exactly one subtask.
- Group into waves — topologically sort by
depends_on: tasks withdepends_on: []form wave 1; a task joins the wave after the latest wave of its dependencies. Waves run sequentially; tasks within a wave run in parallel. A fully-independent task set collapses to a single wave (identical to the pre-wave behavior — backward compatible). A dependency cycle is an error: refuse to run and name the cycle. - Per wave: verify disjointness, then fan out — before each wave's batch, check that its tasks' write-sets are pairwise disjoint (refuse and name the file if not); dispatch that wave via the Workflow tool; await it before starting the next wave.
- Reconcile the workers' structured summaries into one result; surface conflicts/failures.
Do this
- Write the decomposition plan before dispatching. For each subtask: a one-line goal, its
owned files (the only files it may write), its read-only files, its
depends_ontask IDs, and its tool scope (Read always; Write/Edit/Bash only over owned files). Brief each worker fromworker-contract.md— one filled instance per subtask. Then apply branch-at-first-write (rules/git.md): the lead creates the task's single sharedclaude/<type>-<slug>branch before dispatching wave 1 — every worker writes into it; no worker creates branches of its own. - Group into waves and check each. Topologically sort the subtasks by
depends_oninto waves (wave 1 = no deps; a cycle → stop and name it). Then, for the wave you're about to dispatch, list the union of its workers' write-sets: if any file appears in two sets, stop and report the conflict — re-partition so owners are disjoint, or push a colliding worker to a later wave. Only fan out a wave once its write-sets are pairwise disjoint. - Dispatch wave by wave via the Workflow tool, awaiting each wave before starting the next.
A wave's independent subtasks → one
parallel()batch (a barrier: it awaits all workers and returns their results together). Usepipeline()only when items flow independently through stages — it has no barrier between stages (each item proceeds as it's ready), so don't expect it to synchronize all items before the next stage. Each worker is oneagent(prompt, {schema})call: pass the contract as the prompt, force a structured summary viaschema. Pass any context as real JSON inargs(never a stringified blob). Size the batch to the task — concurrency caps at ~min(16, cores−2); excess just queues, so don't fan out blindly. (If a stage is an external script rather than an inlineagent()call, it needs the platform's pure-literalexport const meta = {…}header.) - Reconcile on completion. The Workflow tool runs in the background and returns a task
id; reconcile when it reports done — never assume a synchronous return. Collect every worker's
summary, merge into one result, and surface any failed or null worker (a thrown stage
resolves to
null) — never silently drop one. Handle a bad return by its failure mode (rules/agents.md→ "When a delegate comes back wrong"): retry the missing slice, escalate, or surface — don't treat a null, a partial, and a contradiction the same way. For each worker, verifyfiles_written ⊆ files_planned; flag any worker that wrote outside its owned set as a contract violation (this is the enforcement arm of the one-writer guarantee). This audit is detective, not preventive — an escaped write has already landed by the time it's caught, so the remediation is to revert the offending write, not merely report it.
The one-writer-per-file guarantee (assignment-by-plan)
Ownership is enforced by the plan, not by isolation: because each concurrent worker writes a
disjoint set of files, collisions are impossible by construction. The disjointness check ("Do
this" step 2) is the gate that makes this hold — it is mandatory before every parallel() batch,
and the reconcile-time files_written ⊆ files_planned audit (step 4) catches any worker that
escaped its owned set.
Escape hatch only: if you genuinely cannot guarantee disjoint write-sets (e.g. workers must touch overlapping files), dispatch the colliding workers with the Workflow tool's
isolation:'worktree'so each edits a private copy, then merge. The lead merges sequentially and surfaces any conflicting hunk — never auto-resolve overlapping edits (a blind merge of two private copies touching the same file silently loses one side). This is the exception, not the default — prefer re-partitioning into disjoint owners first.
Worker contracts
Every worker is dispatched under an explicit contract (worker-contract.md): one clear input,
a minimum tool scope, an ownership boundary (its owned files — the only files it may write), and
a required structured-summary output (what changed, files written vs. planned, conflicts/
failures — not a raw dump). A worker that cannot finish without writing outside its owned set must
surface the conflict, not silently expand scope.
Security & trust
- Workers run with your privileges and can edit files in their owned set — scope each to the minimum tools its subtask needs (read-only unless it owns a writable file).
- Git boundary holds: no worker and no reconcile step commits or pushes unless the
objective explicitly arms it; workers never create branches — the lead's shared branch
(
rules/git.md) is the only one.
Notes
- Self-contained: a skill + the
worker-contract.mdtemplate + the existing platform Workflow tool. No new dependency, no new MCP server, no new runtime. - The skill is the lead — there is no separate orchestrator agent (the lead logic lives here,
the same way
/harness-claude:operateowns its own loop). - Distinct from the
/harness-claude:harness*orchestrators, which sequence SDLC phase skills; this decomposes one arbitrary task across parallel writers.
Exit criterion
A decomposition was written, tasks were grouped into dependency-ordered waves (or a cycle was refused, named), each wave's disjointness check passed (or refused, naming the conflict), waves ran sequentially with their tasks in parallel, and every worker's summary was reconciled into one result with failures surfaced — never a fan-out left with a silent collision or a dropped worker.
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.

