advisor-orchestrator-worker
它能做什么
这项技能为大型任务搭建一组 AI 模型。一个主模型负责规划和检查工作,而较小的模型负责处理众多独立的部分。
适用场景
- ✓任务大到无法通过一次 AI 处理完成的时候。
- ✓你希望同时对许多子任务进行研究或写作的时候。
- ✓你要求智能体把工作分配给一组模型的时候。
技能链接
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/advisor-orchestrator-worker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“这个任务太大,一次无法完成。请把它拆分开,让一组模型同时研究这十二家竞争对手。”
每周 5 个新技能,1 分钟读完。
工作原理
一个较强的模型负责规划工作,并把小任务分配给较便宜的执行模型。然后它检查这些结果,并把它们合并为一个答案。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Advisor Orchestrator Worker
You are the Orchestrator of a three-tier model team. You own the hot path: plan, delegate, verify, synthesize. You never do worker-level work yourself, and you never execute through the advisor.
Models are knobs. The tiers are the durable part; the model IDs
below (current July 2026) swap freely. One rule survives every
generation: the advisor is the strongest reasoning model you can
reach, workers the cheapest that pass verification. Snippets are bash;
on another shell, run them with bash -c.
The team
Workers (default: Gemini 3.8 Flash via the Antigravity CLI,
agy): stateless generation units, with tools (web search, file work) when a subtask needs them. Never interpolate a brief into a shell string; briefs carry quotes and arbitrary text, so that is a shell-injection bug. Write each brief to a temp file and dispatch each worker from its own EMPTY temp dir (no.antigravity.mdor project context leaks in), in its own subshell, into its own output file:# $brief = this worker's brief file; $out = its result file (absolute path) d=$(mktemp -d) ( cd "$d" && env -i HOME="$HOME" PATH="$PATH" \ agy --dangerously-skip-permissions --model "gemini-3.8-flash" --effort high \ --print-timeout 5m -p "$(cat "$brief")" \ > "$out"; s=$?; rm -rf "$d"; exit "$s" ) & pids+=($!)The permissions flag is required in non-TTY shells or the call hangs; the empty dir + minimal env reduce leakage but are not a sandbox; the
--modelpin keeps primary and fallback on one model, and--effort highsatisfies the CLI's required effort selection. Chunk every wave into batches of 3 (Antigravity quota is shared across its app, CLI, and SDK). Start each batch withpids=(), reap each worker with its ownwait "$pid"(a collective wait reports only the last status), and read each$outin dispatch order, since a shared stdout hands verify interleaved output. Non-zero exit or an empty$outis a failed dispatch: retry it through the Gemini API fallback inreferences/fallbacks.mdwhen a key is set (no key: ESCALATE), and record the switch on the status board. That fallback also takes over when agy is missing, and carries any brief too large (over ~100 KB) or too untrusted for a CLI argument (agy -phas no prompt-file input). API workers run uncapped in parallel but have no tools, so a subtask that needs tools goes through agy or gets ESCALATE. Clean up all temp files at run end.Advisor (default: Claude Fable 5.1 via the claude CLI): consult written to a temp file, passed on stdin (never inline in the command), behind a timeout so a hung consult can't stall the loop (perl's alarm; timeout(1) is missing on stock macOS):
perl -e 'alarm shift; exec @ARGV' 300 claude --model claude-fable-5-1 -p < "$consult". Expensive judgment kept out of the hot path: strategy, decomposition critique, risk, taste. Never execution. If the CLI is missing or a consult fails, use the Anthropic API fallback inreferences/fallbacks.md.
The loop
- Frame. State the deliverable and 3 to 5 checkable success
criteria; if the task is too vague for that, ask one question and
stop. Check tools now, not mid-run:
agy,jq, theclaudeCLI,ANTHROPIC_API_KEY, andapi_key="${GEMINI_API_KEY:-$GOOGLE_API_KEY}". Each role resolves CLI first, then API key; announce every fallback up front. If a role has no working path, say exactly how to set it up, then offer degraded mode: you temporarily play that role yourself, same budgets, every affected section and the final result labeled[DEGRADED: <role>], context-isolation caveat noted. Degraded mode is the one exception to the never-do-worker-work rule and covers at most one role; with two or more missing there is no team left, so say so and proceed as ordinary single-model work. - Plan. Decompose into self-contained subtasks with inline inputs, acceptance criteria, and wave assignments that maximize parallelism.
- Plan review (mandatory advisor consult #1). Send the plan using
the format in
references/advisor-consult.md. Revise. State what you changed and what you rejected. - Delegate. Dispatch each wave using the format in
references/worker-brief.md. Parallel background calls, then wait. - Verify. Check every result against its own acceptance criteria, and make the check exercise th
常见问题
什么时候不需要这项技能?
对于单个简单的问题,通常一次模型处理就足够了,因此不需要团队式的设置。
这项技能会选择模型吗?
它建议用较强的模型负责规划,用较便宜的模型负责执行,模型名称可以替换。
谁来检查执行模型的输出?
负责统筹的模型会在合并最终答案之前检查每一项结果。
详情
作者的原始描述
Use when a task is too large for one model pass, needs parallel research or generation across many subtasks (like researching a dozen competitors at once), or the user asks to orchestrate multiple models, split work across a model team, run an advisor-worker loop, have a stronger model review the plan while cheap workers execute, or says "too big for one model" or "fan this out". Not for single-file edits or tasks one model handles in one pass.
热度
- GitHub 星标
- 144k
- 排名
- #673
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/22
评论
- …
同一仓库的更多技能
commit-archaeologist
144k帮你的智能体通过阅读本地 git 历史,解释某段代码存在的原因,包括是谁添加的以及之后发生了哪些改动。
dependency-doctor
144k帮你的智能体检查 requirements.txt、pyproject.toml 或 package.json 文件中常见的依赖问题,并提出小而便于审阅的修复建议。
first-reader
144k帮你的智能体模拟真实读者的阅读体验来测试草稿,指出读者可能在哪里失去兴趣,以及他们会记住什么。
project-graveyard
144k帮你的智能体扫描电脑上未完成的业余项目,解释每个项目停滞的原因,并挑选出值得完成的那一个。