claude-code-orchestrator
Skill23 starsChanged 8 days agoApache-2.0View on GitHub
Use when delegating on Claude Code: select a subagent role, brief the task, and start, stop, resume or reconcile a child. Not for peer sessions or other CLIs. Slicing -> xp-agile-delivery.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
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 41
Create a child; never fork your turn.
- Distinctive: line 60
Look for parallelism at every plan and phase change: split independent investigations, implementations, tests and reviews into children …
- Distinctive: line 67
Keep inline: quick edits, sequential steps that share context (plan → implement → test), and work that needs back-and-forth with the user.
- Distinctive: line 143
Verify a subagent's effective model from the runtime's request log, never from the model's self-report.
- Distinctive: line 147
When no permitted reviewer qualifies for a change that owes an independent review, report the blocker instead of quietly downgrading the …
- Distinctive: line 149
After two BLOCK rounds from the reviewer on the same slice, swap the author for a stronger role instead of running a third identical round.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Orchestrator
How to use this runtime's subagents well: when to delegate, how to brief, how to run a child and what to check before believing what comes back. It owns routing mechanics; authority and accountability are in the operating rules (§7).
Identity and the brief
- A subagent is an extension of you, running under your identity, through your tools and your checkout. The one thing a brief cannot grant is authority; accountability comes from the global agent rules, and this skill adds the mechanics.
- The brief is the grant. The card keeps the role's specialization; the brief decides the scope, including whether the child implements.
- Create a child; never fork your turn.
- Roles, what each is best at, and their limits come from the runtime, read live; this skill states no number.
Where the live facts are
- Roles — the live listing at spawn. A card's description names what the role is for and settles a choice between two. A remembered name the listing does not show is gone: report it, never substitute the nearest neighbour.
- Cost — the tier resolved in each card.
- Concurrency and nesting —
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTSandCLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTHin this home's settings; a spawn over the cap fails. Read the values live: a copied number goes stale. - Tools and permissions — inherited from your session, but a background child gets a narrower set and the read-only built-in types cannot edit, so a brief that asks for changes goes to a role that can make them. This skill adds no tool limit; the brief sets the scope.
When to delegate
- Look for parallelism at every plan and phase change: split independent investigations, implementations, tests and reviews into children with disjoint ownership when each gains speed, coverage or quality worth its brief and review, up to the concurrency limit only for work that is actually independent — never by routine, never as a quota. Good candidates: a verbose search, a self-contained change, a check whose output would flood your context. N children cost roughly N× the tokens.
- Keep inline: quick edits, sequential steps that share context (plan → implement → test), and work that needs back-and-forth with the user.
- Route by task type and complexity at the best cost-benefit, reading the card; a tier too weak spends its cost twice. The cheaper tier is the default for execution whose scope is settled: locating code, external research, any implementation whose brief settles what to do, a bug fix with a reproduction or a known cause, a behavior-preserving refactor, writing and running tests, CI/infra/scripting, and docs. A brief in which you named the fix — what changes, where, and the acceptance — IS settled, whatever its size, file count or layers crossed: settle the design yourself, then hand the implementation to the cheaper tier. The exception is settled work whose failure is costly or silent (concurrency, transactions, data integrity, coupled invariants across components, auth and secrets paths) or whose risk lives in the rendered result of a new screen or complex interaction: that implementation goes to the stronger tier first. The stronger tier is also the default for planning (cutting slices), architecture and interface/UX decisions, implementation whose design the brief leaves open, integrating two or more separate deliverables, a code review or an adversarial second review, debugging with no known cause yet, schema/migration work, and security review; it implements other settled work only after a cheaper worker failed it. The dearest tier only takes a problem you demonstrably failed to solve, that attempt named in the brief: never first, never for an idle slot.
- Pass
subagent_typeon every spawn, naming the specialized card whose description fits the task type; omitting it falls back to the catch-all.
The brief is the mission
The child starts from a clean context. The Agent tool's prompt is all you
pass it: project instructions and a git-status snapshot reach it, your
conversation does not (code.claude.com/docs/en/sub-agents, 2026-09-26). The
brief therefore carries the whole mission, one or two lines per field:
- Goal — the concrete outcome, with one action verb: implement, fix, measure, locate. "Look at" and "suggest" return advice, not an artifact.
- Scope — what it may read, create or change, and what it must leave alone.
- Constraints — what not to do, safety limits, the checks to run.
- Acceptance — the observable result that means done, and the check that proves it (test, log, script).
- Delivery — what to return, in what shape and how long.
For an independent review the brief says "report findings; don't fix": a reviewer who edits the change is no longer independent. Put long material first and the instruction last. Require the child to delete its own scratch before it reports, keeping deliverables and evidence; give it a scratch subfolder named for it, so it never clears a sibling's. Where the project declares a scratch root and its disposal verb, use them.
A child that starts a server, browser or other process records each PID it starts and stops exactly those PIDs, never by image name or command-line pattern: on a shared machine a pattern kill hits peers' runs.
The parent owns the index. Children share your checkout, so the brief lists
the files each child may edit and says it never stages, commits, merges,
stashes, restores or removes through git: you integrate. A child that ran
git rm left a staged deletion that blocked its parent's merge (measured
2026-10-04).
Brief in a file when it pays. This is a working practice, not a vendor rule. A short brief goes inline. A long or reused brief goes in a file, and the prompt names its absolute path. A large result goes to a named output file, with a short summary in the reply, so your context stays small.
Running and continuing
- Spawn with the
Agenttool, not another CLI's spawn surface. Let the child run in the background and keep working; wait inline only when the next step cannot start without it. Never write or predict a pending child's result. - One mission per child. A finished child returns an agent id, and
SendMessageresumes it with its whole history re-read at your cost, so use it only to correct or clarify that delivery. New work is a freshAgentcall. Stop a child that lacks evidence, exceeds its scope or repeats a failure, and redispatch with a corrected brief; a finished or stopped child frees its slot.
Verification before promoting any claim
- Trust the report only within the child's brief. Review the final artifact against acceptance, interfaces and risk, and tie each claimed check to the exact revision or configuration it proves.
- Verify a subagent's effective model from the runtime's request log, never from the model's self-report.
- Reconcile two or more overlapping deliveries through one integrating review, briefed to report findings and not fix, before any of them is integrated. That does not replace independent review of a risky change.
- When no permitted reviewer qualifies for a change that owes an independent review, report the blocker instead of quietly downgrading the reviewer.
- After two BLOCK rounds from the reviewer on the same slice, swap the author for a stronger role instead of running a third identical round. Count only rejections: a resumption after an interruption is not a round.
Closing a dispatch
The child's scratch, branch and tree are yours to dispose of, with the cleanup
tooling you use for your own work (the repository's declared tooling, else
plain git), and only what the child created. Before integrating, check that git status and
git diff --cached show only what the child was allowed to touch. For a fan-out of
two or more children, consolidate the checked reports into one table: child,
outcome, evidence, acceptance decision and reason. An unsupported claim is not
accepted, and a pending verification stays explicit.
- A child that needed a tree of its own is a defect to report, not a tree to
keep. Subagents share your checkout by design; a full clone per child pays the
repository's whole history each time; measure
.gittimes the number of children against free disk before any child gets a clone.
Gotchas
- A role chosen from memory is the common failure: the roster changes, and a dispatch to a name that no longer exists is refused at the door.
- A catch-all chosen by habit, or no
subagent_typeat all, is the other one. The child loses the card's specialization, tools framing and resolved tier, and runs as a generalist, usually on a costlier model than the task needs. - One overloaded brief to a strong role is usually worse than two bounded briefs: the child returns one blended answer you cannot verify piecewise.
In this repository21 other files it gives its agents.
- codebase-designSkill
- code-reviewSkill
- codex-subagent-routingSkill
- diagnosing-bugsSkill
- docker-composeSkill
- exhaustive-repo-cleanup-auditSkill
- gemini-cli-orchestratorSkill
- grok-build-orchestratorSkill
- kill-slopSkill
- kimi-cli-orchestratorSkill
- layered-testing-executorSkill
- legacy-code-changeSkill
- pragmatic-engineeringSkill
- refactoring-catalogSkill
- security-reviewSkill
- tddSkill
- test-auditSkill
- testing-e2e-playwrightSkill
- windows-shell-interopSkill
- worktree-lifecycleSkill
- xp-agile-deliverySkill
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.

