部门经理:编排多智能体 AI 团队 - Openclaw 技能

作者:互联网

2026-03-30

AI教程

什么是 部门经理?

部门经理是自主系统的战略层,允许将 AI 员工组织成不同的部门。通过实施这些 Openclaw 技能,开发人员可以从线性任务执行过渡到复杂的多智能体工作流,由专业模型处理营销、研究或工程等特定领域。此技能提供了管理复杂项目所需的结构,确保每项任务都分配给正确的智能体并跟踪直至完成。它实际上充当了子智能体的管理器,为高级项目管理提供清晰的层级和运营框架。

下载入口:https://github.com/openclaw/skills/tree/main/skills/trypto1019/arc-department-manager

安装与下载

1. ClawHub CLI

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

npx clawhub@latest install arc-department-manager

2. 手动安装

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

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

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

3. 提示词安装

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

请帮我使用 Clawhub 安装 arc-department-manager。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

部门经理 应用场景

  • 将内容创建、研究和编码等专业任务委派给特定的 AI 子智能体。
  • 通过并行运行多个领域(营销、运营、工程)来扩展自主业务。
  • 维护不同职能部门的任务和输出的清晰审计轨迹。
  • 协调复杂项目,这些项目需要使用 Openclaw 技能为特定部门角色优化不同的 LLM。
部门经理 工作原理
  1. 通过创建具有特定描述和模型分配的部门来定义您的组织结构。
  2. 通过使用优先级标志向特定部门分配任务来分配工作负载,以管理紧急程度。
  3. 通过部门内的状态检查和活动任务监控来跟踪每个请求的生命周期。
  4. 记录已完成任务的结果,以保留由您的 Openclaw 技能产生的所有工作的永久历史记录。
  5. 通过总结部门绩效和输出的综合报告来审计整个系统。

部门经理 配置指南

要开始管理您的 AI 团队,请确保环境中可以使用 python3。您可以使用以下命令结构初始化第一个部门:

python3 {baseDir}/scripts/departments.py create --name "research" --description "Market analysis" --model "stepfun/step-3.5-flash:free"

您可以使用以下命令验证配置并列出活动部门:

python3 {baseDir}/scripts/departments.py list

部门经理 数据架构与分类体系

该技能将其状态维护在本地 JSON 文件中,以确保跨会话的持久性。

属性 规格
数据位置 ~/.openclaw/department-manager/departments.json
格式 将部门名称映射到其配置和任务列表的 JSON 对象。
元数据 跟踪所有 Openclaw 技能活动的唯一任务 ID、优先级和完成时间戳。
name: department-manager
description: Manage a team of AI sub-agents organized into departments. Use when you need to delegate tasks to specialized agents, track department outputs, assign roles, and coordinate multi-agent workflows. Essential for autonomous agents running businesses or complex projects.
user-invocable: true
metadata: {"openclaw": {"emoji": "??", "os": ["darwin", "linux"], "requires": {"bins": ["python3"]}}}

Department Manager

Organize your AI workers into departments. Assign tasks, track output, and coordinate multi-agent teams like a CEO.

Why This Exists

Running an autonomous business or complex project means juggling multiple tasks across different domains: content, research, code, marketing, operations. Instead of doing everything sequentially, organize your workers into departments and delegate in parallel.

Commands

Create a department

python3 {baseDir}/scripts/departments.py create --name "content" --description "SEO blog posts, marketing copy, newsletters" --model "arcee-ai/trinity-large-preview:free"

List departments

python3 {baseDir}/scripts/departments.py list

Assign a task to a department

python3 {baseDir}/scripts/departments.py assign --dept "content" --task "Write a blog post about OpenClaw memory system" --priority high

Check department status

python3 {baseDir}/scripts/departments.py status --dept "content"

View all active tasks across departments

python3 {baseDir}/scripts/departments.py active

Complete a task

python3 {baseDir}/scripts/departments.py complete --task-id 1 --output "Blog post written and saved to drafts/memory-post.md"

Department report (summary of all departments)

python3 {baseDir}/scripts/departments.py report

Remove a department

python3 {baseDir}/scripts/departments.py remove --name "content"
Department Model Responsibilities
content arcee-ai/trinity-large-preview:free Blog posts, marketing copy, newsletters
research stepfun/step-3.5-flash:free Market research, competitor analysis, data gathering
engineering openrouter/free Code generation, bug fixes, tooling
operations (manual/CEO) Budget, strategy, communications
security (manual/CEO) Skill scanning, threat assessment, audits

Data Storage

Department data stored in ~/.openclaw/department-manager/departments.json.

Tips

  • Create departments based on your actual workflow, not hypothetical needs
  • Assign one default model per department for consistency
  • Review completed tasks before publishing — QA is the CEO's job
  • Use priority levels to focus workers on what matters now
  • Run report at the end of each day for a team overview