agent-team

Orchestrate a dynamic multi-agent team where a lead agent (opus) plans and delegates tasks to specialized worker agents (sonnet) that communicate bidirectionally. Use when tasks benefit from parallelism or specialization — code review, market research, trading signal analysis, competitive analysis, or any complex task decomposable into parallel workstreams. Triggers on phrases like "agent team", "multi-agent", "spawn agents", "parallel agents", "team of agents", "让多个agent协作", "多智能体", "agent团队".

3,891 stars

Best use case

agent-team is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Orchestrate a dynamic multi-agent team where a lead agent (opus) plans and delegates tasks to specialized worker agents (sonnet) that communicate bidirectionally. Use when tasks benefit from parallelism or specialization — code review, market research, trading signal analysis, competitive analysis, or any complex task decomposable into parallel workstreams. Triggers on phrases like "agent team", "multi-agent", "spawn agents", "parallel agents", "team of agents", "让多个agent协作", "多智能体", "agent团队".

Teams using agent-team should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/xqe-agent-team/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aa-rick/xqe-agent-team/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/xqe-agent-team/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How agent-team Compares

Feature / Agentagent-teamStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Orchestrate a dynamic multi-agent team where a lead agent (opus) plans and delegates tasks to specialized worker agents (sonnet) that communicate bidirectionally. Use when tasks benefit from parallelism or specialization — code review, market research, trading signal analysis, competitive analysis, or any complex task decomposable into parallel workstreams. Triggers on phrases like "agent team", "multi-agent", "spawn agents", "parallel agents", "team of agents", "让多个agent协作", "多智能体", "agent团队".

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Agent Team

Orchestrate a dynamic team of agents: one **Orchestrator** (opus) plans + delegates + synthesizes; multiple **Worker agents** (sonnet) execute specialized subtasks and communicate bidirectionally.

## Architecture

```
User
  └─► Orchestrator (opus)
        ├─ plans team composition dynamically
        ├─ spawns Worker A (sonnet) ──┐
        ├─ spawns Worker B (sonnet)   │ bidirectional
        ├─ spawns Worker C (sonnet) ◄─┘ via sessions_send
        └─ aggregates → final report to user
```

## Workflow

### Step 1 — Orchestrator Plans the Team

Analyze the task and define 2–4 worker roles. Each role needs:
- **Name**: short label (e.g. `researcher`, `coder`, `reviewer`)
- **Task**: specific, scoped instruction
- **Inputs needed from other workers**: what it needs to receive before finishing (for bidirectional flow)

See `references/role-patterns.md` for common role combinations per scenario.

### Step 2 — Spawn Workers

Spawn each worker as a persistent sub-agent session. **Always set `streamTo: "parent"`** so the user sees real-time output in their chat window:

```python
# Pseudocode — use sessions_spawn tool
sessions_spawn(
  task="You are the [ROLE] agent. [SPECIFIC TASK]. 
        When you need input from another agent, send a message to session [SESSION_KEY].
        Report your final result clearly structured.",
  runtime="subagent",
  mode="session",          # persistent — can receive follow-up messages
  model="sonnet",          # worker uses sonnet
  label="worker-[role]",
  streamTo="parent"        # stream output to user's chat in real time
)
```

Spawn all independent workers in **parallel** (single tool call block). Only spawn sequentially when a worker strictly depends on another's output.

### Step 3 — Bidirectional Communication

Workers can message each other via `sessions_send`. The orchestrator:
1. Gives each worker the session keys of peers it may need to consult
2. Monitors via `subagents(action=list)` — check on-demand, not in a loop
3. Can steer any worker mid-task: `subagents(action=steer, target=<label>, message=<redirect>)`

Direct worker-to-worker message pattern:
```
Worker A finishes partial result
  → sessions_send(sessionKey=worker-B-key, message="Here's my output: ...")
Worker B incorporates it, finishes
  → sessions_send(sessionKey=orchestrator-key, message="Done: ...")
```

### Step 3.5 — Relay Progress to User (Orchestrator Broadcast)

After each worker completes, send a status update to the user before moving on:

```
"[worker-researcher] 完成 ✅ — 找到 12 条相关数据,传给 worker-analyst"
"[worker-analyst] 处理中... 等待 worker-researcher 结果"
"[worker-reviewer] 完成 ✅ — 发现 3 个风险点"
```

This gives the user full visibility into the team's progress without needing to check logs manually.

### Step 4 — Aggregate Results

Once all workers report back, the orchestrator:
1. Synthesizes outputs into a coherent final answer
2. Resolves conflicts between workers' findings
3. Delivers structured report to the user

## Model Config

| Role | Model | Rationale |
|------|-------|-----------|
| Orchestrator | Current session model (Jarvis / Friday / Jupiter) | Complex planning + synthesis |
| Workers | `sonnet` | Cost-efficient execution |

