Design an evaluation suite
Guides the consumer from "I want to evaluate X" to committed artifacts: a success-criteria document
and a graded eval suite. Method follows Anthropic's official evaluation guidance. This page and
the /evals:methodology page state the rules; work from them. The methodology reference files
linked below are background for a human reader.
Arguments
$ARGUMENTS names the target. Three shapes:
app(or a path/description of an LLM-powered feature): evals for the consumer's own
LLM-based application behavior.
skill <name>: evals for a consumer-authored Claude Code skill, emitted ascase.yaml
cases in the eval directory of the plugin that ships it.
plugin <path>: behavioral cases for a whole Claude Code plugin, measured against a
no-plugin baseline. This target is not scaffolded here: hand it to claude plugin eval init,
which interviews for the cases and graders and writes them in the layout its own runner reads.
Phase 1 still applies, because criteria come before cases whoever writes them. Before the
hand-off, say in one line: read and approve every case input before it is written, and keep raw
transcripts out of the cases under Transcripts.
No argument → ask which target, with one example of each.
Route by repository kind
Decide the kind from the repository before Phase 1, then name the route:
| Repository | Route |
|---|---|
| A Claude API app (its code calls Claude through the Anthropic SDK or API) | The first step is /claude-api build-eval, which the user types; this skill never starts it. Lead the answer with it, do not run the phases below by hand before it, and stop. The app target below is for an LLM app that does not call Claude, or for when /claude-api does not resolve |
| A skill or plugin repository (a .claude-plugin/plugin.json or SKILL.md files) | Continue here with the skill or plugin target; /evals:plugin-eval runs a plugin suite |
| Both | Report both routes, each for its own part of the repository |
| No model in the loop | Say that LLM eval design does not apply, and stop |
Same-model reminder: ${user_config.same_model_warning}. If it renders empty or as the literal
placeholder text, use true, the manifest default, and say so. When it is true, add one line
beside the build-eval route: give the grader a different model from the app under test.
Phase 1: success criteria (before any cases)
Interview until each criterion is specific, measurable, achievable, relevant
(background: Define your success criteria):
- What does success look like, concretely? Reject unmeasurable phrasings by proposing a
measurable rewrite ("good answers" → "≥90% of answers judged correct against their rubric").
- Which dimensions matter? Walk the eight (fidelity, consistency, relevance/coherence,
tone/style, privacy, context use, latency, price); keep the ones with a real user need. Most
targets are multidimensional. Press for at least fidelity plus one guardrail dimension.
- What is achievable? Anchor each target to a baseline (current behavior, prior experiment, or a
published benchmark); when no baseline exists, record the first run as the baseline.
Write the result to docs/eval-criteria/<target>.md in the consumer repo (create the directory if
absent; respect an existing consumer convention for criteria docs if one is documented in the
consumer's own CLAUDE.md or rules). Each criterion: dimension, metric, target number/scale,
rationale line.
Phase 2: eval suite
Per criterion, pick the cheapest reliable grading method (background:
Grade your evaluations, Example evals):
code-graded where the output can be constrained to allow it; LLM-graded otherwise, with a rubric
of checkable pass/fail claims a grader can verify one by one and a constrained verdict (this
repository's default; background:
rubric form); human grading only with
stated justification.
Case authoring (background: eval-design.md):
- Mirror the target's real input distribution. Include edge cases explicitly: irrelevant or
nonexistent input, overly long input, poor/harmful/irrelevant user input for chat surfaces,
ambiguous cases.
- Every case carries a golden answer: an exact answer for code-graded cases, rubric-instructions
for LLM/human-graded cases.
- Draft a baseline set by hand with the consumer, then offer to generate more cases from it,
favoring volume over polish. Volume means cheaper grading per case, never easier cases.
- Evidence for an expectation comes from what the run left behind: its transcript (in
claude plugin eval, the tool_used and tool_order graders check which steps ran) or the
files it wrote. A model's description of its own work supports no expectation, so a case never
asks it to name the skills or rules it applied.
- A model that can tell it is being watched behaves differently. Anything it reads, from the
prompt to fixture file and folder names to a slug or branch the case creates, stays free of
words like test case, benchmark, grader, rubric or eval. Fixtures take names from their domain:
orders/2026-q3.csv passes, eval-inputs/case-07.csv does not.
- The prompt reads like something a real user would send, asking for the work in that user's
words. Nothing in it reveals that this is a test run, what the case checks, or which skill or
step the grader is looking for.
Gathering cases
Take input sources in the order at the pointer below, and use the first one the consumer can use.
A transcript source is subject to Transcripts before any of its text becomes a
case.
- Pointer: for the source order, see
- Correlate with <https://claude.dev/blog/automating-eval-design-and-hillclimbing#designing-examples>.
- As of: 2026-10-01
- Recheck trigger: a commit to
anthropics/skillschanges Step 1 ofbuild-eval.md, or a docs
page starts covering eval input sources; then the pointer moves there.
Case selection
- A case is in the suite because a person can say why it is hard, or because it guards a routine
behavior. Never pick a case only because today's model fails it.
- Write the reason down before the case lands. If no one can say why a case is hard, mark it
routine or drop it.
- Every skill-eval case carries its difficulty as a
hardorroutinetag, and its source (where
it came from: an observed failure, a rewritten transcript, a documentation example, the
consumer's own writing) and, for a hard case, why it is hard, in its description.
- When the suite will gate a cut or rewrite of the skill, ask the consumer which rules the cut
touches and include cases whose expected outcome depends on each of them, so the detection
control in plugin-eval reading-results.md, Detection control
can score lower without the rule. A suite with no such case cannot vouch for that cut.
- Pointer: for task design checks on a case set, see
- Correlate with <https://claude.dev/blog/automating-eval-design-and-hillclimbing#adversarial-sampling>.
- As of: 2026-10-01
- Recheck trigger: a commit to
anthropics/skillschanges section 1 ofeval-audit.md, or a
docs page starts covering case selection; then the pointer moves there.
Transcripts
Check the repository's visibility before any transcript text becomes a case:
gh repo view --json visibility --jq .visibility. Only PRIVATE counts as private. PUBLIC,
INTERNAL, an error, no gh, or no GitHub remote all count as public.
- Public: no raw session or product transcript goes into a committed case. A one-to-one rewrite
is allowed: one case per original, with every sensitive or identifying detail changed. Its
review is the input approval below, with the identifying-details checklist.
- Private: for data handling, see the Step 1 pointer in Gathering cases.
Input approval
Every input is approved by the consumer before it is written. This covers every suite this skill
writes (a skill's case.yaml cases, an app's cases.jsonl).
- Write the candidate cases as a JSON array to a scratch file outside the repository.
- Format:
${user_config.review_format}. If it renders empty, as the literal placeholder text,
or as any value other than markdown or html, use markdown, the manifest default, and say
so. Render:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/design/scripts/render-review.py" <cases.json> --format <format> --out <scratch file>
and point the consumer at the file it prints. The html output escapes every field; the
review output record gives a
human reader the reason this repository offers it.
- Ask the consumer to read every case, then say whether the set is representative and what is
missing or unneeded. State any observation about the set as counts and named cases.
- For each one-to-one transcript rewrite, walk this checklist with the consumer and get a yes on
each line: names of people and organizations; email addresses, phone numbers, postal
addresses; account, order, ticket and user IDs; URLs, hostnames, IP addresses; internal
project, product and code names; file paths carrying user names; dates and times that pin one
event; secrets, tokens, keys; any sentence a search engine could match to the original; a rare
combination of details that singles out one person or incident.
- Write nothing until the consumer says yes. When they approve with changes, make the changes,
re-render, and ask again.
- Pointer: for input approval, see
build-eval, Get the inputs approved.
- As of: 2026-10-01
- Recheck trigger: a commit to
anthropics/skillschanges that section ofbuild-eval.md.
Target = app: scaffold evals/<target>/cases.jsonl (one JSON object per case: id, input,
golden_answer, grading (exact|string_match|llm_rubric|human), optional rubric) plus a
README.md documenting how the consumer's own tooling should run and grade them. For
llm_rubric cases the README inlines a grader prompt in the shape of
Tips for LLM-based grading, with the rubric form of
local-decisions.md. Honor an existing
consumer eval layout when one is already present. Extend, don't rename.
Target = skill: emit one case directory per case, <eval-dir>/<kebab-case-name>/, in the
eval directory of the plugin that ships the skill. Each holds a case.yaml carrying the fields it
requires plus description, tags, expected_outcome and graders; a prompt.md whose body is
the prompt and which carries no frontmatter, so each field has one source; and a
samples/<grader-name>.json for each deterministic grader. expected_outcome is the case's
golden answer and each grader checks one expectation; follow the
case authoring checklist. Cover trigger/routing (a
natural-language prompt with a tool_used Skill grader), the happy path, at least one
refusal/guardrail, and one anti-pattern the skill must not exhibit. When the skill sits in no
plugin, wrap it in a directory carrying a minimal .claude-plugin/plugin.json and write the cases
in that directory's eval directory. Validate the written cases with /evals:validate <eval-dir>.
Leave an existing skill-creator eval file for the skill as it is unless the consumer asks to
convert it; the overwrite rule below applies.
- Pointer: for the eval directory, the case layout and the
case.yamlrequired fields, see
Use claude plugin eval's with arm for "does the output meet these expectations" and its
with/without delta for a comparative claim (the skill improves on what the model does without it,
or the claim covers a whole plugin: its skills, agents and hooks together). /evals:plugin-eval reads that delta.
Whether the skill fires is not a delta question: the no-plugin arm has no skill to invoke, so read
it from the with-arm tool_used: Skill indicator.
- Pointer: when a case's design turns on how the arms run or which graders are scored, fetch
live, and read claude plugin eval --help (recorded in docs/native-surfaces.md, the
plugin eval entry).
- Pointer: for choosing between
claude plugin evaland skill-creator for a skill's eval, fetch
Evaluate and iterate on a skill;
for grading an agent's outcome rather than its transcript, see
Demystifying evals for AI agents.
Phase 3: grading hygiene gate
Before finishing, confirm and record in the criteria doc:
- LLM-graded cases name a grader model different from the generator and constrain the verdict
format. Add a reasoning-then-discard instruction only where the grader model does not already
think before answering; a grader with always-on thinking reasons before it decides, so an
output-side reasoning block buys nothing and adds output tokens every re-run pays for.
- Re-run cost is stated (which cases are code-graded and free vs LLM-graded and metered).
Grader check
Check each grader before its scores are trusted. This grades sample outputs, not a suite run.
- Grade a handful of cases with the proposed grader, using outputs the consumer supplies or
already has. Show each verdict beside its output.
- Ask where the consumer would have scored differently.
- On any disagreement, revise the rubric and repeat with a fresh handful until the consumer says
yes.
- Record the agreement in the criteria doc: cases checked, cases where the consumer agreed, and
the date.
Labeled set: ${user_config.labeled_grader_check}. If it renders empty or as the literal
placeholder text, use false, the manifest default, and say so. When it is true, also have the
consumer label a larger set pass or fail on their own, grade the same set, and record the
agreement rate and every disagreement in the criteria doc.
- Pointer: for the grader check, see
build-eval, Get the grading method approved;
for an LLM judge, see
eval-audit.md, When the grader is an LLM judge.
- Correlate with <https://claude.dev/blog/automating-eval-design-and-hillclimbing#validating-the-grader>.
- As of: 2026-10-01
- Recheck trigger: a commit to
anthropics/skillschanges either section, or a docs page starts
covering grader validation; then the pointer moves there.
What this skill does not do
- Does not run or score a suite. Scaffolding is where this skill stops; the grader check grades
a handful of sample outputs and nothing more. A skill or plugin suite is run by
claude plugin eval, which /evals:plugin-eval guides; an app suite is run by the consumer's own
tooling.
- Does not overwrite an existing criteria doc or eval suite without showing the diff and getting
explicit confirmation.
- Does not invent baselines. A target with no anchor is recorded as provisional.
Next
- Scaffolded a skill's cases:
/evals:validate <eval-dir>, then/evals:plugin-evalto run them. - Routed a plugin target to
claude plugin eval init:/evals:plugin-eval.
Gotchas
- A consumer saying "just write some tests" still gets Phase 1. Criteria first is the method, not
a preference. Keep it to the few questions that unblock measurable targets.
- Refuse to emit an eval case with no golden answer or rubric. A case that can't be graded is not
an eval.
- A raw transcript stays out of a public repository's cases even when the consumer asks for it.
Offer the one-to-one rewrite and its checklist instead.