AGENT SKILL

eval-genius

Decide whether an AI/LLM/agent/retrieval system needs an eval, where it fits in the dev process, which one to run, and how to read the result; then design, gate, judge, and defend it. Not ordinary unit tests.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 3.3w
Forks
3.9k

01 前言 Front Matter

name
eval-genius
description
Decide whether an AI/LLM/agent/retrieval system needs an eval, where it fits in the dev process, which one to run, and how to read the result; then design, gate, judge, and defend it. Not ordinary unit tests.

03 SKILL.md 正文

Eval Genius

An eval is a claim you are willing to defend under hostile audit. You measure to earn the right to say "this is better" and have it hold when someone sharp pushes back. Behave like a measurement engineer: state the promise, fix the bar before looking, hold everything else constant, distrust the instrument first, report the number that hurts. Assume the user may be starting from zero; plain language first, jargon when it earns it.


Step 0: Does this need an eval, and where does it go?

Three questions decide it (references/00-start-here.md): does the output vary (model, prompt, retriever)? will it change again, and would a quiet regression cost something? is a decision or a public claim coming? No to all: a hand spot check, stop. Yes to any: an eval, sized to the stage the project is in.

Stage the user is at Instrument Smallest useful version
Exploring prompts and models Spot check 10 inputs, eyeball
First working version Smoke eval 20 to 50 real inputs, code-checked; this run is the baseline
Changing one thing Paired eval vs baseline Same items both arms, per-item diff, bar written first
Merging or shipping CI gate Held-out items, three-way outcome, a known-bad item that must fail
Comparing or claiming publicly Benchmark Versioned dataset and harness, intervals, report
In production Monitor Same scorer on sampled live traffic

Build the first eval at "first working version", never before, rarely after. For a first-timer, run the one-afternoon recipe in 00-start-here.md and touch nothing else.

Route the request

Identify the job, then load only that reference. Every job still passes through Step 1.

User needs to... Load
Know if they need an eval, where it fits, which one, or how to start references/00-start-here.md
Decide what to measure at all, or the ask is "make it better" references/01-foundation.md
Pick a grader or metric for a task references/02-grading-and-metrics.md
Use, prompt, or trust an LLM judge references/03-judge-calibration.md
Choose between an existing benchmark and a custom one references/04-search-vs-build.md
Assemble items, labels, negatives, splits; contamination, overfitting references/05-dataset-construction.md
Write or fix the runner, scorer, or reporter references/06-harness-design.md
Put an eval in CI or a release gate references/07-gates-and-ci.md
Say whether a delta is real references/08-statistics.md
Write results up, or retire a benchmark references/09-reporting.md
Evaluate an agent, tool use, or multi-turn task references/10-agentic-evals.md
Read a result file with no prior experience references/11-reading-results.md

Templates in templates/ get copied into the project, never edited in place. Scripts in scripts/ are stdlib-only CLIs with --help, exiting nonzero with a readable message: check_gate.py (per-item diff of treatment vs baseline; exits 0 PASS, 1 FAIL, 2 CANNOT-MEASURE; refuses a comparison across mismatched fixture or judge fingerprints), paired_bootstrap.py (paired bootstrap interval on the delta, cluster-aware), judge_agreement.py (Cohen's kappa and PASS precision/recall of a judge vs human labels), hash_fixture.py (the canonical fixture content hash the manifest's fixture_hash wants, so two runs hash the same fixture to the same string). Match effort to stakes: a spot check needs Step 0 and little else; a release gate needs the whole chain. Load references on demand, not all at once.


Step 1: Foundation (five minutes, never skipped)

Copy templates/preregistration.md next to the fixture and fill it before touching data or code. A first-timer fills promise, lever, baseline, and bar; the rest follows.

  1. Promise. One plain sentence: what does the system promise, what is "better"?
  2. Variables. Levers (what changes), outcomes (what is watched), controls (what is frozen). One lever per comparison; an unclassifiable variable means stop.
  3. Placement. A decision point, a risky seam, or a public claim; elsewhere, a spot check or nothing.
  4. Weight. Spot check, eval, benchmark, or monitor (Step 0 table).
  5. Bar. The threshold in numbers, the falsifier (what proves the change useless), and the outlier rule. Written before any run.

Done when all five fields are filled and a baseline is named.

Step 2: Choose the grader (deterministic first)

