跳到正文
Skillpedia
通用编程81k · #1654

harness-score

它能做什么

这项技能使用五部分的评分表,为代码仓库作为智能体运行框架的契合程度打分。适合决定是否为项目采用某种运行框架设置的开发者。

适用场景

  • ✓当你在设置智能体运行框架之前,想为某个仓库打分时。
  • ✓当你需要为 CI 检查提供就绪度分数时。
  • ✓当你在比较不同仓库以决定采用哪个运行框架时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-score/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-score/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. Shell out to npx metaharness score <path> --json (single subprocess, 60s hard timeout).
  2. Parse the JSON shape: { harnessFit, compileConfidence, taskCoverage, toolSafety, memoryUsefulness, estCostPerRunUsd, recommendedMode, archetype, template, scaffoldReady, hardConstraints }.
  3. If --alert-on-fit-below N: exit 1 when harnessFit < N.
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能