Eval Code — Development skill for Claude Code
../../skills/eval-code/SKILL.md.
How to install Eval Code
Installs to ~/.claude/commands/calibre-labs-reforge-ai-evals-eval-code.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Calibre-Labs/reforge-ai-evals/HEAD/.claude/commands/eval-code.md -o ~/.claude/commands/calibre-labs-reforge-ai-evals-eval-code.md Restart Claude Code, or start a new session, for it to be picked up.
What Eval Code does
Skills that guide AI coding agents (Claude Code, Codex, Cursor and others) to build evals for your AI product: eval rubrics, eval datasets, trace analysis, code-based evaluators, LLM-as-a-judge prompts and judge alignment.
Alternatives in Development
- Learn Eval — 从会话中提取可复用的模式(Patterns),在保存前进行质量自评,并确定合适的保存位置(全局 vs 项目) 1.9k ★
- Hippo Feature — Build one hippo feature from RESEARCH.md using the micro-eval TDD loop 734 ★
- Route Eval — /route-eval — Evaluate a project and set its routing profile 705 ★
Repository README
This is the README for Calibre-Labs/reforge-ai-evals, shared by 9 entries
in this directory. It describes the repository, not this entry specifically.
AI Evals Toolkit
Skills that guide AI coding agents (Claude Code, Codex, Cursor and others) to build evals for your AI product: eval rubrics, eval datasets, trace analysis, code-based evaluators, LLM-as-a-judge prompts and judge alignment.
From the [Reforge AI Evals course](https://www.reforge.com/courses/ai-evals) by Sandhya Hegde and Justin Bauer of [Calibre](https://calibrelabs.ai).
How it works
Your coding agent can do most of the eval work if it has the right instructions. Two steps stay with you: **reading traces** and **labeling outputs** to calibrate judges. The skills cover the rest.
Start with **[eval-guide](skills/eval-guide/SKILL.md)**. It looks at where you are and loads the right skill.
| Step | Skill | What it does |
|---|---|---|
| 1. Define good | eval-rubric | Writes the eval rubric into your PRD: v1 before traces, v2 after |
| 2. Build test inputs | uig | Designs a diverse eval dataset with a User Input Grid and finds coverage gaps |
| 3. Read traces | You | Annotate what went wrong, in your own words |
| Optional, for step 3 | trace-review-app | Designs and builds a one-file review app for your product's traces, with notes, labels, trace codes and exports (draft) |
| 4. Find failure modes | trace-codes | Clusters your notes into named yes/no failure codes |
| 5. Write evaluators | eval-code, eval-llm-judge | Code checks for objective failures, LLM judges for subjective ones |
| 6. Label a sample | You | Mark outputs pass or fail |
| 7. Calibrate judges | llm-align | Measures each judge against your labels (TPR/TNR) and fixes its prompt |
| 8. Grow the dataset | ticket-to-eval | Turns support tickets and bad traces into regression eval rows |
Coming next: `eval-run` (run the agent and scorers over a dataset), `eval-trace` (tool calls and multi-step traces) and `eval-monitor` (score production and report drift).
Install
**Any coding agent**, with [npx skills](https://github.com/vercel-labs/skills):
npx skills add https://github.com/Calibre-Labs/reforge-ai-evals
Add `--skill trace-codes` to install one skill, and run `npx skills update` to get new versions.
**Claude Code plugin:**
claude plugin marketplace add Calibre-Labs/reforge-ai-evals
claude plugin install ai-evals@calibre-labs
**Manual:** copy any folder in [`skills/`](skills/) into your agent's skills directory. The skills read and write plain files (markdown, CSV, JSON, HTML), so you don't need an eval platform account.
Then ask your agent something like:
Write a v1 eval rubric from my PRD.
Worked examples
- Templates: an AI PRD template, plus PRDs, v1 and v2 eval rubrics, simulated sessions and annotated traces for three agents: Corner (consumer shopping), Ledger (enterprise finance) and Mapper (market research, with 10 traces to annotate).
- Market Map User Input Grid: a complete worked UIG for the single-prompt market research agent from the spring 2026 cohort.
FAQ
What is an AI eval?
An AI eval is a repeatable test that scores an AI feature's outputs against defined criteria, so you can tell whether a prompt, model or agent change made the product better or worse. A useful setup has three parts: a dataset of realistic inputs, evaluators that score each output, and a loop that reruns them on every change.
What is LLM-as-a-judge?
Using a language model to grade another model's output against a written criterion. It's for semantic qualities code can't check, such as whether an answer is correct or an ambiguous request was handled well. A good judge tests one criterion, has binary PASS/FAIL definitions and few-shot examples (including a borderline case), and writes its critique before its score.
When should I use a code-based evaluator instead of an LLM judge?
Use code for anything structural and deterministic: counts, required sections, citations, formats. It's fast, free and never drifts. Use an LLM judge for meaning: correctness, relevance, tone, edge-case handling. Most products need both.
How do I know whether my LLM judge is trustworthy?
Label 20–40 outputs by hand (roughly half PASS, half FAIL), run the judge on the same outputs, and compute TPR (how often it agrees when a human said PASS) and TNR (how often it agrees when a human said FAIL). Aim for both above 90%, with 80% as the minimum. Track them separately: a judge with high overall accuracy can still be too lenient.
What is a User Input Grid?
A method for designing eval datasets that cover the real diversity of inputs an agent will face. List the dimensions along which user inputs vary (such as query type, domain, phrasing style and time frame) and the values each can take, then check that your dataset hits every value several times. It replaces datasets built from engineer intuition, which overfit to what engineers know, or from raw logs, which overfit to easy, common cases. See the [Market Map example](docs/uig-market-map.md).
How big should an eval dataset be?
Coverage matters more than size. 30–80 inputs that hit every value of every dimension at least 3 times usually beat 500 random ones. Tag every row with its dimension values so you can slice results and see where the agent fails.
What goes in an AI PRD and an eval rubric?
An AI PRD specifies the agent's behavior, not screens, including how much autonomy it has and the release thresholds that gate a launch. The eval rubric lists the criteria the agent is judged on, with the definition of success and known risks next to the criteria they justify. Write v1 from the PRD before reading any traces, then sharpen it into v2 after trace analysis.
What are the most common eval mistakes?
- Writing evaluators before reading traces, so they test what you imagined instead of how the agent actually fails.
- Compound judges that check several things at once, which are uninterpretable when they fail.
- Trusting a judge without checking it against human labels.
- Datasets built from intuition or raw logs instead of deliberate coverage.
- Running evals ad hoc instead of on every prompt or model change.
Do I need a particular eval platform or model?
No. The skills work in any coding agent that supports skills, and they read and write plain files. `llm-align` and `ticket-to-eval` can also read from platforms such as Braintrust or LangSmith if your data lives there.
About
Built by Sandhya Hegde and Justin Bauer, co-founders of [Calibre](https://calibrelabs.ai), an applied AI research and consulting firm. Calibre writes about AI product quality at [blog.calibrelabs.ai](https://blog.calibrelabs.ai). The [Reforge AI Evals course](https://www.reforge.com/courses/ai-evals) also covers production monitoring, agent success metrics and the eval-driven roadmap.
Code is [MIT](LICENSE). Skills, templates, datasets and docs are [CC BY 4.0](LICENSE-CONTENT). To cite this repo, use GitHub's "Cite this repository" button.
Related Skills
Quick Eval
Quick job evaluation. Paste a JD and get a score plus one-paragraph summary. Faster than a full evaluate. Use
K12 Teacher Skills
Skills and eval rubrics for K-12 teachers, co-developed with Learning Commons
Live Eval And Cost
Live Evaluation & Cost Analysis — GenAI IDP Accelerator
Eval Compare
/eval-compare — Version Comparison
Eval Evolve
/eval-evolve — Optional Plugin-Assisted Multi-Round Evolution via Ralph Loop
Clojure Nrepl
Info on how to evaluate Clojure code via nREPL using clj-nrepl-eval
Related Agents
Eval Engineer
GAIA evaluation framework specialist. Use PROACTIVELY for writing eval tests, generating ground truth, running
Eval Curator
Omd A11y Auditor
Stage 0 deterministic gate of the eval pipeline. Validates DESIGN.md Core v2 binding and portability, then run