agentleFS
willink-osswillink-oss/willink-claude-kit/skills/eval-dataset-build/SKILL.md

eval-dataset-build

Skill0 starsChanged 4 months agoMITView on GitHub

golden eval データセットを JSON schema 検証で構築・検査する。records/errors を機械判定し pass/fail/observe を返す。トリガー語彙: eval データセット, golden dataset, データセット検証, dataset build, schema 検証, golden 構築, ゴールデンデータ, 評価データセット

The file

Files
SKILL.md

eval-dataset-build(golden eval データセットの schema 検証構築)

scripts/eval-harness.py の dataset-build サブコマンド(engine フェーズ実装済)を skill 化したもの。 golden eval データセット(prompt/expected の JSON 群)を schema に照らして検証し、欠損フィールド・型不一致・最小件数不足を機械的に検出する。自己申告禁止・決定論ゲートで pass/fail を確定する(原則 P1/P2)。

目的

  • eval に使う golden dataset が schema に適合しているか(必須フィールド・型・最小件数)を 決定論的に 検査する
  • レコード数(records)と違反数(errors)を metrics として返し、緑(pass)/赤(fail)/観測(observe)を機械判定する
  • 「十分そろっている気がする」で通さず、schema 検証を floor ゲートにする

トリガー語彙

eval データセット / golden dataset / データセット検証 / dataset build / schema 検証 / eval-harness / ゴールデンデータ / 評価データセット

実行手順

  1. データセット(JSON 配列 or オブジェクト)と schema(JSON)を用意する
    • dataset 例: [{"prompt": "...", "expected": "..."}, ...]
    • schema 例(flat 形式): {"required": ["prompt","expected"], "types": {"prompt":"string","expected":"string"}, "min_items": 2}
    • schema は JSON Schema 風(type/properties/items/required/minItems)と flat(required/types/min_items)の両形式に対応
  2. 検証を実走する:
    python3 scripts/eval-harness.py dataset-build --dataset <path> --schema <path>
  3. 出力の status / metrics.records / metrics.errors / findings を確認する
    • pass: 違反 0 件(schema 全適合)
    • fail: 1 件以上の違反(findings に path + error)→ dataset を修正して再走
    • observe: dataset か schema が存在しない(不明扱い・0 件と解釈しない)

決定論ゲート(--check 相当・自己判定禁止)

skill・サブコマンドの健全性は hermetic self-test で確定する(実源に触れない fixture・exit code で判定):

python3 scripts/eval-harness.py dataset-build --self-test
  • exit 0 = ゲート緑(good=pass / bad=fail / missing=observe の 3 判定が全て正)
  • exit 非0 = ゲート赤(サブコマンド破損 → 実データ検証に使わない)

実データセット検証時の合否は、実走出力の status == "pass"(かつ metrics.errors == 0)を機械判定する。空出力・例外は「不明」として扱い、pass と解釈しない。

参照

  • 実装: scripts/eval-harness.py(compute_dataset_build / validate_schema / self-test st_dataset_build)
  • 全サブ一括 self-test: python3 scripts/eval-harness.py --self-test(全11サブ pass で exit0)
  • 決定論ゲート方針: docs/incidents.md(「ゴール到達型ループの停止は決定論ゲートで判定」)・原則 P1/P2

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.