/evals:design <app|skill <name>|plugin <path>>from evals
Interviews for measurable success criteria and scaffolds an eval suite for LLM apps, features, prompts, or skills. Writes criteria docs and test cases into the repo.
Ships in evals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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 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 as case.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.
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; this skill never runs its phases itself. 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.
Interview until each criterion is specific, measurable, achievable, relevant (background: Define your success criteria):
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.
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: local-decisions, "Rubric form"); human grading only with stated justification.
Case authoring (background: eval-design.md):
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.orders/2026-q3.csv passes, eval-inputs/case-07.csv does not.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.
anthropics/skills changes Step 1 of build-eval.md, or a docs
page starts covering eval input sources; then the pointer moves there.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 hard or routine tag, 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 eval-audit.md section 1.
Correlate with https://claude.dev/blog/automating-eval-design-and-hillclimbing#adversarial-sampling.
As of: 2026-10-01
Recheck trigger: a commit to anthropics/skills changes section 1 of eval-audit.md, or a
docs page starts covering case selection; then the pointer moves there.
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.
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).
${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, "Review output" gives a
human reader the reason this repository offers it.anthropics/skills changes that section of build-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, "Rubric form". 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.
case.yaml required fields, see
Eval suite reference and
case.yaml fields.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.
claude plugin eval --help (recorded in docs/native-surfaces.md, the
plugin eval entry).claude plugin eval and 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.Before finishing, confirm and record in the criteria doc:
Check each grader before its scores are trusted. This grades sample outputs, not a suite run.
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.
anthropics/skills changes either section, or a docs page starts
covering grader validation; then the pointer moves there.claude plugin eval, which /evals:plugin-eval guides; an app suite is run by the consumer's own
tooling./evals:validate <eval-dir>.claude plugin eval init: /evals:plugin-eval.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
eval-suite, llm-evaluation, test-scaffolding, success-criteria
5 skills in this plugin
/auditAudit an eval suiteRead-only advisory health report for a plugin eval suite (edits nothing; routes fix): skill with no case, triggering/no-fire/legacy case, uncalibrated judge/sample, gate pair, duplicate, grader fit, drift. Use when 'audit my evals', 'is my eval suite healthy', 'find duplicate eval cases'. Not for load: /evals:validate; runs: /evals:plugin-eval./methodologyLLM evaluation methodologyWhen claude-api resolves in this session, prefer hillclimb for model/effort sweeps over an existing suite; this before suite/criteria exist. LLM-eval guidance: grading method/rubric, model-graded judge, golden answer, prompt quality, repo route. Load before answering on writing eval criterion/metric/target, 'how do I eval this', 'LLM eval', 'grading rubric'. Not for suites: /evals:design; runs: /evals:plugin-eval./plugin-evalRun a plugin eval suiteRun/read claude plugin eval: preflight, cost, validity verdict, noise-report, arm delta, aggregate-result.json, CI gate, headless claude -p, socat/bubblewrap, --allow-tools, worktree refusal, CLAUDE.md/rules. Load before answering: 'run my plugin evals', 'eval my skill', 'is this gain real'. Not for design: /evals:design; or skill-creator JSON./validateValidate eval cases before a run spends moneyStatically validate a claude plugin eval suite (prompt.md, case.yaml, graders/*.md) offline before spending money: load FAILs, authoring WARNs, deterministic grader check against sample answers. Use when 'validate my eval cases', 'lint case.yaml', 'why did my case fail to load'. Not for skill-creator JSON format.npx claudepluginhub melodic-software/claude-code-plugins --plugin evalsOther plugins' skills for the same job