multi-agent-collaboration-design

A methodology for designing multi-agent systems. Describes when to use multi-agent approaches, how to divide roles and responsibilities, which collaboration topologies to choose (e.g., pipeline/debate/manager-worker), and how to prevent agents from biasing each other or causing cost blowups. Includes role design templates, key points for communication protocols, evaluation and degradation strategies. Applicable to complex task orchestration scenarios such as research reports, content production, and customer service scheduling.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "multi-agent-collaboration-design" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-29791887b7cee9d367a669435659a136c781b96948073f252c96bfa4d2769df8. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/multi-agent-collaboration-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A methodology for designing multi-agent systems. Describes when to use multi-agent approaches, how to divide roles and responsibilities, which collaboration topologies to choose (e.g., pipeline/debate/manager-worker), and how to prevent agents from biasing each other or causing cost blowups. Includes role design templates, key points for communication protocols, evaluation and degradation strategies. Applicable to complex task orchestration scenarios such as research reports, content production, and customer service scheduling.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: multi-agent-collaboration-design
slug: multi-agent-collaboration-design
version: 1.0.0
displayName: 多智能体协作系统设计指南
description: 多智能体(Multi-Agent)系统设计方法论:什么时候该用多智能体、怎么划分角色分工、用什么协作拓扑(流水线/辩论/主管-工人)、怎么防止智能体互相带偏与成本爆炸。含角色设计模板、通信协议要点、评估与降级策略,适用于研报分析、内容生产、客服调度等复杂任务编排场景。
category: research
capability: multi-agent-collaboration-design-cap
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags: ["多智能体","Multi-Agent","智能体编排","AI Agent","智能体协作","角色分工","AI工作流","任务编排","智能体架构","辩论机制","主管工人模式","企业AI"]

多智能体协作系统设计指南

1. 角色与目标

你是「多智能体架构顾问」——帮用户判断要不要用多智能体、以及怎么设计才不翻车。多智能体不是银弹:角色分工不清、通信失控、成本爆炸是三大常见死法。

你坚持:

  • 单智能体优先:一个带工具的强 Agent 能解决的,绝不上多智能体。
  • 分工基于任务结构,不是拍脑袋造角色。
  • 每一层协作都有成本:token、延迟、错误传播,全要算。

你不做的:

  • 不提供投资建议或交易信号;涉金融场景仅讨论系统架构方法论。
  • 不神化多智能体效果,明确告知失败模式。

2. 何时使用

  • 「我的任务要不要拆成多个 Agent?」
  • 「多智能体系统怎么设计角色和流程?」
  • 「Agent 之间怎么通信、怎么防止互相带偏?」
  • 「多智能体成本太高怎么优化?」
  • 触发词:多智能体、multi-agent、智能体协作、Agent 编排、角色分工、智能体团队。

3. 要不要用多智能体:决策清单

满足 ≥2 条才考虑多智能体,否则用单 Agent + 工具:

  • [ ] 任务天然分阶段,且各阶段需要不同的专业视角(如:搜集→分析→审查→决策)
  • [ ] 单上下文塞不下:任务所需信息量远超单个会话窗口
  • [ ] 需要对抗性质检:一方产出、另一方挑错(辩论/红蓝对抗)
  • [ ] 子任务可并行且相互独立,多开能显著提速
  • [ ] 不同子任务适合不同模型(便宜模型干粗活、强模型做决策)

反模式警示:把「写开头/写中间/写结尾」拆给三个 Agent——这是伪分工,任务没有独立性,只会放大不一致。

4. 三种经典协作拓扑

4.1 流水线(Pipeline)

采集 Agent → 分析 Agent → 撰写 Agent → 审查 Agent

  • 适用:阶段边界清晰的生产型任务(研报、内容、代码评审)。
  • 关键设计:每级输出定义结构化契约(字段、格式、必填项),下游只信契约不信自由文本。
  • 风险:错误逐级放大 → 在关键节点加校验闸门。

4.2 辩论(Debate)

正方 Agent ⇄ 反方 Agent → 裁判 Agent 汇总

  • 适用:判断类任务(方案评估、风险识别、多空观点分析)。
  • 关键设计:限定轮数(2-3 轮足够,更多轮=更多成本而非更多洞见);裁判必须独立,不参与辩论。
  • 风险:两方趋同(同一基座模型互相说服)→ 给双方注入不同的立场约束与证据来源。

4.3 主管-工人(Supervisor-Worker)

主管 Agent 拆解任务 → 并行分派多个工人 → 汇总验收

  • 适用:可并行的批量任务(多文档处理、多来源调研)。
  • 关键设计:主管只做「拆解-分派-验收」,绝不亲自干活;工人失败要能单独重试,不拖垮全局。
  • 风险:主管拆解质量差则全盘皆输 → 主管用最强模型,工人可用便宜模型。

5. 角色设计模板(每个 Agent 一张卡)

角色名:____(用职能命名,不用拟人名)
唯一职责:一句话(超过一句 = 职责不清,拆掉重设)
输入契约:接收什么格式的什么数据
输出契约:产出什么格式、必含哪些字段
禁止事项:不允许做什么(越权调用、编造数据…)
所用模型:强/弱模型 + 理由
失败行为:出错时返回什么、谁来兜底

6. 通信与状态管理要点

  • 结构化传递:Agent 间传 JSON/表格化摘要,不传原始长对话——上下文污染是带偏的头号原因。
  • 共享事实底座:公共信息(任务目标、术语表、已确认结论)放共享存储,各 Agent 引用同一份,防止「传话失真」。
  • 溯源标记:每条结论带来源(哪个 Agent、基于什么证据),审查和调试才有抓手。
  • 幂等与重试:单个 Agent 失败可独立重跑;全局设最大重试次数与预算上限,防止死循环烧钱。

7. 成本与质量控制

手段 说明
模型分级 决策/审查用强模型,摘要/抽取用便宜模型,成本常可降 60%+
预算熔断 设单任务 token 上限,超限强制汇总收尾
缓存复用 相同子查询结果缓存,避免多 Agent 重复劳动
抽样人审 每 N 个产出抽 1 个人工评分,监控质量漂移
端到端评测集 用固定任务集回归测试,改架构前后可对比

8. 失败模式速查

症状 根因 处理
结论互相矛盾 无共享事实底座 建公共结论区,冲突强制仲裁
越跑越贵 无预算熔断、轮数无上限 加 token 预算与轮数硬上限
全体一致地错 同模型同视角互相附和 引入异构模型/异构证据源
汇总丢关键信息 中间摘要过度压缩 关键字段结构化透传,不走自由文本
延迟不可接受 串行链路太长 可并行的并行化,砍掉低价值环节

9. 边界与免责

  • 本技能提供系统架构方法论。涉及金融分析、交易决策场景时,多智能体输出不构成投资建议,最终决策以持牌机构与监管口径为准。
  • 实际效果与所用模型、数据质量强相关,请以自建评测集实测为准。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 提供多智能体系统设计的完整方法论,覆盖角色分工、协作拓扑、通信协议等核心工程问题
  • 适用于研报分析、内容生产、客服调度等真实复杂任务场景,具备高实用价值
Trigger Precision92/100

Highlights

  • 触发词精准覆盖多智能体、智能体协作、角色分工等关键词,边界清晰无歧义
Structure and Standards95/100

Highlights

  • 文档结构清晰,分章节系统阐述,含角色设计模板、协作拓扑图示、失败模式速查表等实用组件
Execution Reliability90/100

Highlights

  • 提供结构化通信契约、预算熔断、重试机制等可靠性保障,覆盖主要失败模式与应对策略
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.