/ 目录 / 演练场 / Harness (Meta-skill)
● 社区 revfactory ⚡ 即开即用

Harness (Meta-skill)

作者 revfactory · revfactory/harness

A meta-skill: tell it your domain, it designs the agent team for you (roles, prompts, hand-offs) and saves the specs for reuse.

Harness treats agent design as a first-class workflow: you describe your domain (incident response, content review, code triage); it asks the right questions, then emits a documented team — roles, system prompts, when each takes over, and shared memory boundaries.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "harness-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/revfactory/harness",
        "~/.claude/skills/harness"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "harness-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/revfactory/harness",
        "~/.claude/skills/harness"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "harness-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/revfactory/harness",
        "~/.claude/skills/harness"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "harness-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/revfactory/harness",
        "~/.claude/skills/harness"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "harness-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/revfactory/harness",
        "~/.claude/skills/harness"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "harness-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/revfactory/harness",
          "~/.claude/skills/harness"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add harness-skill -- git clone https://github.com/revfactory/harness ~/.claude/skills/harness

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Harness (Meta-skill)

Design an incident-response agent team

👤 Claude Code users ⏱ ~15 min intermediate

何时使用: You want multiple agents (triage, comms, scribe) cooperating on real incidents instead of one big system prompt.

步骤
  1. Brief
    Tell harness: "incident response, B2B SaaS, 3 specialists please."✓ 已复制
    → Harness asks scope questions
  2. Answer
    Define escalation, channels, scribe duties.✓ 已复制
    → Spec drafts emerge
  3. Save
    Save specs into /agents/incident/.✓ 已复制
    → Reusable team def written

结果: Documented multi-agent team you can rerun next incident, not a one-off prompt.

组合

与其他 MCP 搭配,撬动十倍杠杆

harness-skill + filesystem

Save designed teams alongside your project

Combine harness-skill with filesystem: Save designed teams alongside your project✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
design (see docs) Run the design interview 1 call
review (see docs) Critique an existing team for missing roles or unclear hand-offs 1 call

成本与限制

运行它的成本

API 配额
N/A
每次调用 Token 数
Interview is moderate
费用
Free skill
提示
Reuse outputs as-is for next domain; don't redesign from scratch

安全

权限、密钥、影响范围

最小权限: fs-read fs-write
凭据存储: None
数据出站: None

故障排查

常见错误与修复

Output too generic

Provide concrete examples (real past incidents) during the interview

替代方案

Harness (Meta-skill) 对比其他方案

替代方案何时用它替代权衡
Hand-rolled promptsSingle-agent flowDoesn't scale to multi-agent

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills