AI & agents · Automation
multi_agent_collaboration
/multi_agent_collaboration
当任务需要多个 Agent 的专业能力协同完成时,编排多 Agent 并行或串行协作,整合各方结果。
For whom
- Author
- mateaix ↗
- Repository
- mateclaw ↗
- Licence
- Apache-2.0
- Last repository change
- 27.10.2026
Assessment and security
91/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
Licence
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
当任务需要多个 Agent 的专业能力协同完成时,编排多 Agent 并行或串行协作,整合各方结果。
Original author description
当任务需要多个 Agent 的专业能力协同完成时,编排多 Agent 并行或串行协作,整合各方结果。
How it works
- 何时使用
- 两种协作模式
- 完整工作流程
- 关键规则
- 与 chatwithagent 的区别
Original SKILL.md headings · 95 lines, 223 words
SKILL.md preview
---
name: multi_agent_collaboration
version: "1.4.0"
description: "当任务需要多个 Agent 的专业能力协同完成时,编排多 Agent 并行或串行协作,整合各方结果。"
dependencies:
tools:
- listAvailableAgents
- delegateToAgent
- delegateParallel
---
# 多 Agent 协作
## 何时使用
当任务明显需要多个专业 Agent 共同完成,或用户明确要求多 Agent 协作时使用。
### 应该使用
- 任务可拆分为多个专业子域,每个子域有对应 Agent
- 多个独立子任务可以并行执行(节省时间)
- 需要来自不同 Agent 的结果进行综合分析
- 用户明确要求"让 A 和 B 一起做"
### 不应使用
- 一个 Agent 可以完成,无需分工
- 只是简单咨询,用 `chat_with_agent` 即可
- 刚收到某 Agent 的消息,不要立刻回调它(防死循环)
## 两种协作模式
### 模式一:串行(有依赖关系)
B 的任务需要 A 的结果时使用:
```
# 第一阶段:A 完成
result_a = delegateToAgent(
agentName="research-agent",
task="[来自 Agent coordinator 的请求] 收集最新 AI 大模型基准测试数据,返回原始数据表格。"
)
# 第二阶段:B 基于 A 的结果处理
result_b = delegateToAgent(
agentName="data-analyst",
task="[来自 Agent coordinator 的请求] 基于以下数据生成分析报告和可视化建议:\n\n" + result_a
)
```
### 模式二:并行(互相独立)
多个子任务之间没有依赖时使用,最多同时 3 个:
```
results = delegateParallel(
tasksJson="[
{\"agentName\": \"research-agent\", \"task\": \"[来自 Agent coordinator 的请求] 搜索竞品 A 的最新功能更新\"},
{\"agentName\": \"data-analyst\", \"task\": \"[来自 Agent coordinator 的请求] 分析我们产品上月用户留存数据\"},
{\"agentName\": \"writer-agent\", \"task\": \"[来自 Agent coordinator 的请求] 起草本次竞品分析报告的大纲\"}
]"
)
```
所有任务完成后一次性返回全部结果,再由当前 Agent 整合。
## 完整工作流程
### 第一步:查询可用 Agent
```
listAvailableAgents()
```
根据各 Agent 的描述分配任务。
### 第二步:判断串行 or 并行
| 判断条件 | 模式 |
|---------|------|
| 子任务 B 依赖子任务 A 的结果 | 串行 |
| 子任务互相独立,可同时进行 | 并行 |
| 混合(部分有依赖) | 先并行无依赖任务,再串行有依赖任务 |
### 第三步:分配并执行
使用对应模式(见上)。
### 第四步:整合结果
由当前 Agent(编排者)负责整合所有 Agent 的返回结果,形成最终回复。**不要把整合工作再委托给某个子 Agent。**
## 关键规则
- 任务说明中加 `[来自 Agent <名称> 的请求]` 帮助目标 Agent 识别来源
- 并行任务数量不超过 3 个;超过时按优先级分批
- 不让两个 Agent 互相调用对方(会形成死循环)
- 整合由编排者负责,不再向下委托
- 如需上下文连贯,在 `task` 中附带前一阶段的关键结论
## 与 chat_with_agent 的区别
| 技能 | 场景 |
|------|------|
| `chat_with_agent` | 一对一,咨询或单任务委托 |
| `multi_agent_collaboration` | 一对多,多 Agent 分工、并行或串行编排 |
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · mateaix/mateclaw | 91 | Apache-2.0 |
| agentscope-ai/qwenpaw | 90 | Apache-2.0 |
| agentscope-ai/qwenpaw | 90 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 9a3ac36205ba (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100parallel-vibe
当用户明确要求并行或串行启用多个 Agent,或上游 Skill 声明需要统一的多 Agent 执行底座时使用。负责 Agent 的创建、隔离、调度、回收和汇总。⚠️ 不适用:普通 shell 并发、单元测试并发、下载任务,或要求强隔离的敏感数据处理。 - 100agent-teams
Use when facing complex tasks needing parallel collaboration between multiple agents with shared state, coordination, and direct inter-agent communication. Triggers on "создай команду", "agent team", "параллельная работа агентов", "team of agents - 95multi-agent
Multi-Agent Orchestration - 蚁群仿生设计,定义Agent角色、生命周期、信息素通信、任务分解、冲突解决。当需要多Agent并行协作时路由到此。 - 95multi-agent
Multi-Agent Orchestration - 蚁群仿生设计,定义Agent角色、生命周期、信息素通信、任务分解、冲突解决。当需要多Agent并行协作时路由到此。 - 90multi-agent-orchestrator
当任务涉及多子代理(Subagents)分工、/swarm(或 /teamwork)多代理并行协作、默认派 3.8f(model: flash)子代理干脏活/只读验证、大型代码库跨模块检索、需要保持主对话上下文干净、需要利用独立工作区(branch/share)做无污染实验、或需要通过 MCP 桥遥控外部客户端 Agent(如 dsh-bridge / agy-agent-bridge / dsh-crew / tianshu)时使用。指导何时及如何委派 flash-verifier、research、项目级验证子代理、自建 subagent 以及外部 MCP。 - 100peer-agent-collaboration
Use when the user wants Claude Code, Codex, or other AI coding/business agents to work together as peers. This skill should be used whenever the user mentions coordinating Claude Code and Codex, agent handoffs, multi-agent workflows, parity, respect, pushback between agents,…