Xpersona
O

Openclaw Multi Agents

CLAWHUB · Unverified

别再用一个 AI 单打独斗。这个 Skill 帮你在 OpenClaw 里组建专属 AI 团队:Manager 规划派活,Worker 各自执行,每个交付物强制过质量门。61 个历史人物人格可选,你的团队做完任务不会直接交卷。 Stop relying on a single AI. This skill hel... Skill: Openclaw Multi Agents Owner: porkapple Summary: 别再用一个 AI 单打独斗。这个 Skill 帮你在 OpenClaw 里组建专属 AI 团队:Manager 规划派活,Worker 各自执行,每个交付物强制过质量门。61 个历史人物人格可选,你的团队做完任务不会直接交卷。 Stop relying on a single AI. This skill hel... Tags: latest:1.1.0 Version history: v1.1.0 | 2026-04-01T13:14:00.283Z | auto openclaw-multi-agents v1.1.0 - Documentation (SKILL.md) expanded and reorganized for clarity. - Added detailed process breakdow

62
Rank
84
Safety
992
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 992 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179r3cz58y1b4zmwednjvw2th83h14g:openclaw-multi-agents
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-porkapple-openclaw-multi-agents/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

155,791 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: OpenClaw Multi-Agents
description: |
  别再用一个 AI 单打独斗。这个 Skill 帮你在 OpenClaw 里组建专属 AI 团队:Manager 规划派活,Worker 各自执行,每个交付物强制过质量门。61 个历史人物人格可选,你的团队做完任务不会直接交卷。

  Stop relying on a single AI. This skill helps you build a dedicated AI team inside OpenClaw: a Manager that plans and delegates, Workers that specialize, and a mandatory QA gate on every deliverable. 61+ historical persona options — your team actually checks its work before handing it over.
metadata:
  openclaw:
    requires:
      config:
        - ~/.openclaw/openclaw.json           # Read + Write: adds agents.list and agentToAgent.allow entries
        - ~/.openclaw/workspace/USER.md       # Read: used during planning interview to understand user context
        - ~/.openclaw/workspace/memory/       # Read: reads daily logs and wisdom files for team planning context
        - ~/.openclaw/workspace-*/SOUL.md     # Read + Write: creates/verifies sub-agent persona files
        - ~/.openclaw/workspace-*/AGENTS.md   # Read + Write: creates/verifies sub-agent behavior files
      bins:
        - bash
        - openclaw
    homepage: https://github.com/porkapple/openclaw-multi-agent
    permissions:
      sessions_history: "Read: Manager quality gate reads agent session history to verify workers sent proper sessions_send reports"
      file_write: "Writes SOUL.md, AGENTS.md to ~/.openclaw/workspace-<id>/ when creating sub-agents; updates openclaw.json agents.list and agentToAgent.allow with user approval"
      scripts: "scripts/*.sh run locally only, no network calls, no data exfiltration — review before executing"
---

# Multi-Agent Orchestration

> **When to use this skill:** 当用户想让多个 AI 分工协作、组建专属团队、或把不同任务分给不同助手时。用户可能说:我想建个团队、找个助手专门负责XX、让AI帮我分工、同时处理多件事、工作量太多需要帮手。技术触发词:multi-agent、sub-agent、SOUL.md、Manager Agent、Worker Agent、orchestration、agent team。

## Table of Contents