Push every check that can be code-graded down to code: exact match, regex, schema, test suite, threshold. Free text gets decomposed (required facts present, forbidden content absent, format) before any judge sees it. Reserve a model or human judge for the edge no assertion captures. 80% deterministic / 20% judged is trusted; 100% judged is an opinion with error bars. Report layers separately, never one blended number. A judge is an instrument: calibrate against human labels, blind it, randomize order, pin model and prompt hash (references/03-judge-calibration.md).

Step 3: Build or adopt

Search before building; an established benchmark buys ground truth nobody in the room cooked. Build custom the moment the public one rewards a proxy the system does not target, reusing public plumbing. Score candidates on templates/benchmark-assessment-scorecard.md: what it rewards, contamination, label-error ceiling, whether it exercises this mechanism, whether it is maintained.

Step 4: Run under hard rules (a run that breaks one is not a result)

  • Freeze the fixture. Same items, corpus, snapshot, seeds; only the lever varies. Refuse comparisons across mismatched fingerprints.
  • Three-way outcome. PASS, FAIL, or CANNOT-MEASURE. A crash, missing baseline, or fingerprint mismatch is CANNOT-MEASURE, never FAIL and never PASS (check_gate.py).
  • Prove the treatment arm is live before the run.
  • Cover the negative space: items where the right answer is to refuse or return nothing.
  • Repeat and show spread. Noise wider than the effect means no result yet.
  • Verify the verifier. A known-bad case must go red before green is trusted.

Step 5: Read the result (in this order)

Full walk in references/11-reading-results.md; each check gates the next.

  1. Did it run? Exit code before score; negative control failed.
  2. Against the written bar, not against hope. Above: candidate win. Below the falsifier: rejected. Between: not established.
  3. Bigger than noise? Paired interval on the delta (paired_bootstrap.py); interval includes zero means "not established", never "no effect".
  4. Items, not averages. Read regressions first; reproduce one flip by hand.
  5. Surprised? A 0%, a 99%, a thirty-point jump is a harness bug until proven otherwise. Never tune the system against a suspect gauge; fix the gauge or stop.
  6. Layers and cost separately. A win that doubled cost is a trade.

Step 6: Report honestly

Numbers are claims with tiers, measured / estimated / aspirational, never summed across tiers. Three sentences minimum: the bar and whether it was met; the delta with interval, n, and flip counts; the caveat that most weakens the claim. Say when a benchmark is self-run. Retire what fails its bar, in writing. Template: templates/eval-report.md.


Anti-patterns (named so they can be refused)

  • Metric-first. A dataset and scale chosen before the promise is written.
  • Eval too early or too late. Measuring a prototype still in flux, or a shipped system with twenty unattributed changes behind it.
  • Blended score. One number hiding which layer moved.
  • Post-hoc bar. Threshold decided after the result is known.
  • Fixture drift. Comparing across corpora, caches, or snapshots.
  • Cache blindness. Reading a pre-built cache never exercises the write path.
  • Silent crash. Harness error recorded as a score.
  • Oracle judge. Uncalibrated model judge treated as ground truth.
  • Rubric-author bias. Whoever built the system also wrote the rubric, alone.
  • Run until green. Repeating a noisy eval until one run passes.
  • Gate-set tuning / overfitting. Iterating on the held-out items the gate uses.
  • Run-completion checklist before calling anything done: templates/quality-checklist.md.

Source: alexgreensh/eval-genius, Apache-2.0.

04 同仓库更多 Skills

davila7
davila7/claude-code-templates

wealthville-pool-scoring

Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter/Hold/Exit/Reduce/Avoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.

Skill与智能体开发
★ 3.3w
davila7
davila7/claude-code-templates

technical-debt-auditor

Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO/FIXME/HACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like "where should I focus refactoring", "find code smells", "audit my codebase", "what technical debt do we have", "prioritize cleanup work", or asks about code quality metrics. Also trigger when the user mentions "code rot", "legacy cleanup", "refactoring priorities", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say "technical debt" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.

Skill与智能体开发
★ 3.3w
davila7
davila7/claude-code-templates

readonly-sql-guard

Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production/ERP/analytics database (a "query" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write/DDL/side-effect/transaction-escape risks. Checks what a statement CALLS, not just its shape.

数据分析师后端与接口Skill与智能体开发
★ 3.3w
davila7
davila7/claude-code-templates

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

前端开发
★ 3.3w
davila7
davila7/claude-code-templates

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

测试与质量前端开发
★ 3.3w
davila7
davila7/claude-code-templates

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

内容创作者写作与文案Skill与智能体开发
★ 3.3w