agentleFS
lsy041015lsy041015/orchestra/skills/orchestrator/SKILL.md

orchestrator

Skill2 starsChanged 2 months agoMITView on GitHub

Use in Claude Code when a plan the user approved or asked to execute should be split into difficulty tiers and each tier delegated to a Claude subagent, or to a Codex CLI worker only when the user asks for Codex. Not for Codex-hosted sessions.

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use reviewer, knowledge-base and 4 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.
  • MicrosoftSkill

    reviewer

    ASP.NET Core ハンドブックの記事をレビューする。Use when: 記事をレビューする、ドキュメントを校正する、コードレビューする、PRをレビューする。技術ドキュメントのレビュー、品質チェック、校正。

    Also in 3 projects that use this

  • jacobraskSkill

    knowledge-base

    Manage your personal knowledge base of curated resources, bookmarks, and excerpts. Triggers include "knowledge base", "kb", "add to knowledge", "add tabs to", "what do I have on", "what do we know about", "find resources about". Use with safari-tabs skill for bulk ingestion from Safari windows. Location is ~/knowledge/.

    Also in 3 projects that use this

  • GoogleSkill

    code-reviewer

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

  • GoogleSkill

    code-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 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 0

    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
  1. Very specific:

    Keep lookups and few-line edits inline.

    line 34
  2. Very specific:

    Read modules/routing.md before the first dispatch, whether or not ~/.claude/orchestra.json or a project .orchestra.json exists.

    line 46

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

Orchestra Orchestrator

This skill extends orchestra:subagent-driven-development: load that skill too and follow it for setup, the ledger, task briefs, review, the fix base and re-review, the final whole-branch review, and finishing. This skill replaces only its worker selection, dispatch, and the way fixes reach a worker. The main session keeps planning, review, re-review, diagnosis, and integration. Workers only implement.

Claude Code only. In a Codex-hosted session, use orchestra:subagent-driven-development instead.

1. Tiered task list

Get a plan first that the user's kickoff approval or an explicit request to execute covers, using orchestra:writing-plans if none exists. Then show the user one compact table:

#TaskTierFiles
1Clean up constantsEasysrc/const.gd
2Inventory UIHard (UI)ui/inventory.tscn, ui/inventory.gd

Tiers:

  • Easy: mechanical, single file, no new behavior.
  • Medium: normal feature or fix with tests.
  • Hard: cross-file, new architecture inside the plan, tricky logic, or judgment about the visual result. Mark UI work (UI).

Keep lookups and few-line edits inline. A larger mechanical one-file task is Easy, not inline: the Easy route exists to run such work on a cheaper model, so it replaces subagent-driven-development's keep-inline rule here.

2. Model choice

Workers are Claude by default: Easy claude sonnet/medium, Medium claude sonnet/high, Hard and UI claude sonnet/xhigh. Use a Codex worker only when the user named Codex (or a Codex model) in this conversation, and only for the tiers modules/routing.md assigns to it. Show the mapping on one line and dispatch; the defaults need no question.

Read modules/routing.md before the first dispatch, whether or not ~/.claude/orchestra.json or a project .orchestra.json exists. It merges the files by key, applies Codex values only on request, requires one confirmation for values that come from the project file, and says when to ask. Record Routing: Easy=..., Medium=..., Hard=..., UI=... in the ledger.

3. Dispatch

Label every worker so the task list shows its engine, model, and effort: [<Codex|Claude> <model>/<effort>] Task N: <title>. Reuse a Claude worker through SendMessage for a later task only when that task has the same routing value, and record the later task's scope baseline first. A reused worker keeps its first label; the ledger shows its current task.

Claude worker: read modules/dispatch-claude.md (agent per effort, scope baseline before and check after).

Codex worker (only when a task routes to Codex at the user's request): read modules/dispatch-codex.md (background codex-worker.mjs run, brief rules, network opt-in, and the prerequisite check before the first Codex dispatch).

Workers of either engine may run in parallel when their files and state do not overlap; tier routing is itself the exception to the one-worker default, so it needs no separate parallel request. The scope check compares the whole checkout, so a file changed by another worker running at the same time also appears in Scope: outside allowed. Ignore a listed file only when it belongs to a concurrent worker's allowed list or is an expected (ignored) cache (see modules/review-loop.md); otherwise treat it as a finding. For the same reason, do not edit a checkout while a worker runs in it. Separate worktrees avoid this overlap.

4. Review and fix loop

Review every result from the actual diff and read its Scope: line. Read modules/review-loop.md for how to treat each Scope: result, leftover processes, the fix loop for either engine, and the fix-round limit.

User controls

The user can confirm tasks from the task list, cancel a task with TaskStop <task id> (this stops the Codex process tree; record the task as BLOCKED), or say "switch Task N to <model>". Finish or stop the current worker before changing the model, then dispatch again with a fresh brief.

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.