# Multi Agent Collaboration

Use this skill when another agent's expertise or context is needed, or when the user...

- Repository: https://github.com/agentscope-ai/QwenPaw (37135 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add agentscope-ai/QwenPaw --skill multi_agent_collaboration -g -a claude-code -y`
Codex: `npx skills add agentscope-ai/QwenPaw --skill multi_agent_collaboration -g -a codex -y`
Cursor: `npx skills add agentscope-ai/QwenPaw --skill multi_agent_collaboration -g -a cursor -y`
Gemini CLI: `npx skills add agentscope-ai/QwenPaw --skill multi_agent_collaboration -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

1. **If the user explicitly requests invoking another agent, prioritize following the request**
2. **Otherwise, if you can do it yourself, do not invoke another agent**
3. **Check agents before invoking -- do not guess IDs**
4. **When context continuation is needed, you must pass `--session-id`**
5. **Do not call back the source agent**

---

## Most Common Commands

### 1) First Query Available Agents

```bash
qwenpaw agents list
```

### 2) Start a New Conversation (Real-time Mode)

```bash
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.

```bash
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

The rest: https://github.com/agentscope-ai/QwenPaw/blob/HEAD/src/qwenpaw/agents/skills/multi_agent_collaboration-en/SKILL.md
