Chuyển đến nội dung
Skillpedia
Agent37k · #7582

multi_agent_collaboration

Skill này làm gì

Skill này cho phép một agent làm việc cùng một agent khác trong một tác vụ. Skill dành cho công việc phức tạp, nơi góc nhìn hoặc không gian làm việc của một chuyên gia là hữu ích.

Khi nào nên dùng

  • ✓Khi chuyên môn của một agent khác có thể giúp bạn hoàn thành tác vụ tốt hơn.
  • ✓Khi bạn cần file hoặc ngữ cảnh được lưu trong không gian làm việc của một agent khác.
  • ✓Khi bạn yêu cầu rõ ràng một agent cụ thể tham gia vào công việc.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/multi_agent_collaboration-en/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Nhờ agent nghiên cứu kiểm tra phân tích của tôi, vì nó có các file nguồn.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các agent có sẵn, rồi mở một cuộc trò chuyện hai chiều với agent đã chọn. Phản hồi được trả về, và ID phiên giữ cho cuộc trò chuyện tiếp tục.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

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:

  1. Do not block - Continue handling other tasks or work
  2. 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
  3. 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 --background for 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:

`

Câu hỏi thường gặp

Skill có liên lạc với agent chưa được kiểm tra không?

Không. Skill tra cứu các agent có sẵn trước để không đoán ID.

Skill có dành cho câu hỏi đơn giản không?

Không. Nếu tác vụ có thể làm một mình, agent sẽ làm mà không kéo agent khác vào.

Skill tránh vòng lặp như thế nào?

Nó không gọi lại agent vừa gửi tin nhắn cho mình.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
37k
Vị trí xếp hạng
#7582
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự