review-multi-agent-orchestration
它能做什么
这个工具会检查由多个智能体(例如主管型、群体型或规划型)组成的 AI 系统是如何组织任务的。它会查看任务定义是否清晰、智能体之间的沟通是否顺畅,以及系统能否妥善处理错误或被中途打断。
适用场景
- ✓当你为一个复杂任务规划由多个智能体组成的 AI 系统时。
- ✓当你引入新的智能体之间的沟通或控制方式时。
- ✓当你排查重复执行任务或智能体卡住等问题时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/review-multi-agent-orchestration/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查负责客服的 AI 系统的方案。看看每个智能体的任务是否清晰,以及它们能否正确沟通。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析系统的设计,并把它当作一个状态机来看待。它会检查每个步骤是否都有明确的负责人,步骤之间的转换是否安全,以及最终结果能否顺利达成而不出问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Review Multi-Agent Orchestration
Overview
Review an orchestration as a distributed state machine, not as a list of agent roles. The goal is to prove that every task has one owner, every state transition has one authority, and every terminal outcome is reachable without duplicate effects, lost work, or unbounded loops.
This skill reviews a design or implementation. Do not launch workers, mutate queues, cancel runs, change production configuration, or deploy fixes unless the user separately requests implementation.
When to Use
- Reviewing supervisor/worker, planner/executor, debate, swarm, graph, or hierarchical Agent designs.
- Introducing parallel branches, subagents, MCP tools, durable execution, memory, checkpoints, or human-in-the-loop gates.
- Diagnosing duplicate work, stale context, deadlocks, livelocks, branch races, runaway retries, or ambiguous ownership.
- Deciding whether a complex task should be parallel, sequential, delegated, or kept in one agent.
Do not use it for a single independent tool call or a simple pipeline with no concurrency, shared state, retry, or delegation boundary.
Capture the Orchestration Contract
Request or derive:
- business goal, success criteria, and non-goals;
- task graph with stable task IDs and dependency edges;
- agent roles, capabilities, permissions, tools, and sandbox boundaries;
- state schema, source of truth, ownership, versioning, and persistence;
- message envelopes and artifact handoff contracts;
- dispatch, join, retry, timeout, cancellation, compensation, and escalation policies;
- token, cost, concurrency, wall-clock, and external-effect budgets;
- terminal states and evidence required to enter them.
Mark each field as declared, inferred, or missing. Never invent framework behavior from role names such as "supervisor" or "validator."
Decide Whether Multi-Agent Execution Is Justified
Multi-agent execution is justified when tasks have independently verifiable outputs and can be isolated by files, artifacts, permissions, or read-only scopes. Keep work sequential when one branch consumes another's evolving output, all workers must edit the same state, or coordination cost exceeds the expected parallel gain.
Score each candidate task:
| Dimension | Parallel-safe evidence |
|---|---|
| Dependency | Inputs are frozen before dispatch |
| Ownership | One writer owns each artifact or state partition |
| Verification | Output has a local acceptance contract |
| Context | Handoff fits a bounded message or immutable artifact |
| Side effects | Effects are absent, isolated, or idempotent |
| Failure | Failure can be contained without corrupting siblings |
If any dimension is unresolved, recommend serialization or an explicit coordination mechanism rather than optimistic concurrency.
Model the State Machine
Represent task state explicitly:
pending -> ready -> leased -> running -> succeeded
| |-> retry_wait -> ready
| |-> needs_human
| |-> failed
| |-> cancelled
|-> lease_expired -> ready
For every transition record:
- authorized actor;
- compare-and-set precondition or expected state version;
- persisted fields and artifact references;
- emitted event and deduplication key;
- budget consumed;
- timeout or lease behavior;
- compensation or recovery path.
Reject designs where workers overwrite the whole shared state object or where "done" is a free-form message rather than a validated transition.
Review Task and State Ownership
Each task needs one active lease owner, a fencing token or monotonically increasing attempt, and a stable idempotency key for external effects. A retry may repeat computation, but it must not repeat a committed effect.
Use one of these state patterns deliberately:
- Single-writer coordinator: workers return proposals or artifacts; only the coordinator mutates canonical state.
- Partitioned state: each worker owns a disjoint namespace; a joiner writes the aggregate.
- Event log with reducers: workers append immutable events; deterministic reducers derive state.
Flag shared checkout edits, last-write-wins JSON blobs, mutable global memory, and unversioned summaries as collision risks.
Review Dispatch and Handoffs
A dispatch envelope should bind:
{
"run_id": "run-7",
"task_id": "backend-3",
"attempt": 2,
…
常见问题
这里的“编排”(orchestration)是什么意思?
可以把它想象成乐团的指挥。在这里,它指的是 AI 系统如何管理和协调多个“智能体”(即一个个小型 AI 助手),让它们共同完成一项更大的任务。
为什么要审查“契约”?
“契约”定义了智能体之间协作的规则,包括每个智能体能做什么、如何沟通,以及出错时怎么办。审查它能确保大家理解并遵守同一套规则。
什么是“终止状态”?
这是任务或整个 AI 系统可能的最终结果,比如“成功”、“失败”或“已取消”。审查的目的是确保系统能够可靠地进入这些状态。
详情
作者的原始描述
Use when a supervisor, swarm, graph, planner-worker system, or parallel agent workflow needs review for task boundaries, shared state, branch joins, retries, cancellation, context handoffs, budgets, deadlocks, or human escalation before implementation or production rollout.
热度
- GitHub 星标
- 48k
- 排名
- #5634
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。