Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

eval-harness

БесплатноБез исполняемых скриптовНе проверен

Build and run evaluation suites for AI features in the user's own application: prompts, LLM calls, RAG pipelines, agents. Covers capability and regression…

mhylleот mhylle★ 20 звёзд на GitHub

Об этом скилле

Eval Harness

Contents

Reference files (open one when a step points to it):

  • references/eval-types.md: Eval types
  • references/file-format.md: Eval file format
  • references/graders.md: Graders
  • references/metrics.md: Metrics — pass@k, pass^k, latency, cost

Build and run evaluation suites for AI features in the user's application — a prompt, an LLM call, a RAG pipeline, an agent. Covers two eval types (capability, regression), three grader families (code, model, human), and the metrics that summarise them (pass@k, pass^k, latency, cost).

Not this skill:

  • Evaluating or benchmarking a Claude Code skill or its triggering → the skill-creator skill.
  • A Claude API feature where the user wants a full eval set with measured cost, a report viewer, and iterative prompt tuning → offer the claude-api skill's build-eval and hillclimb subcommands, which go further than this skill. If claude-api is not in your skill list, carry on here.

Modes

Mode Does Writes
create Defines the suite: success criteria, eval files, graders, thresholds evals/eval-suite.yaml + eval files
run Generates or reuses the runner script and executes the suite <output_dir>/<run-id>/results.jsonl, summary.json
report Reads a run's results, computes metrics, compares to thresholds and the previous run <output_dir>/<run-id>/report.md

Without an argument, infer the mode: no suite yet → create; a suite but no results, or the code changed since the last run → run; results present and the user asks how it went → report.


Evaluation-driven development (EDD)

Evals are defined before or alongside implementation, not after, so "working" is explicit and testable from day one.

  1. Define success first — write the evals that say what "working correctly" means before building.
  2. Measure continuously — run evals during development, not just at the end.
  3. Automate where possible — code graders for anything codifiable; model graders for semantic quality; human graders for nuance and for calibrating the model graders.
  4. Track regressions — every capability added becomes a regression eval.
  5. Don't modify evals to pass — unless the requirements changed, and then update baselines explicitly.

Eval types (summary)

Type Purpose When to use
Capability Verify new functionality works Adding features, improving functionality, testing edge cases
Regression Protect against unintended breakage After code changes, before PR merge, after dependency or model updates

Full structures and YAML examples → references/eval-types.md.


Grader types (summary)

Type Strength When to use
Code (exact match, regex, function output) Fast, deterministic, cheap Any codifiable correctness check
Model (LLM judge with rubric, structured verdict) Handles semantic variation, tone, quality Natural-language outputs, multiple valid answers
Human (Likert, binary, ranking) Catches what machines miss Creative content, safety-critical judgments, calibrating model graders

Configs, implementation sketches, judge call and rubric templates → references/graders.md.


Metrics (summary)

Metric Question answered Use case
pass@1 "Can it solve this at all?" Single-shot capability
pass@k "Can it ever solve this?" Best-of-k capability, retries cheap
pass^k "Can it always solve this?" Consistency, reliability, production
latency p50 / p95 "How long does a case take?" Interactive features, latency budgets
tokens and cost per case "What does a case cost?" Model or prompt comparisons, budget checks

Formulas, what to record per case, and the picking guide → references/metrics.md.


Mode: create

Write the suite file and the eval files it references. Eval file format → references/file-format.md.

# evals/eval-suite.yaml
eval_suite:
  name: "Feature X evaluation suite"
  version: "1.0.0"
  description: "Capability and regression evals for Feature X"

  target:                                         # how the runner calls the system under test
    entry_point: "src/feature_x/answer.py:answer"  # the
Полный SKILL.md на GitHub

Установить eval-harness в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/eval-types.mdreferences/file-format.mdreferences/graders.mdreferences/metrics.md

FAQ

Что делает скилл eval-harness?

Build and run evaluation suites for AI features in the user's own application: prompts, LLM calls, RAG pipelines, agents. Covers capability and regression evals, graders (exact match, regex, code execution, LLM judge with structured output, human) and metrics (pass@k, pass^k, latency, cost). Three modes: create (write the suite), run (generate or reuse a small runner script in the project's language and execute it), report (summarise results against thresholds). Use when the user wants to set up or run evals for their app, regression-test a prompt or AI feature, compare model or prompt variants, or gate a change on eval results. Not for evaluating or benchmarking Claude Code skills; use skill-creator for that. For a Claude API feature that needs cost estimates and iterative prompt tuning, the claude-api skill's build-eval and hillclimb flows go further.

Как установить скилл eval-harness?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл eval-harness запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить eval-harness с