orchestrate
БесплатноЗапускает вложенные скриптыНе проверенSplits a scoped task into independent work items, runs one worker per item in parallel through a Workflow, and synthesizes the results. The planning and…
от Roasbeef★ 33 звезды на GitHubОб этом скилле
Orchestrate
Run the orchestrator pattern from the advisor-tool docs: a strong model plans and decomposes, cheaper workers do the token-heavy execution in parallel, and the strong model combines the results into one answer. Most tokens are generated at the worker rate.
Target: $ARGUMENTS
This is the inverse of /advisor, where a cheap main loop consults an expensive model. Here the expensive reasoning is scarce (one plan, one synthesis) and the cheap work is abundant.
When it pays, and when it does not
A worker starts with none of this session's context. It knows only its brief, and this session sees only its report. Both handoffs lose detail, and a worker's mistake comes back in the same confident tone as its finding. Fan-out is worth that cost when:
- The task has roughly four or more items that are independent: no item needs another's output, and no two edit the same file.
- Each item takes real work. A handful of tool calls per item is faster done inline.
- Each item has a check that a worker can run by itself.
Do the work in this session instead when the items share evolving context, when the split is not yet known, or when the whole task is one thread. For a single hard decision use /advisor or /council.
Phase 0: Scope and brief (always done by the main loop)
The plan is only as good as the context behind it, and this session is the only one that has that context.
Parse flags.
--planner=:opus(default) orfablefor a decomposition that is itself hard.--worker=:sonnet(default),haikufor mechanical and fully specified items, oropuswhen each item needs judgment.--effort=: worker effort. Leave it unset to inherit the session's.lowsuits well-specified, high-volume items.--isolation: workers get their own git worktrees. Use it only when items must edit the same files, because worktrees are slow to set up. A split with disjoint files is the better fix.
Scout inline. List the files, find the call sites, scope the diff. A fan-out over a work-list nobody has looked at wastes every stage after it.
Write the work-list yourself when you can. On an Opus or Fable session, this session is the planner: it has the context a fresh planner agent lacks. Write
itemsdirectly and the workflow skips its Plan phase. Let the planner agent decompose only when the session is on a cheaper model or the split is not obvious after scouting.Each item is
{ id, spec, done }:specsays what to do and names the files or areas, in words a reader with no other context can act on.doneis a check the worker runs, with the expected result: "go test ./lnwire/...exits 0", not "tests pass".- Keep it to about eight items, and batch small pieces together. Workflows in this setup are sized for under ten agents.
Write the shared
context. This goes verbatim to the planner and to every worker, so it is the one place to state what they cannot see: the constraints that must hold, the conventions to follow, the facts scouting turned up, and the build and test commands. Without it, each worker rediscovers the repo or guesses.
Preferred path: the bundled workflow
When the Workflow tool is available, run workflow/orchestrate.js. Do not hand-author a script per invocation.
Workflow({
scriptPath: "<this skill dir>/workflow/orchestrate.js",
args: {
task: "<the task, verbatim>",
context: "<constraints, conventions, scouting facts, verify commands>",
items: [{ id, spec, done }, ...], // or null to let the planner split
planner: "opus",
worker: "sonnet",
workerEffort: null, // or "low" | "medium" | "high"
isolation: false,
},
})
The workflow runs three phases:
- Plan, on the planner tier. Skipped when
itemsis supplied. The planner works fromtaskandcontextonly and returns items plus anything that does not split cleanly (uncovered). - Execute, on the worker tier, one worker per item in parallel. Each worker is told to do its whole item and nothing outside it, to work through ordinary obstacles, to run its done-when check, and to report
status, the check's actual result, and what it could not verify. - Synthesize, on the planner tier. It combines the reports and lists conflicts, gaps, and the checks to run on the combined result.
It returns { items, results, incomplete, uncovered, answer }. answer is null if the synthesizer failed, in which case work from results. The workflow runs in the background and notifies on completion.
After the workflow returns
The workflow's answer is a set of claims. Each worker verified only its own item, and parallel changes can break each other.
- Run the combined check here. Build and run the task's tests over the merged result, plus anything in
answer.recheck. A fan-out is not finished until this
Установить orchestrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
AgentTaskWorkflowReadGrepGlobBashAskUserQuestionВложенные файлы
FAQ
Что делает скилл orchestrate?
Splits a scoped task into independent work items, runs one worker per item in parallel through a Workflow, and synthesizes the results. The planning and synthesis stay on a strong model and stay thin; the token-heavy execution runs on a cheaper worker tier, with each worker briefed to stand alone and to report evidence for what it verified. Prefers the bundled deterministic workflow; falls back to in-instance Agent dispatch. Use when the user types /orchestrate or asks to decompose, fan out, or parallelize a task across independent workers.
Как установить скилл orchestrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл orchestrate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic