Design
Design/write/scaffold an eval suite or test set for an LLM app, feature, prompt, or skill: interview for measurable criteria, write criteria doc and test…
от melodic-software★ 34 звезды на GitHub
Установить Design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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.yamlcases 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 toclaude 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; 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.
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: local-decisions, "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 `clau
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/render-review.py
- scripts/render-review.test.sh
- scripts/test_render_review.py
FAQ
Что делает скилл Design?
Design/write/scaffold an eval suite or test set for an LLM app, feature, prompt, or skill: interview for measurable criteria, write criteria doc and test cases into repo. Use when 'design evals', 'create an eval suite', 'scaffold evals'. Not for theory: /evals:methodology; checks: /evals:validate or skill-creator JSON; runs: /evals:plugin-eval.
Как установить скилл Design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Design запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…