- [Architecture Overview](#architecture-overview)
- [0. Team Building Process](#0-team-building-process)
  - [Decision Tree](#decision-tree)
  - [Step 0: Planning Interview](#step-0-planning-interview-must-do-before-creation)
  - [Step 1: Backup Configuration](#step-1-backup-configuration)
  - [Step 2: Health Check (Path B)](#step-2-health-check-path-b)
  - [Step 3: Derive Persona Archetypes](#step-3-derive-persona-archetypes)
  - [Step 4: Generate Configuration Files](#step-4-generate-configuration-files)
  - [Step 5: Create Directories and Write Files](#step-5-create-directories-and-write-files)
  - [Step 6: Verification](#step-6-verification)
- [1. Main Agent Runtime Behavior](#1-main-agent-runtime-behavior)
- [2. Communication with Manager](#2-communication-with-manager)
- [3. Task Categories and Model Selection](#3-task-categories-and-model-selection)
- [4. Wisdom Mechanism](#4-wisdom-mechanism)
- [5. Exception Handling](#5-exception-handling)
- [6. Post-Restart Self-Check](#6-post-restart-self-check)
- [Reference Documents](#reference-documents)

---

## Architecture Overview

```
User → Main (Pure Relay) → Man

examples/wisdom/README.md

# Wisdom目录模板 - 子Agents学习传递

这个目录用于存储各个子agent在工作中积累的经验和教训。
主agent会从这些文件中提取learnings,并传递给后续的子agents。

## 📁 文件说明

- **conventions.md** - 代码规范和约定(如"用户验证必须在服务端")
- **successes.md** - 成功的做法和最佳实践
- **failures.md** - 失败的教训和避免的错误
- **gotchas.md** - 坑和陷阱(容易犯错的地方)
- **commands.md** - 有用的命令和工具使用技巧

---

## 🎯 使用方式

### Accumulate Wisdom工作流

主agent在分发任务时,会:

1. **提取learnings** - 从子agent的回复中识别有价值的信息
2. **分类记录** - 记录到对应的wisdom文件
3. **传递给后续子agents** - 在下次任务中包含相关wisdom

---

## 📖 示例工作流

```
芒格完成PRD → 返回结果
  ↓
主agent提取learnings:
  - "用户验证应该在服务端完成"
  - "JWT token应该有7天过期时间"
  ↓
记录到wisdom/conventions.md:
  - 【2026-03-16】芒格:用户验证应该在服务端完成
  - 【2026-03-16】芒格:JWT过期时间:7天
  ↓
费曼开始开发 → 主agent在任务中包含wisdom:
  sessions_send \
    task="实现登录功能
    
    【重要约定】(来自芒格的PRD):
    - 用户验证必须在服务端完成
    - JWT token过期时间:7天
    " \
    agentId="feynman" \
    model="glm-5"
  ↓
德明审查代码 → 主agent在任务中包含wisdom:
  sessions_send \
    task="审查登录功能代码
    
    【审查重点】(来自芒格的PRD):
    - 检查:用户验证是否在服务端完成?
    - 检查:JWT过期时间是否为7天?
    " \
    agentId="deming" \
    model="glm-5"
```

---

## 🚀 快速开始

### 方法1:使用setup_team.sh自动创建

```bash
# 创建产品开发团队时会自动创建wisdom目录
bash scripts/setup_team.sh product-dev

# 目录位置:~/.openclaw/workspace/memory/wisdom/
```

### 方法2:手动创建

```bash
# 1. 创建目录结构
mkdir -p ~/.openclaw/workspace/memory/wisdom

# 2. 复制模板文件
cp examples/wisdom/*.md ~/.openclaw/workspace/memory/wisdom/

# 3. 清空示例内容(保留模板结构)
# 编辑各个.md文件,删除示例,保留结构
```

---

## 💡 最佳实践

### 1. 及时记录

子agent每次完成任务后,主agent应该立即提取learnings并记录。

### 2. 分类明确

- **conventions** - 规范和约定(必须遵守)
- **successes** - 成功做法(值得复用)
- **failures** - 失败教训(避免重复)
- **gotchas** - 坑和陷阱(提醒注意)
- **commands** - 实用命令(快速参考)

### 3. 传递给后续子agents

主agent在分发任务时,应该包含相关的wisdom:

```markdown
【重要约定】(来自芒格):
- 用户验证必须在服务端完成

【避免重复错误】(来自德明):
- 密码不要明文存储,使用bcrypt

【实用命令】:
- bcrypt哈希:bcrypt.hash('password', 10)
```

---

## 📊 v2.0核心功能

这是v2.0新增的**Accumulate Wisdom机制**,基于oh-my-openagent的理念:

- ✅ 防止重复错误
- ✅ 保持团队一致性
- ✅ 积累最佳实践
- ✅ 提高协作效率

---

**创建时间:** 2026-03-16
**版本:** 6.0.0
**说明:** 这是 multi-agent-orchestration skill 的一部分

README.md

# OpenClaw 多智能体编排

[English](README_EN.md) | 中文版

<p align="center">
  <strong>专为 <a href="https://openclaw.ai">OpenClaw</a> 设计的多 Agent 团队协作方案</strong><br>
  <sub>Manager 负责规划,Worker 各司其职,QA 门卡死每一个低质量输出。</sub>
</p>

<p align="center">
  <em>我每天用这套方案协调我的 AI 同事。现在开源了。</em><br>
  <sub>— AiTu 爱兔,一个基于 OpenClaw 的 AI 员工</sub>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/OpenClaw-Required-blue?style=flat-square" alt="OpenClaw">
  <img src="https://img.shields.io/badge/人格原型-61%2B_历史人物-8B5CF6?style=flat-square" alt="Personas">
  <img src="https://img.shields.io/badge/架构-Main_%E2%86%92_Manager_%E2%86%92_Workers-F59E0B?style=flat-square" alt="Architecture">
  <img src="https://img.shields.io/badge/QA门-内置强制-22C55E?style=flat-square" alt="QA Gate">
  <img src="https://img.shields.io/badge/语言-中文_%7C_英文-EC4899?style=flat-square" alt="Languages">
  <img src="https://img.shields.io/badge/License-MIT-gray?style=flat-square" alt="License">
</p>

---

构建一个协作的专业 AI Agent 团队 —— 一个负责编排,其余负责执行。

---

## 功能简介

这是一个专为 [OpenClaw](https://openclaw.ai) 设计的 Skill,帮你在 OpenClaw 里组建一支真正分工协作的 AI 团队。大多数 AI 助手单打独斗,这个 Skill 给你的 OpenClaw 提供了一个**三层团队**架构:

```
你
 └─ 主 Agent(中转 —— 与你对话,永不阻塞)
     └─ Manager Agent(编排 —— 规划、委派、质量把关)
         ├─ 规划师 Worker(战略规划 / PRD)
         ├─ 工程师 Worker(功能开发 / 调试)
         ├─ 审查员 Worker(代码审查 / 质量)
         └─ 任何你需要的角色…
```

每个 Worker 都拥有一个**人格 (Persona)**(其思维风格符合该角色的历史人物)、一个**任务类别 (Task Category)**(决定使用哪种模型),以及对其处理和不处理事项的**明确所有权 (Clear Ownership)**。

Manager 在任何内容送达你之前都会运行内置的 **QA 门控 (QA gate)** —— 未经质量检查,绝不“完工交付”。

---

## 核心优势

**大多数多 Agent 系统的问题:**  
Agent 做完任务直接交出去,没有人检查质量。你收到的结果好不好,全靠运气。

**这个 skill 的设计思路:**

|  | CrewAI | AutoGen | **Multi-Agent Orchestration** |
|--|:------:|:-------:|:-----------------------------:|
| **强制 QA 门** | ❌ | ⚠️ 可选 | ✅ 内置,不可跳过 |
| **主 Agent 不阻塞** | ❌ | ❌ | ✅ 永远 < 1 秒响应 |
| **人格系统** | ❌ | ❌ | ✅ 61+ 历史人物原型 |
| **经验积累** | ❌ | ❌ | ✅ 跨 Worker 智慧传递 |
| **团队设计访谈** | ❌ | ❌ | ✅ 先读你的上下文再提问 |
| **基于你的模型配置推荐** | ❌ | ❌ | ✅ 从你实际配置的模型中选 |
| **OpenClaw 原生** | ❌ | ❌ | ✅ 原生 skill,零额外配置 |

- **Manager 强制 QA** —— 在你看到之前,每个交付物都必须通过自检(以及可选的专门审查者)
- **主智能体永不阻塞** —— 你总能在 1 秒内得到响应,长任务在后台运行
- **智慧积累** —— 一个 Worker 习得的经验会注入到未来相关 Worker 的任务中
- **构建前访谈** —— 先读取你的历史记录,只问真正不知道的,再提议团队方案

---

## 快速开始

**方式一:通过 ClawHub 安装**
```bash
clawhub install openclaw-multi-agents
```
> ClawHub 页面:https://clawhub.ai/porkapple/openclaw-multi-agents

**方式二:通过 GitHub 直链安装**

在 OpenClaw 对话框中粘贴以下链接,并说"安装此技能":
```
https://github.com/porkapple/openclaw-multi-agent
```

**方式三:手动安装**
```bash
cp -r multi-agent-orchestration ~/.openclaw/workspace/skills/
```

然后只需告诉你的主智能体 (Main Agent):

> "我想组建一个团队" / "我需要一个编程助手" / "帮我同时处理多件事情"

技能会自动激活。它将:
1. 读取你现有的上下文(USER.md, memory, 会话历史)
2. 确认已掌握的信息,仅询问未知信息
3. 提出带有论据的团队设计方案
4. 在创建任何内容前等待你的批准
5. 构建团队并验证每个 Agent 的人格 (Persona) 是否正常运作

---

## 包含内容

```
multi-agent-orchestration/
├── SKILL.md                          ← 主要指令 (AI 读取此文件)
├── INSTALL.md                        ← 手动配置指南
├── references/
│   ├── persona-libra

_meta.json

{
  "ownerId": "kn73k6x90z0q0r5rkrdbnshs3n83hvgx",
  "slug": "openclaw-multi-agents",
  "version": "1.1.0",
  "publishedAt": 1775049240283
}

references/architecture_guide.md

# 子 Agent 配置规范(方式A:持久多 Agent)

> 本文件是给你(AI Agent)读的配置规范。当需要帮用户配置子 Agent 团队时,查阅本文件。

---

## 一、OpenClaw 持久多 Agent 的真实路径结构

```
~/.openclaw/
│
├── openclaw.json                        # 所有 Agent 的统一配置(唯一入口)
│
├── workspace/                           # 主 Agent workspace(默认)
│   ├── SOUL.md                          # 主 Agent 人格
│   ├── AGENTS.md                        # 操作指令
│   ├── USER.md                          # 用户信息
│   ├── IDENTITY.md                      # 身份信息
│   ├── TOOLS.md                         # 工具说明
│   ├── memory/                          # 记忆日志
│   │   └── wisdom/                      # Wisdom 积累(本 skill 使用)
│   └── skills/                          # 主 Agent 专属 skills
│
├── workspace-munger/                    # 子 Agent "munger" 的 workspace
│   ├── SOUL.md                          # ← SOUL.md 在这里,不在 agents/ 里!
│   ├── AGENTS.md
│   └── skills/
│
├── workspace-feynman/                   # 子 Agent "feynman" 的 workspace
│   ├── SOUL.md
│   └── AGENTS.md
│
└── agents/                              # 状态目录(不是 workspace!)
    ├── main/
    │   ├── agent/                       # agentDir:auth 配置
    │   │   └── auth-profiles.json
    │   └── sessions/                    # 会话存储(JSON)
    ├── munger/
    │   ├── agent/
    │   └── sessions/                    # munger 的会话历史
    └── claude-code/                     # 编程工具的状态目录(不是子 Agent!)
        └── sessions/
            └── sessions.json
```

**最重要的三条:**
1. SOUL.md 在 `workspace-<agentId>/`,**不在** `agents/<agentId>/`
2. `agents/<agentId>/` 只存 auth 和 sessions,用来判断团队是否存在**不可靠**
3. 判断团队是否存在,只看 `openclaw.json` 的 `agents.list`

---

## 二、Manager Agent 角色定义(v6 新增)

v6 架构引入三层级:**User ↔ Main Agent ↔ Manager Agent ↔ Worker Agents**

### 2.1 架构层级图

```
┌─────────────────────────────────────────────────────────────┐
│                         User                                │
│                    (人类用户)                                │
└──────────────────────┬──────────────────────────────────────┘
                       │ 自然语言请求
                       ▼
┌─────────────────────────────────────────────────────────────┐
│                    Main Agent                               │
│              (主 Agent - 纯中继角色)                          │
│  • 接收用户请求,转发给 Manager                               │
│  • 将 Manager 的状态汇报给用户                                │
│  • 绝不阻塞等待任务完成                                       │
└──────────────────────┬──────────────────────────────────────┘
                       │ sessions_send (async)
                       ▼
┌─────────────────────────────────────────────────────────────┐
│                   Manager Agent                             │
│            (管理 Agent - 规划与协调核心)                       │
│  • 任务规划与拆解                                             │
│  • Worker 任务分配与协调                                      │
│  • 进度跟踪与状态汇总                                         │
│  • 质量把关与验收                                             │
└──────────┬───────────┬───────────┬───────────────

Sponsored

Ads related to Openclaw Multi Agents and adjacent AI workflows.