**Orchestrator identities:**
- **Jarvis** — technical tasks (code, architecture, systems)
- **Jupiter** — trading strategy, quant analysis
- **Friday** — admin, research, daily tasks

Override worker model when a subtask needs deeper reasoning: pass `model="anthropic/claude-opus-4-6"` to that specific spawn.

## Common Scenarios

See `references/role-patterns.md` for ready-made role sets:
- **Code review**: `reader` + `security-reviewer` + `refactor-planner`
- **Market research**: `data-analyst` + `sentiment-analyst` + `risk-assessor`
- **Trading signals**: `technical-analyst` + `fundamental-analyst` + `macro-watcher`

## Key Rules

- **Spawn independent workers in one parallel block** — never sequential unless there's a hard dependency
- **No tight poll loops** — use `subagents(action=list)` only when checking status on-demand
- **Session cleanup**: after aggregation, kill idle workers with `subagents(action=kill, target=<label>)`
- **Scoped tasks**: each worker gets a single, well-defined responsibility — avoid overlap
- **Context isolation**: workers don't share the orchestrator's full context; pass only what's needed

Related Skills

mooteam

3891
from openclaw/skills

MooTeam (moo.team) API v1 for OpenClaw: projects, teams, tasks, drafts, comments, workflows, statuses, labels, timer and time logs, activity logs. Requires MOOTEAM_API_TOKEN and MOOTEAM_COMPANY_ALIAS. Install from ClawHub (clawhub.ai).

Auto Create AI Team

3891
from openclaw/skills

## Description

TeamClaw

3891
from openclaw/skills

A high-performance Agent subsystem for complex multi-agent orchestration. It provides a visual workflow canvas (OASIS) to coordinate OpenClaw agents, automated computer use tasks, and real-time monitoring via a dedicated Web UI. Supports Telegram/QQ bot integrations and Cloudflare Tunnel for secure remote access.

agent-team-orchestration

3891
from openclaw/skills

Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4) Establishing review and quality gates, (5) Managing async communication and artifact sharing between agents.

team-task-dispatch

3891
from openclaw/skills

Coordinate team task execution on OpenAnt. Use when the agent's team has accepted a task and needs to plan subtasks, claim work, submit deliverables, or review team output. Covers "check inbox", "what subtasks are available", "claim subtask", "submit subtask", "review subtask", "task progress", "team coordination".

manage-teams

3891
from openclaw/skills

Create, join, and manage teams on OpenAnt. Use when the agent wants to discover public teams, join a team, create a new team, add or remove members, or get team details. Covers "find teams", "join a team", "create team", "team members", "manage my team".

Agent Team Orchestration Skill

3891
from openclaw/skills

## Trigger

team

3891
from openclaw/skills

The Autonomous Orchestration Framework (AOF). Defining the hierarchy, collaboration logic, and reward distribution for human-agent hybrid organizations and task-force swarms.

team-collab-skill

3891
from openclaw/skills

快速搭建多 Agent 协作系统。创建产品/研发/运营团队,支持持久化、任务路由、知识提取、并行协作。

ms-outlook-teams-assistant

3891
from openclaw/skills

Track and nag about Microsoft Outlook email and (optionally) Microsoft Teams messages on a Windows machine, without relying on web versions. Use when the user asks to: (1) monitor inbox/mentions and remind them on Telegram/Teams until dismissed, (2) draft short, personable, low-jargon email replies from an existing Outlook thread, (3) surface action items from the last N days (default 7). Works via Outlook Desktop automation (COM) and optionally Microsoft Graph for Teams if configured.

claw-team-builder

3891
from openclaw/skills

Agent Team 规划与配置工具。通过多轮交互澄清需求,自动创建 Agent 配置、工作空间、Bootstrap 文件。 触发场景: - 用户说"创建新 Agent" / "新建 bot" / "配置多个 bot" - 用户说"规划 agent team" / "我需要几个不同的 agent" - 用户说"添加一个 agent" / "帮我建一个新 agent" - 用户提到需要不同场景使用不同的 AI 角色 功能: 1. 需求澄清 - 引导用户描述使用场景和 Agent 定位 2. 配置读取 - 自动读取现有 openclaw.json,分析已有配置 3. 方案设计 - 推荐 Agent 配置方案,检测冲突 4. 自动创建 - 创建目录、文件、更新配置 5. 配置验证 - 确保配置正确可用

ai-workflow-red-team-lite

3891
from openclaw/skills

对 AI 自动化流程做轻量红队演练,聚焦误用路径、边界失败和数据泄露风险。;use for red-team, ai, workflow workflows;do not use for 输出可直接滥用的攻击脚本, 帮助破坏系统.