智能体团队管理:编排多智能体工作流 - Openclaw Skills

作者:互联网

2026-03-30

AI教程

什么是 智能体团队管理技能?

智能体团队管理技能为管理 AI 智能体的协作生态系统提供了一个结构化的框架。通过维护智能体角色、技术专长和局限性的详细概况,它实现了高效的任务路由和委派。这确保了每项任务都由最合格的智能体处理,在 Openclaw Skills 环境中模拟了专业的人类团队结构。

它作为复杂多智能体运营的组织支柱,允许无缝扩展和协调。通过利用中央注册表,开发人员可以确保智能体不仅是孤立工作的,而是针对特定项目要求进行优化的同步团队的一部分。

下载入口:https://github.com/openclaw/skills/tree/main/skills/realqiyan/agent-team-skill

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install agent-team-skill

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 agent-team-skill。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

智能体团队管理技能 应用场景

  • 在 Openclaw Skills 中维护所有可用 AI 智能体及其独特技能组合的集中注册表。
  • 根据专业领域标签自动识别最适合特定技术任务的智能体。
  • 将新的专业智能体入驻到现有的自动化工作流中。
  • 管理智能体可用性和角色分配,防止复杂项目中的瓶颈。
  • 审计团队能力以识别技术专长方面的差距。
智能体团队管理技能 工作原理
  1. 通过使用 list 命令查询当前的团队组成来初始化环境,以了解可用资源。
  2. 通过命令行界面定义或更新智能体概况,包括其特定角色、启用状态和专业领域。
  3. 分析传入的任务,并将其与注册团队成员的专业知识和标签进行交叉引用。
  4. 将执行任务委派给识别出的专家智能体,同时跟踪其特定的优缺点以进行未来优化。
  5. 将所有更改持久化到本地数据存储,以确保不同会话之间的连续性。

智能体团队管理技能 配置指南

确保您的系统上安装了 Python 3。要设置和管理您的团队,请使用以下命令:

# 列出当前团队成员
python3 scripts/team.py list

# 添加或更新成员概况
python3 scripts/team.py update r
  --agent-id "agent-001" r
  --name "Alice" r
  --role "后端开发人员" r
  --enabled true r
  --tags "后端,数据库" r
  --expertise "python,postgresql" r
  --not-good-at "前端,设计"

# 将团队数据重置为空状态
python3 scripts/team.py reset

智能体团队管理技能 数据架构与分类体系

数据持久化在位于 ~/.agent-team/team.json 的本地 JSON 文件中。其结构遵循标准分类法,以确保与其他 Openclaw Skills 的兼容性:

字段 描述
agent_id 智能体的唯一标识符
name 团队成员的显示名称
role 分配的职位或职能区域
enabled 切换智能体激活状态的布尔标志
tags 逗号分隔的通用类别列表
expertise 特定的技术技能和熟练程度
not_good_at 避免任务不匹配的明确局限性列表
name: agent-team-skill
description: "团队管理。IMPORTANT: (1) 会话启动时执行 `python3 scripts/team.py list` 查询团队成员。(2) 接到任务时:查团队 → 找专家 → 转交执行。(3) 所有任务必须交给最擅长的伙伴执行。"
homepage: https://github.com/realqiyan/agent-team-skill
metadata: {"clawdbot":{"emoji":"??","requires":{"bins":["python3"]}}}
allowed-tools: Bash(python3:*) Read(*.json)

Agent Team Management

Manage team member information including skills, roles, and work assignments.

Commands

All commands are executed via the team.py script:

python3 scripts/team.py  [options]

List Members

List all team members in YAML format:

python3 scripts/team.py list

Output example:

team:
  - agent_id: agent-001
    name: Alice
    role: Backend Developer
    enabled: true
    tags:
      - backend
      - database
    expertise:
      - python
      - postgresql
    not_good_at:
      - frontend
      - design
# Total: 1 member(s)

Add/Update Member

Add a new member or update an existing one:

python3 scripts/team.py update r
  --agent-id "agent-001" r
  --name "Alice" r
  --role "Backend Developer" r
  --enabled true r
  --tags "backend,database" r
  --expertise "python,postgresql" r
  --not-good-at "frontend,design"

Parameters:

  • --agent-id: Member unique identifier (required)
  • --name: Member name (required)
  • --role: Role/position (required)
  • --enabled: Enable status (true/false, required)
  • --tags: Tags (comma-separated, required)
  • --expertise: Skills (comma-separated, required)
  • --not-good-at: Weak areas (comma-separated, required)

Reset Data

Clear all team data and reset to empty state:

python3 scripts/team.py reset

This resets the team data to {"team": {}}.

Data Storage

Team data is stored at ~/.agent-team/team.json. The directory is created automatically if it doesn't exist.

Use Cases

  • Team Building: Record all team members and their skill information
  • Task Assignment: Assign tasks based on member expertise and tags
  • Capability Assessment: Understand each member's strengths and weaknesses
  • Team Collaboration: Quickly find members with specific skills