agent-orchestration
Skill3 starsChanged 38 days agoMITView on GitHub
Design bounded next-step control for an AI runtime, from fixed routing to adaptive tool/retrieval choice and justified workers. Use when choosing who controls the next step, implementing agent routing, handoffs, fan-out/fan-in, shared state, cancellation or aggregate budgets. Do not use for coding-subagent dispatch, ordinary parallel utilities, whole-system lifecycle planning alone, or tool contracts without a runtime control-flow question.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- CassetteTapeCrackle/claude-starterstheir own version, first seen Nov 8, 2026
- juninmd/skillstheir own version, first seen Nov 8, 2026
- scoobydrew83/skillstheir own version, first seen Nov 3, 2026
- krema/agent-skillstheir own version, first seen Nov 1, 2026
- black-yt/skillstheir own version, first seen Nov 1, 2026
- Wiserax/wisecrafttheir own version, first seen Oct 25, 2026
Used with
Projects with it also use mcp-builder and code-review.
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.
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- codeaholicguy/ai-devkit★ 1.7ksame name
- GTMify/aigtm★ 25same name
- black-yt/skills★ 16same name
- juninmd/skills★ 2same name
- CassetteTapeCrackle/claude-starters★ 1same name
- hongdp/deskd★ 1same name
- j1nn0/skills★ 1same name
14 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 repository18 other files it gives its agents.
- agent-architectureSkill
- agent-cost-and-latencySkill
- agent-development-workflowSkill
- agent-evalsSkill
- agent-failure-recoverySkill
- agent-guardrailsSkill
- agent-observabilitySkill
- agent-securitySkill
- agent-state-and-memorySkill
- agent-testingSkill
- deterministic-authoritySkill
- evidence-provenanceSkill
- human-in-the-loopSkill
- prompt-engineeringSkill
- rag-engineeringSkill
- structured-output-designSkill
- tool-designSkill
- tool-evalsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Run ablations against the simpler baseline, including coordination/merge costs and failure modes.
“Common” is measured: kept by at least 6 in 10 of the 23 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
Agent Orchestration
First ask: “Does a model actually need control over the next step?” Second: “Could deterministic routing perform this more reliably?” Use fixed control for known conditions, bounded model choice for ambiguous/contextual observations. Then ask whether multiple agents add measured value.
Route a single agent before adding workers
Define typed controller state, admissible next actions and deterministic transition guards. Known status/error/permission rules route in code. Ambiguous evidence gaps may justify proposals to select tools, retrieve more evidence, check contradictions, request independent verification or escalate. Validate selections against capabilities, prerequisites and remaining budgets.
Enforce max steps/model calls/tool calls/retries/time/spend, no-progress and terminal conditions across fallback/resume; repeated suggestions cannot reset the run. Prefer functions, explicit state machines or jobs; choose framework primitives only for demonstrated reliability/maintainability needs. Evaluate routing and optional workers against task-fit baselines; free-form negotiation is not a required control plane.
Add workers only when justified
Apply the worker sections below only if the simpler controller is insufficient; one agent does not need worker handoffs or fan-in.
- Compare deterministic workflow, one model-powered step and single-agent/tool designs using representative evals. Reject multiple agents for known rules, small shared-context tasks or role labels without measurable benefit. Parallel deterministic functions do not need agent personas.
- Identify genuinely separable work, specialized context or independent verification. Record dependency edges, shared resources, merge semantics and expected gain. If all workers need the same full context and continually negotiate, decomposition may be wrong.
- Choose the smallest pattern: independent fan-out/fan-in, planner with bounded workers, or a separate reviewer with a defined rubric. A reviewer can detect errors but cannot grant authority. Use deterministic scheduling for known dependencies and avoid free-form agent-to-agent chat as the control plane.
Specify handoffs and ownership
- Give each task a typed contract: task/run/parent IDs, objective, input evidence and scope, output schema, allowed tools, completion criteria, deadline, budgets and cancellation. Mark external content as untrusted; handoff summaries do not gain authority by being written by another agent.
- Assign one authoritative owner per mutable resource or use explicit transactional/versioned coordination. Workers return proposals/evidence; the orchestrator validates results and deterministic policy authorizes effects. Scope each worker's identity/capabilities; do not inherit broad coordinator privileges by default.
- Define fan-in rules for missing, failed, conflicting or duplicate results. Validate schema/provenance, choose deterministic merge rules where possible, and escalate substantive conflicts with evidence. Majority vote or reviewer agreement is not proof of truth or permission.
- Preserve idempotency across duplicate dispatch and retries. Define checkpoint/resume and late-result behavior; a cancelled or expired task must not commit a delayed proposal. Reconcile unknown worker effects before rescheduling.
Bound coordination and prove benefit
- Set total and per-worker ceilings for steps, model calls, tools, spend, time, fan-out and concurrency. Reserve budgets centrally/atomically so workers cannot independently exceed the aggregate. Stop on objective completion, dependency failure, deadline, cancellation, policy denial or no progress.
- Limit planner/reviewer rounds and specify the condition for another round. Do not allow recursive delegation or conversation loops without explicit bounded benefit. Capture parent/child traces, worker versions, handoff evidence, conflicts and final evaluator outcome.
- Run ablations against the simpler baseline, including coordination/merge costs and failure modes. Ship multiple agents only if the measured benefit survives realistic skew, missing workers, duplicate work and contradictory outputs. Preserve a single-agent fallback only when it meets the same safety policy.
Deliver control ownership, typed controller states/guards, allowed next actions, budgets, termination/failure policy and comparison evidence. For justified workers add task graph, handoff/merge and resource authority contracts. Agents collaborating on coding tasks are out of scope (a subagent/dispatching skill may cover them); this skill designs the deployed orchestration system.
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.

