Design

From melodic-software/claude-code-plugins · View interactive version

Design is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Design an evaluation suite or test cases for an LLM-based application or a Claude Code skill: interview for measurable success criteria before any case is written, pick a grading method per criterion, and scaffold a criteria doc plus eval cases into the consumer repo. Use when: writing test cases fo

How to use this skill

Skill file

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:

LLM-based application behavior.

cases in the eval directory of the plugin that ships it.

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):

  1. What does success look like, concretely? Reject unmeasurable phrasings by proposing a

measurable rewrite ("good answers" → "≥90% of answers judged correct against their rubric").

  1. 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.

  1. 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):

nonexistent input, overly long input, poor/harmful/irrelevant user input for chat surfaces,

ambiguous cases.

for LLM/human-graded cases.

favoring volume over polish. Volume means cheaper grading per case, never easier cases.

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.

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.

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.

build-eval Step 1.

page starts covering eval input sources; then the pointer moves there.

Case selection

behavior. Never pick a case only because today's model fails it.

routine or drop it.

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.

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.

eval-audit.md section 1.

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.

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.

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).

  1. Write the candidate cases as a JSON array to a scratch file outside the repository.
  2. 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.

  1. 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.

  1. 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.

  1. Write nothing until the consumer says yes. When they approve with changes, make the changes,

re-render, and ask again.

build-eval, Get the inputs approved.

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.

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.

The no-plugin baseline

and How a case is scored

live, and read claude plugin eval --help (recorded in docs/native-surfaces.md, the

plugin eval entry).

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:

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.

Grader check

Check each grader before its scores are trusted. This grades sample outputs, not a suite run.

  1. Grade a handful of cases with the proposed grader, using outputs the consumer supplies or

already has. Show each verdict beside its output.

  1. Ask where the consumer would have scored differently.
  2. On any disagreement, revise the rubric and repeat with a fresh handful until the consumer says

yes.

  1. 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.

build-eval, Get the grading method approved;

for an LLM judge, see

eval-audit.md, When the grader is an LLM judge.

covering grader validation; then the pointer moves there.

What this skill does not do

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.

explicit confirmation.

Next

Gotchas

a preference. Keep it to the few questions that unblock measurable targets.

an eval.

Offer the one-to-one rewrite and its checklist instead.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.