360 Secure SkillHub
360 安全技能中心

Department Manager

通过 Python 命令行脚本把 AI 子代理组织成部门,支持创建、列出、删除部门,向部门分配带优先级的任务,查看部门状态与全部进行中任务,标记任务完成并生成部门汇总报告;部门信息与任务数据保存在本机 JSON 文件中。

trypto1019
trypto1019
热度 94.59
最近更新 2026-05-11 17:25:49
分类:协作依赖:代码执行 / 读写文件应用场景:任务管理 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add arc-department-manager
Metadata
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"

Recommended Department Structure

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