multi_agent_collaboration
它能做什么
这项技能让一个智能体与另一个智能体共同完成任务。适用于专家的观点或工作区有用的复杂工作。
适用场景
- ✓当另一个智能体的专业知识能帮助你更好地完成任务的时候。
- ✓当你需要存放在另一个智能体工作区中的文件或上下文的时候。
- ✓当你明确要求某个指定的智能体参与工作的时候。
技能链接
https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/multi_agent_collaboration-en/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让研究智能体检查我的分析,因为它有源文件。”
每周 5 个新技能,1 分钟读完。
工作原理
它会列出可用的智能体,然后与选定的智能体开始双向聊天。回复会返回,并通过会话 ID 使对话持续进行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Multi-Agent Collaboration
When to Use
Use this skill when you need another agent's expertise, context, workspace content, or collaborative support. If the user explicitly asks a specific agent to participate/assist/answer, you should also use this skill.
Should Use
- The current task is clearly better suited for a specialized agent
- You need another agent's workspace / files / context
- You need a second opinion or expert review
- The user explicitly asks for a specific agent to participate or to invoke another agent
Should Not Use
- You can complete the task on your own and the user has not explicitly asked to invoke another agent
- It is just a normal Q&A that does not require a specialized agent
- Information is insufficient -- you should ask the user for clarification first
- You just received a message from Agent B -- do not call Agent B again to avoid loops
Decision Rules
- If the user explicitly requests invoking another agent, prioritize following the request
- Otherwise, if you can do it yourself, do not invoke another agent
- Check agents before invoking -- do not guess IDs
- When context continuation is needed, you must pass
--session-id - Do not call back the source agent
Most Common Commands
1) First Query Available Agents
qwenpaw agents list
2) Start a New Conversation (Real-time Mode)
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--text "[Agent <your_agent> requesting] ..."
3) Submit a Complex Task (Background Mode)
Complex tasks include: data analysis, report generation, batch processing, external API calls, etc.
qwenpaw agents chat --background \
--from-agent <your_agent> \
--to-agent <target_agent> \
--text "[Agent <your_agent> requesting] ..."
Output:
[TASK_ID: xxx-xxx-xxx]
[SESSION: ...]
4) Query Background Task Status
qwenpaw agents chat --background --task-id <task_id>
Important: Do not query frequently! After submitting a task:
- Do not block - Continue handling other tasks or work
- Wait a reasonable time before querying - Choose based on task complexity:
- Simple analysis: query after 10-20 seconds
- Complex analysis: query after 30-60 seconds
- Batch processing: query after 1-3 minutes
- During the wait - You can reply to the user, handle other requests, or execute other tasks
5) Continue an Existing Conversation
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--session-id "<session_id>" \
--text "[Agent <your_agent> requesting] ..."
Key points:
- Not passing
--session-id= new conversation - Passing
--session-id= continue conversation (context preserved) - Use
--backgroundfor complex tasks; record the task_id after submission
Task Mode Selection
Real-time Mode vs Background Mode
| Task Type | Mode to Use | Command |
|---|---|---|
| Simple quick query | Real-time mode | qwenpaw agents chat |
| Complex task (data analysis, batch processing, etc.) | Background mode | qwenpaw agents chat --background |
Examples of complex tasks:
- Analyzing large amounts of data or log files
- Generating detailed reports
- Batch processing files (10+ files)
- Calling slow external APIs
- Independent tasks that need parallel execution
Decision criteria: If you are unsure how long a task will take, or if the task is complex, prefer background mode.
Minimal Workflow
Real-time Mode Workflow
1. Determine whether another agent is needed, or whether the user explicitly requested it
2. qwenpaw agents list
3. qwenpaw agents chat to start a conversation
4. Record [SESSION: ...] from the output
5. Include --session-id when context continuation is needed later
Background Mode Workflow
1. Determine whether the task is complex (data analysis, report generation, etc.)
2. qwenpaw agents list
3. qwenpaw agents chat --background to submit the task
4. Record [TASK_ID: ...] from the output
5. Continue handling other work
6. Wait a reasonable time (30-60 seconds) before querying status
7. Use --background --task-id to query results
Key Rules
Required Parameters
qwenpaw agents chat must include all of the following:
--from-agent--to-agent--text
Identity Prefix
Messages should begin with the following prefix:
`
常见问题
它能联系没有先查找过的智能体吗?
不能。技能会先查找可用的智能体,以免猜测 ID。
它适用于简单问题吗?
不适用。如果任务可以独自完成,智能体就会自己完成,而不会让其他智能体参与。
它如何避免循环?
它不会立即回调刚刚给它发消息的那个智能体。
详情
作者的原始描述
Use this skill when another agent's expertise or context is needed, or when the user explicitly asks to involve another agent. First list agents, then use qwenpaw agents chat for two-way communication with replies.
repo: agentscope-ai/QwenPaw
热度
- GitHub 星标
- 37k
- 排名
- #7582
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
terraform-skill
37k帮你的智能体编写、测试和审查 Terraform 或 OpenTofu 基础设施代码,涵盖模块、CI/CD、安全扫描和状态问题。
computer_use
37k当没有直接工具能完成工作时,让你的智能体通过观察屏幕、点击并检查每一步结果,来操作正在运行的 Windows 或 macOS 应用。
browser
37k通过 QwenPaw Browser SDK 让你的智能体操作真实的网页浏览器,读取页面、对页面执行操作,并在声称成功前检查结果。
channel_message
37k在找到正确的目的地之后,让你的智能体向特定的聊天频道或会话发送单向消息,例如任务完成的提醒。