/ 目錄 / 演練場 / 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