以下是您要求的英文文章的中文翻译,已按照保留原文结构、技术术语不翻译、代码块保持原样等要求处理。
revfactory harness
Harness — Claude Code 的团队架构工厂
English | 한국어 | 日本語
Harness 是 Claude Code 的团队架构工厂。只需说“build a harness for this project”(英文)或“하네스 구성해줘”(韩文)或“ハーネスを構成して”(日文),该插件就会将您的领域描述转化为一个智能体团队及其使用的技能——这些技能从六种预定义的团队架构模式中选取。
概述
Harness 利用 Claude Code 的智能体团队系统,将复杂任务分解为由专业智能体组成的协作团队。只需说“build a harness for this project”,它便会自动生成针对您领域定制的智能体定义(.claude/agents/)和技能(.claude/skills/)。
分类 — Harness 所处的位置
Harness 位于 Claude Code 生态系统的 L3 元工厂层——该层的作用是生成其他 harness,而非自身作为一个 harness。在 L3 内部,我们选取了一个特定的子层:团队架构工厂。
| 层级 | 功能 | 共存的同类项目 | |------|------|----------------| | L3 — 元工厂 / 团队架构工厂(我们) | 领域描述 → 智能体团队 + 技能,基于 6 种预定义团队模式 | — | | L3 — 元工厂 / 运行时配置工厂 | 确定性、可重复的运行时配置 | coleam00/Archon | | L3 — 元工厂 / Codex 运行时端口 | 相同概念,Codex 运行时 | SaehwanPark/meta-harness | | L2 — 跨 Harness 工作流 | 标准化多个 harness 之间的技能/规则/钩子 | affaan-m/ECC |
Archon 生成确定性的运行时配置。Harness 生成团队架构(流水线、扇出/扇入、专家池、生产者-评审者、监督者、层级委派)以及智能体使用的技能。两者属于同一 L3 的不同子层。需要运行时确定性时选择 Archon,需要团队架构时选择 Harness,或者将两者结合使用。
Star 历史
关键特性
- 智能体团队设计 — 6 种架构模式:流水线、扇出/扇入、专家池、生产者-评审者、监督者、层级委派
- 技能生成 — 自动生成技能,采用渐进式披露实现高效的上下文管理
- 编排 — 智能体间数据传递、错误处理及团队协作协议
- 验证 — 触发器验证、试运行测试、带技能与不带技能的对比测试
工作流
阶段 1:领域分析 ↓ 阶段 2:团队架构设计(智能体团队 vs 子智能体) ↓ 阶段 3:智能体定义生成(.claude/agents/) ↓ 阶段 4:技能生成(.claude/skills/) ↓ 阶段 5:集成与编排 ↓ 阶段 6:验证与测试
安装
通过市场安装
/plugin marketplace add revfactory/harness
安装插件:
/plugin install harness@harness-marketplace
直接安装为全局技能
# 将技能目录复制到 ~/.claude/skills/harness/
cp -r skills/harness ~/.claude/skills/harness
插件结构
harness/
├── .claude-plugin/
│ └── plugin.json # 插件清单
├── skills/
│ └── harness/
│ ├── SKILL.md # 主技能定义(6 阶段工作流)
│ └── references/
│ ├── agent-design-patterns.md # 6 种架构模式
│ ├── orchestrator-template.md # 团队/子智能体编排模板
│ ├── team-examples.md # 5 个真实团队配置示例
│ ├── skill-writing-guide.md # 技能编写指南
│ ├── skill-testing-guide.md # 测试与评估方法
│ └── qa-agent-guide.md # QA 智能体集成指南
└── README.md
使用方法
在 Claude Code 中使用以下提示词触发:
Build a harness for this project
Design an agent team for this domain
Set up a harness
执行模式
| 模式 | 描述 | 推荐场景 | |------|------|----------| | 智能体团队(默认) | TeamCreate + SendMessage + TaskCreate | 2 个及以上需要协作的智能体 | | 子智能体 | 直接调用 Agent 工具 | 一次性任务,无需智能体间通信 |
架构模式
| 模式 | 描述 | |------|------| | 流水线 | 顺序执行的依赖任务 | | 扇出/扇入 | 并行执行的独立任务 | | 专家池 | 根据上下文选择性调用 | | 生产者-评审者 | 生成后接质量评审 | | 监督者 | 中央智能体动态分配任务 | | 层级委派 | 自上而下的递归委派 |
输出文件
Harness 生成的文件结构:
your-project/
├── .claude/
│ ├── agents/ # 智能体定义文件
│ │ ├── analyst.md
│ │ ├── builder.md
│ │ └── qa.md
│ └── skills/ # 技能文件
│ ├── analyze/
│ │ └── SKILL.md
│ └── build/
│ ├── SKILL.md
│ └── references/
使用案例 — 尝试以下提示词
安装 Harness 后,将以下任一提示词复制到 Claude Code 中:
深度研究
Build a harness for deep research. I need an agent team that can investigate any topic from multiple angles — web search, academic sources, community sentiment — then cross-validate findings and produce a comprehensive report.
网站开发
Build a harness for full-stack website development. The team should handle design, frontend (React/Next.js), backend (API), and QA testing in a coordinated pipeline from wireframe to deployment.
网漫 / 漫画制作
Build a harness for webtoon episode production. I need agents for story writing, character design prompts, panel layout planning, and dialogue editing. They should review each other's work for style consistency.
YouTube 内容策划
Build a harness for YouTube content creation. The team should research trending topics, write scripts, optimize titles/tags for SEO, and plan thumbnail concepts — all coordinated by a supervisor agent.
代码审查与重构
Build a harness for comprehensive code review. I want parallel agents checking architecture, security vulnerabilities, performance bottlenecks, and code style — then merging all findings into a single report.
技术文档
Build a harness that generates API documentation from this codebase. Agents should analyze endpoints, write descriptions, generate usage examples, and review for completeness.
数据管道设计
Build a harness for designing data pipelines. I need agents for schema design, ETL logic, data validation rules, and monitoring setup that delegate sub-tasks hierarchically.
营销活动
Build a harness for marketing campaign creation. The team should research