agentleFS
illinigirlillinigirl/claude-code-toolkit/skills/orchestrate/SKILL.md

orchestrate

Skill0 starsChanged 5 months agoMITView on GitHub

Recommend a good use of subagents for a task — walk a 2-level decision tree (inline / single agent / multi-agent → pattern), explain why, hand back a ready-to-run Agent or Workflow snippet, and execute it only on the user's go-ahead. Use when a task looks broad or parallelizable ("audit/across the whole codebase", "for each X", "find all Y"), when the subagent-nudge hook fires, or whenever you're unsure whether to delegate and in what shape.

161 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use define-requirements, orchestrate-plan and 10 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.
  • sson0-erSkill

    define-requirements

    Work with the user, one question at a time, to complete the requirements document (docs/claudex/<slug>/01-requirements.md). Run by the orchestrator (parent). Stays out of design and implementation.

    Also in 3 projects that use this

  • EternallLightSkill

    orchestrate-plan

    Use when executing a locked, reviewed PLAN.md by delegating the implementation to visible worker agents in Orca, herdr, or cmux ONE PHASE at a time — splitting the plan into context-window-sized phases, giving every phase a pristine worker context, and (when the plan touches INDEPENDENT repos) running one worker per repo IN PARALLEL. Triggers on "run the plan with a worker", "execute the plan in the other pane", "split the plan into phases and build it with workers", "build the backend and frontend in parallel panes". Not for edits you can finish inline; outside Orca, herdr, or cmux use tgc-skills:orchestrate.

    Also in 3 projects that use this

  • sson0-erSkill

    record-evidence

    How to record external facts (docs, command output, codebase findings) as evidence and design choices as decisions. Used by the researcher, designer and reviewer agents.

    Also in 3 projects that use this

  • PinkneyJiangSkill

    improve-architecture

    扫描代码库中的架构摩擦点,识别浅模块并挖掘深模块演进机会。生成可视化交互式 HTML 诊断报告,并在用户确认后闭环实施深度重构。

    Also in 4 projects that use this

  • kjnezSkill

    ticket

    Work on a JIRA/Linear ticket end-to-end: read ticket details, explore codebase, create a branch, implement with TDD, run quality checks, update ticket status, and create a PR. Use when the user provides a ticket ID to implement. Triggers on requests like "/ticket PROJ-123", "work on this ticket", "implement PROJ-123".

    Also in 4 projects that use this

  • xfstudioSkill

    reverse-engineer

    Expert reverse engineer specializing in binary analysis,

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 2

    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
  1. Distinctive:

    If invoked with a task, use it.

    line 12
  2. Distinctive:

    If the honest answer is "this doesn't need subagents," say that plainly — a calm "do this inline" is a valid, valuable result.

    line 80

“Common” is measured: kept by at least 6 in 10 of the 144 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/orchestrate

Decide whether a task warrants subagents and, if so, which shape — then advise, offer, and (on go-ahead) run it. You are an advisor: the scarce thing is the judgment, not another way to launch agents. Never fan out silently.

If invoked with a task, use it. If invoked bare, ask for the task in one line.

The load-bearing rule (read first)

Parallelism is only valid when the items are INDEPENDENT — no shared state, no ordering dependency, no implicit coordination (e.g. "skip if already handled"). This is the #1 way orchestration goes wrong: work that looks independent but isn't produces races and wrong results. So:

Before recommending any fan-out, state in one sentence why the items are independent. If you can't, do NOT parallelize — use a pipeline (ordered stages) or stay inline. Cross-reference: parallel-without-independence in the failure-mode catalog.

The decision tree

Level 1 — the quick call

  • Gate 0 — is delegation even worth it? Stay inline (no subagent) if the task touches ≤1–2 files you already know, is a single lookup, or is inherently sequential with tight feedback (debugging one stack trace). Delegation costs spin-up + context handoff + tokens — don't pay it for small or sequential work.
  • One bounded, single-perspective chunk that would just bloat your context? → a single general-purpose (or Explore) subagent. Delegate to keep your own context clean; no fan-out.
  • Genuinely decomposable into many items / perspectives? → multi-agent, go to Level 2.

Level 2 — pick the multi-agent pattern

Walk these in order; take the first that fits:

  1. Known, independent, read-only (search/understand many files) → parallel Explore agents, one per area.
  2. Known, independent, each MUTATES files (could collide) → Workflow, isolation: 'worktree' per agent.
  3. Known items, multi-stage each (find → verify → fix) → Workflow pipeline() — no barrier between stages.
  4. Unknown-size discovery (find all bugs / every dead flag) → loop-until-dry: spawn finders until K consecutive empty rounds.
  5. A wrong answer is costly (correctness / security) → adversarial verify: N skeptics per finding, kill on majority-refute (or perspective-diverse lenses if it can fail multiple ways).
  6. Wide solution space ("best approach to X") → judge panel: N independent attempts → score → synthesize the winner.

Patterns compose (e.g. find → dedup → pipeline-verify). Prefer pipeline() over a parallel() barrier unless a stage genuinely needs all prior results at once (dedup/merge, early-exit on zero).

Two checks to always surface

  • Independence — the sentence above. No sentence, no fan-out.
  • Cost / opt-in — anything using the Workflow tool needs the user's explicit opt-in and can burn many tokens (dozens of agents). Say so, with a rough scale ("~6 readers + a verify pass"), rather than assuming it's allowed.

Output: advise → offer → execute

  1. Recommend — name the Level-1 call and (if multi-agent) the pattern, in 1–3 lines, with the independence sentence and a rough cost.
  2. Show the snippet — a ready-to-run Agent call list, or a Workflow script, that implements the recommendation. Make it copy-paste real, not pseudocode.
  3. Offer — end by asking whether to run it. Execute only on an explicit go-ahead; otherwise leave the snippet for the user to run or adjust.

If the honest answer is "this doesn't need subagents," say that plainly — a calm "do this inline" is a valid, valuable result. Manufacturing a fan-out to look sophisticated is itself a failure mode.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.