Automated summary
Builds an eval suite for an LLM feature using real-world datasets, per-case-type graders, and a regression gate that blocks degraded releases.
Strengths
- Splits a dev set from a frozen holdout so tuning cannot inflate measured quality
- Picks the cheapest trustworthy grader per case type (programmatic assertion, LLM-as-judge, reference check)
- Requires calibrating the LLM judge against human-labeled items before relying on it
- Breaks metrics down by category to catch a collapsed subcategory that an average would hide
Limitations
- Assumes you already have 50-200 labeled real cases or documented failure examples
- Does not cover first-pass prompt design or latency and cost optimization
- Judge reliability still hinges on rubric quality and calibration effort
Use it once an LLM feature is mature enough that a silent quality regression would hurt users.
Skip it for a first prompt sketch or for pure latency and cost tuning, which need different techniques.
Security analysis
SafeThis is a purely advisory methodology document about building LLM eval suites. It declares no tools, runs no commands, touches no files, network, or secrets, and its only code snippets are illustrative grader assertions (exact_match/iso_date) that carry no execution risk. Nothing destructive, obfuscated, or exfiltrating is present.
No concerns found
How this analysis is madeExamples
Build an eval suite for our invoice field extraction feature. I have 120 real invoices with expected JSON (total, due_date, currency). Set up a dev/holdout split, choose graders per field, and give me the aggregate plus per-category scores.We're moving our support-reply prompt from v3 to v4. Run both against the frozen holdout and tell me if the gate 'no category may regress' passes, and list every individual failure for inspection.Here are 20 human-labeled open-ended support answers. Have the LLM judge grade them with our rubric, report agreement with the human labels, and tighten the rubric if agreement is low.name: ai-eval-harness version: 1.0.0 description: Build an eval suite for an LLM feature with datasets, graders, and regression gates that block bad releases. author: matrixx0070 tags: [eval, testing, llm-judge, regression, ci]
When to use
Use this when an LLM feature is real enough that a silent quality regression would hurt users, and "it looked fine when I tried it" is no longer acceptable proof.
Not for: the first prompt sketch (iterate by hand first, see ai-prompt-design), or pure latency/cost tuning (see ai-cost-latency).
Method
- Collect a dataset from real traffic and known failures, not invented cases. Aim for 50-200 items; label each with the expected outcome or a rubric.
- Split into a dev set (you tune against) and a frozen holdout (you only measure). Never tune on the holdout.
- Pick a grader per case type. Decision point: exact/enum/JSON → programmatic assertion; open-ended → LLM-as-judge with a rubric; factual → check against a reference. Prefer the cheapest grader that is trustworthy.
- Validate the LLM judge itself: have it grade 20 human-labeled items; if agreement is low, tighten the rubric before trusting it.
- Compute aggregate metrics (accuracy, pass rate, per-category breakdown) plus a list of individual failures for inspection.
- Set a regression gate: a threshold that must hold in CI before a prompt/model change merges. Decision point: block on holdout pass-rate drop OR any critical-category failure.
- Re-run on every prompt, model, or retrieval change; archive scores per version.
Example
Feature: invoice field extraction. Dataset: 120 real invoices, expected JSON per invoice.
grader = exact_match(pred["total"], gold["total"])
and iso_date(pred["due_date"]) == gold["due_date"]
Baseline (prompt v3): 108/120. Candidate (v4, added a few-shot example): 116/120, but 2 NEW failures in the "foreign currency" category. Gate rule "no category may regress" blocks the merge until v5 fixes currency, reaching 119/120.
Pitfalls
- Vibes as eval. Eyeballing a few outputs. If it is not scored on a frozen set, it is not an eval.
- Trusting an unvalidated judge. LLM judges have biases (length, position). Calibrate against human labels first.
- Aggregate blindness. A steady average hides a tanked subcategory. Always break down by category.
- Leaky holdout. Tuning until the holdout passes turns it into a training set. Touch it only to measure.
Output format
# Eval Suite: <feature>
DATASET: <n> items | source | dev/holdout split
LABELS: <expected outcome or rubric>
GRADERS:
- <case type> -> <programmatic | llm-judge | reference>
JUDGE CALIBRATION: agreement=<x> on <n> human labels
METRICS: overall=<x> | per-category={...}
GATE: block merge if holdout<<t> OR any category regresses
RESULTS: v<n> <score> | failures=[...]
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/llm-evaluation-harness-mrwakg54' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/llm-evaluation-harness-mrwakg54/download' --output '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md.part' && mv '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md.part' '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && test -s '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ai-eval-harness' && cp -R '.skill-downloads/llm-evaluation-harness-mrwakg54' '.claude/skills/ai-eval-harness'Cursor
test -f '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && test -s '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/ai-eval-harness' && cp -R '.skill-downloads/llm-evaluation-harness-mrwakg54' '.cursor/skills/ai-eval-harness'Codex
test -f '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && test -s '.skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/ai-eval-harness' && cp -R '.skill-downloads/llm-evaluation-harness-mrwakg54' '.agents/skills/ai-eval-harness'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/llm-evaluation-harness-mrwakg54'openskills read 'llm-evaluation-harness-mrwakg54'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/llm-evaluation-harness-mrwakg54/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
ClickHouse Performance Comparison
Testing
Evaluate ClickHouse performance test results, check PR performance changes, compare with history, and assess whether a result is actionable.
Analyze CI Performance Reports
Testing
Analyze CI performance comparison reports for a ClickHouse PR. Cross-references master history to distinguish real regressions from flaky tests.
Santa Method
Testing
Multi-agent adversarial verification with two independent reviewers. Output is checked twice and iteratively fixed until both pass before shipping.