本文へスキップ
Skillpedia
テスト81k · #1645

harness-bench

できること

このスキルは、AIハーネスの変種を採点するために使う、固定のタスクの集まり、つまりベンチマークスイートを作成または検証します。進化実験を行っていて、安定した比較可能なスコアが必要な開発者向けです。

使う場面

  • ✓新しい進化パイプラインを設定し、採点の基準となる固定のタスクが必要なとき。
  • ✓結果を比べる前に、各変更でテストセットを確認したいとき。
  • ✓新しい領域へハーネスをフォークし、元と比べられるスコアがほしいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-bench/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のリポジトリ用のベンチマークスイートを作成して、有効かどうかを確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは darwin のベンチマークツールを呼び出し、既存のテストからスイートを作成するか、スイートファイルを検証します。検証では、タスクの形式が不正な場合にエラーで終了します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Surfaces metaharness-darwin bench <create|verify> — the supporting verb for harness-evolve --bench. Use when you want evolution scored against a fixed corpus (independent of npm test) so champion fitness is comparable across commits or across forks of the same harness.

When to use

  • Setting up a new evolution pipeline for a repo whose npm test is flaky, slow, or undersized — scaffold a deterministic bench suite once, then evolve against it repeatedly.
  • CI: bench verify the checked-in suite on every PR that touches it (cheap; ~5s).
  • Forking a harness to a new domain: copy and edit the suite to retarget the evaluation without losing comparability to the parent.

Algorithm

Implementation: scripts/bench.mjs.

--op create

  1. Resolve --repo path; reject if missing.
  2. Shell to metaharness-darwin bench create <repo> [--out <suite.json>].
  3. Default output path: <repo>/.metaharness/bench/suite.json (chosen by upstream).
  4. Suite shape (per upstream): array of { input, expectedOutput, weight } tasks derived from existing test cases.

--op verify

  1. Resolve --suite path; reject if missing.
  2. Shell to metaharness-darwin bench verify <suite.json>.
  3. Exit 1 if any task malformed (upstream's signal).

Output shape

{
  "success": true,
  "data": {
    "op": "verify",
    "taskCount": 42,
    "wellFormed": true,
    "durationMs": 870
  }
}

Exit codes

Code Meaning
0 OK (or degraded — Darwin absent)
1 --op verify and suite malformed
2 Config error or upstream invocation failure

Graceful degradation

When @metaharness/darwin is absent, emits the standard {degraded: true, reason: 'metaharness-darwin-not-available'} payload and exits 0.

よくある質問

スイートは何で構成されていますか?

ソースによると、既存のテストケースから導かれた、入力、期待される出力、重みを持つタスクの一覧です。

darwin パッケージがない場合はどうなりますか?

スキルはクラッシュする代わりに、利用できないことを報告します。

進化の実行もしますか?

いいえ。ベンチマークを作成または検証するだけです。採点の実行は harness-evolve スキルが行います。

詳細

作者による元の説明

Create (`bench create {repo}`) or verify (`bench verify {suite.json}`) a @metaharness/darwin bench suite, the fixed corpus `harness-evolve --bench` scores variants against. Use when preparing an evolution benchmark. Degrades gracefully without darwin.

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1645
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル