SKILL · quality-cd
Skill: eval authoring
A SKILL.md that walks an agent (or an engineer) through authoring a new eval correctly: pick the grader at the top of the hierarchy, place it in the capability or regression suite, and wire the graduation rule.
✓ verified 2026-07-18 · stack: claude-code · source
Eval discipline dies of friction: authoring a good eval means remembering
the grader hierarchy, the capability/regression split, and the graduation
rule, every time. A skill makes the procedure a command. Skills live at
.claude/skills/<name>/SKILL.md; the frontmatter description tells Claude
when to load it, and the body loads only when used
(skills).
---description: Author a new eval for this project's suite. Use when asked to add an eval, measure a behaviour, or turn a bug report into a regression check. Produces a code-graded eval file in the right suite directory.---
Author one eval. Follow the steps in order and stop at any hard rule.
## 1. Name the property
Write one sentence: "This eval fails when <specific behaviour> stopsbeing true." If you cannot write that sentence, the property is not readyto measure; say so instead of authoring something vague.
## 2. Choose the grader (top of the hierarchy wins)
- Mechanically checkable (file exists, command exits 0, output matches, tests pass): write a CODE grader. This is the default and the goal.- Genuinely fuzzy (tone, faithfulness, plan quality): use one judge per dimension from evals/judges/, and note in the eval header that its verdicts only count once the judge's calibration set agrees with human grading. Never author a new judge inline.- Requiring human opinion: do not author it here; flag it for the team.- Checking that the agent followed specific intermediate steps: do not. Grade outcomes, not paths; step-checking makes brittle tests.
## 3. Place it
- evals/capability/: new, hard, expected to fail often. A hill to climb.- evals/regression/: things that reliably pass today. Near-100% by design; wired into CI as a required check.- Graduation: when a capability eval passes consistently (three consecutive green runs), MOVE the file to evals/regression/. Note the move in the PR description.
## 4. Write it
Use node's built-in test runner, one scenario per file, filenamekebab-case, a header comment saying what regression this catches and thedate it was authored. Deterministic: no network, no wall-clockdependence, seeded randomness only.
## Hard rules
- Never edit or delete an existing eval to make a suite pass. If an eval looks wrong, flag it with your reasoning and stop.- Never move an eval INTO regression that has not shown consistent passes; aspiration is not graduation.- An eval with no failure story ("this catches X breaking") does not ship.What it does
- Turns the eval-authoring procedure into
/eval-author, loadable on demand, so the discipline costs no permanent context. Long reference material in a skill “costs almost nothing until you need it” (skills). - Encodes the grader hierarchy as a decision procedure with the code grader as the default, mirroring the source guidance: code graders are “fast, cheap, objective, reproducible”; judges need calibration; humans are for calibrating judges.
- Encodes the two-suite structure and makes graduation an explicit MOVE with a three-green threshold, so the regression suite grows from demonstrated stability rather than optimism.
- Bans outcome-free evals and step-checking: “checking that agents followed very specific steps” is called out as producing brittle tests.
Failure modes
- The skill cannot enforce its own hard rules. It is prose. Pair it
with the eval-gate Stop hook and
CODEOWNERS protection on
evals/regression/so the rules survive contact with a determined shortest path. - A three-green graduation threshold is a heuristic. Flaky environments can produce three greens. If an eval bounces back out of regression, that bounce is the finding; record it.
- Skills are workspace-scoped. A monorepo with several agent surfaces needs the skill in each workspace root or a shared plugin; a skill the agent cannot see is a checklist nobody runs.
Verified against the SKILL.md frontmatter/location contract at code.claude.com/docs/en/skills and the suite split, grader hierarchy, and graduation rule at anthropic.com/engineering/demystifying-evals-for-ai-agents, 2026-07-18.