多Agent团队编排与质量门禁指南
简介
多Agent团队编排指南:定义角色分工、任务状态流转与质量门禁的生产级工作流框架。
原始描述
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.
通过你的 Agent 添加
安装目录:agent-team-orchestration-7829/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心定位与用途
Agent Team Orchestration 是一套纯文档型的多智能体团队生产协作规范,专为 Claude Code 生态中需要持续协同的 2+ Agent 场景设计。其核心目标是解决多 Agent 协作中的三大痛点:角色混淆、状态失控、质量漂移。
核心用法
该 skill 采用 Orchestrator-Builder-Reviewer-Ops 四级角色模型:
| 角色 | 核心职责 | 模型选型建议 |
|---|---|---|
| Orchestrator | 路由任务、追踪状态、优先级决策 | 高推理能力模型 |
| Builder | 执行产出(代码、文档、配置) | 性价比优先 |
| Reviewer | 质量把关、边界条件审查 | 高推理能力模型 |
| Ops | 定时任务、健康检查、自动派发 | 最便宜可靠模型 |
任务生命周期强制遵循 Inbox → Assigned → In Progress → Review → Done/Failed 五态流转,Orchestrator 独占状态切换权,禁止 Agent 自更新。
交接协议五要素(必须包含):
- 已完成工作摘要
- 产物精确路径
- 验证方式/验收标准
- 已知问题/风险
- 明确的下一步行动
显著优点
- 零配置开销:纯 Markdown 文档,无需依赖安装或环境配置
- 抗熵增设计:强制的 Review 关卡与状态注释机制,防止 3-5 轮后质量雪崩
- 弹性扩展:从最小 2-Agent 团队(Builder+Reviewer)到复杂多 Agent 拓扑均可适配
- 安全极简:零可执行代码、零网络调用、零数据收集,企业级合规无负担
潜在局限与风险
适用边界限制:
- 明确排除单 Agent 场景——此时遵循标准 AGENTS.md 即可,本 skill 的编排开销属负收益
- 一次性任务委派应直接用
sessions_spawn,无需启用完整工作流 - 简单问答转发属于消息路由,非本 skill 定义的"持续协作模式"
执行依赖风险:
- 该 skill 仅为指导规范,无强制约束力;团队需自行实现任务板/数据库/文件系统等状态载体
- 交接质量高度依赖 Orchestrator 的人工把关,自动化程度低
- 文档未覆盖 Agent 故障恢复、超时重试、并发冲突等工程细节
模型能力错配:未前置校验 Agent 实际能力(如浏览器访问、图像处理)即委派任务,将导致执行失败。
适合人群
- 正在从单 Agent 向多 Agent 规模化过渡的 Claude Code 用户
- 需要定义清晰 SOP 的 AI-Native 团队技术负责人
- 追求可审计、可复现协作流程的企业级场景
常规风险
- 合规真空:当前版本缺 LICENSE 文件,来源可信度暂为 T2
- 未来版本若引入可执行代码或外部依赖,需重新评估安全等级
- 纯文档型设计虽安全,但功能落地完全依赖人工遵循,存在"知易行难"的执行落差
认证结论
- 合规真空:当前版本缺 LICENSE 文件,来源可信度暂为 T2
- 未来版本若引入可执行代码或外部依赖,需重新评估安全等级
- 纯文档型设计虽安全,但功能落地完全依赖人工遵循,存在"知易行难"的执行落差
认证结论
CLS-Certify 六维检测全绿:静态 100/动态 100/依赖 100/网络 100/隐私 100/情报 100,定级 S+,零攻击面。
技能正文
name: agent-team-orchestration
description: "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."
Agent Team Orchestration
Production playbook for running multi-agent teams with clear roles, structured task flow, and quality gates.
Quick Start: Minimal 2-Agent Team
A builder and a reviewer. The simplest useful team.
1. Define Roles
Orchestrator (you) — Route tasks, track state, report results
Builder agent — Execute work, produce artifacts
2. Spawn a Task
1. Create task record (file, DB, or task board)
2. Spawn builder with:
- Task ID and description
- Output path for artifacts
- Handoff instructions (what to produce, where to put it)
3. On completion: review artifacts, mark done, report
3. Add a Reviewer
Builder produces artifact → Reviewer checks it → Orchestrator ships or returns
Orchestrator (you) — Route tasks, track state, report results
Builder agent — Execute work, produce artifacts
1. Create task record (file, DB, or task board)
2. Spawn builder with:
- Task ID and description
- Output path for artifacts
- Handoff instructions (what to produce, where to put it)
3. On completion: review artifacts, mark done, report
3. Add a Reviewer
Builder produces artifact → Reviewer checks it → Orchestrator ships or returns
Builder produces artifact → Reviewer checks it → Orchestrator ships or returns
That's the core loop. Everything below scales this pattern.
Core Concepts
Roles
Every agent has one primary role. Overlap causes confusion.
| Role | Purpose | Model guidance |
|---|---|---|
| Orchestrator | Route work, track state, make priority calls | High-reasoning model (handles judgment) |
| Builder | Produce artifacts — code, docs, configs | Can use cost-effective models for mechanical work |
| Reviewer | Verify quality, push back on gaps | High-reasoning model (catches what builders miss) |
| Ops | Cron jobs, standups, health checks, dispatching | Cheapest model that's reliable |
→ Read references/team-setup.md when defining a new team or adding agents.
Task States
Every task moves through a defined lifecycle:
Inbox → Assigned → In Progress → Review → Done | Failed
Rules:
- Orchestrator owns state transitions — don't rely on agents to update their own status
- Every transition gets a comment (who, what, why)
- Failed is a valid end state — capture why and move on
→ Read references/task-lifecycle.md when designing task flows or debugging stuck tasks.
Handoffs
When work passes between agents, the handoff message includes:
- What was done — summary of changes/output
- Where artifacts are — exact file paths
- How to verify — test commands or acceptance criteria
- Known issues — anything incomplete or risky
- What's next — clear next action for the receiving agent
Bad handoff: "Done, check the files."
Good handoff: "Built auth module at /shared/artifacts/auth/. Run npm test auth to verify. Known issue: rate limiting not implemented yet. Next: reviewer checks error handling edge cases."
Reviews
Cross-role reviews prevent quality drift:
- Builders review specs — "Is this feasible? What's missing?"
- Reviewers check builds — "Does this match the spec? Edge cases?"
- Orchestrator reviews priorities — "Is this the right work right now?"
Skip the review step and quality degrades within 3-5 tasks. Every time.
→ Read references/communication.md when setting up agent communication channels. → Read references/patterns.md for proven multi-step workflows.
Reference Files
File
Read when...
team-setup.md
Defining agents, roles, models, workspaces
task-lifecycle.md
Designing task states, transitions, comments
communication.md
Setting up async/sync communication, artifact paths
patterns.md
Implementing specific workflows (spec→build→test, parallel research, escalation)
Common Pitfalls
Spawning without clear artifact output paths
| File | Read when... |
|---|---|
| team-setup.md | Defining agents, roles, models, workspaces |
| task-lifecycle.md | Designing task states, transitions, comments |
| communication.md | Setting up async/sync communication, artifact paths |
| patterns.md | Implementing specific workflows (spec→build→test, parallel research, escalation) |
Spawning without clear artifact output paths
Agent produces great work, but you can't find it. Always specify the exact output path in the spawn prompt. Use a shared artifacts directory with predictable structure.
No review step = quality drift
"It's a small change, skip review." Do this three times and you have compounding errors. Every artifact gets at least one set of eyes that didn't produce it.
Agents not commenting on task progress
Silent agents create coordination blind spots. Require comments at: start, blocker, handoff, completion. If an agent goes silent, assume it's stuck.
Not verifying agent capabilities before assigning
Assigning browser-based testing to an agent without browser access. Assigning image work to a text-only model. Check capabilities before routing.
Orchestrator doing execution work
The orchestrator routes and tracks — it doesn't build. The moment you start "just quickly doing this one thing," you've lost oversight of the rest of the team.
When NOT to Use This Skill
- Single-agent setups — Just follow standard AGENTS.md conventions. Team orchestration adds overhead that solo agents don't need.
- One-off task delegation — Use
sessions_spawn directly. This skill is for sustained workflows with multiple handoffs.
- Simple question routing — If you're just forwarding a question to a specialist, that's a message, not a workflow.
sessions_spawn directly. This skill is for sustained workflows with multiple handoffs.This skill is for sustained team workflows — recurring collaboration patterns where agents depend on each other's output over multiple tasks.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。