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★ 20 звёзд на GitHubОб этом скилле
Eval Harness
Contents
- Modes
- Evaluation-driven development (EDD)
- Eval types (summary)
- Grader types (summary)
- Metrics (summary)
- Mode: create
- Mode: run
- Mode: report
- Quick reference
- References (loaded on demand)
Reference files (open one when a step points to it):
references/eval-types.md: Eval typesreferences/file-format.md: Eval file formatreferences/graders.md: Gradersreferences/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-creatorskill. - 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-apiskill'sbuild-evalandhillclimbsubcommands, which go further than this skill. Ifclaude-apiis 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.
- Define success first — write the evals that say what "working correctly" means before building.
- Measure continuously — run evals during development, not just at the end.
- Automate where possible — code graders for anything codifiable; model graders for semantic quality; human graders for nuance and for calibrating the model graders.
- Track regressions — every capability added becomes a regression eval.
- 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
Установить eval-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic