harness-score
它能做什么
这项技能使用五部分的评分表,为代码仓库作为智能体运行框架的契合程度打分。适合决定是否为项目采用某种运行框架设置的开发者。
适用场景
- ✓当你在设置智能体运行框架之前,想为某个仓库打分时。
- ✓当你需要为 CI 检查提供就绪度分数时。
- ✓当你在比较不同仓库以决定采用哪个运行框架时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-score/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这个仓库作为智能体运行框架来打分,并告诉我它是否已经可以搭建。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能对该文件夹运行评分命令,并读取结果,包括契合度、编译可信度、任务覆盖率、工具安全性、记忆有用性以及每次运行的估算成本。当契合度低于你设定的上限时,它可以使检查失败。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Surfaces the upstream metaharness score CLI as a ruflo skill. Use when
Claude Code needs to assess whether a repo is ready for harness adoption
before recommending the user run npx ruflo init or harness-mint.
Algorithm
Implementation: scripts/score.mjs.
- Shell out to
npx metaharness score <path> --json(single subprocess, 60s hard timeout). - Parse the JSON shape:
{ harnessFit, compileConfidence, taskCoverage, toolSafety, memoryUsefulness, estCostPerRunUsd, recommendedMode, archetype, template, scaffoldReady, hardConstraints }. - If
--alert-on-fit-below N: exit 1 whenharnessFit < N. - Output JSON (default) or markdown table.
Phase-0 baseline (ruflo's own scorecard, measured 2026-06-16)
| Dimension | Value |
|---|---|
| harnessFit | 82/100 |
| compileConfidence | 100 |
| taskCoverage | 79 |
| toolSafety | 100 |
| memoryUsefulness | 40 |
| estCostPerRunUsd | $0.048 |
| recommendedMode | CLI + MCP |
| archetype | typescript-sdk-harness |
| template | vertical:coding |
| scaffoldReady | true |
Ruflo passes its own readiness check. memoryUsefulness: 40 is the
weakest dimension — track this as a leading indicator for future memory
work in the AgentDB layer.
CI integration
node plugins/ruflo-metaharness/scripts/score.mjs --alert-on-fit-below 70 --format json
Exit 1 fails the build. Pair with harness-genome for the full
7-section view.
Graceful degradation (ADR-150 architectural constraint rule #3)
When metaharness is not installed and npx can't fetch it (offline,
no network, registry unreachable), the script emits:
{
"degraded": true,
"reason": "metaharness-not-available",
"hint": "Install with `npm i -D metaharness@~0.4.1` (pinned range — this plugin never fetches @latest) or verify network access for the one-time cache install."
}
and exits 0. Ruflo continues to function — this is the architectural constraint in action.
常见问题
它会改动仓库吗?
不会。评分是只读的。
估算成本显示什么?
它显示基于评分工具自身估算得出的每次运行成本。
它能阻止构建吗?
可以。契合度警报选项会在契合分数低于你设定的数值时以错误退出。
详情
作者的原始描述
5-dimension harness readiness scorecard from `metaharness score {path}` (harnessFit, compileConfidence, taskCoverage, toolSafety, memoryUsefulness, plus cost per run). Use when rating a repo as an agent harness. Pure-read; degrades gracefully without MetaHarness.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1654
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。