Validate
Statically validate a claude plugin eval suite (prompt.md, case.yaml, graders/*.md) offline before spending money: load FAILs, authoring WARNs, deterministic…
от melodic-software★ 34 звезды на GitHub
Установить Validate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Validate eval cases before a run spends money
A case that fails to load costs the same as one that works. scripts/validate-cases.py reads the
suite off disk and reports what would break, with no model call and no network access.
Run it
python3 "${CLAUDE_PLUGIN_ROOT}/skills/validate/scripts/validate-cases.py" <eval-dir>
<eval-dir> is the directory holding the cases, evals/ under the plugin root by default. Add
--json for the findings as an array of {level, case, file, message} objects; --help prints
the full contract from the script's header.
| Exit | Meaning |
|---|---|
| 0 | no FAIL finding. WARN findings are printed and do not gate |
| 1 | at least one FAIL finding |
| 2 | usage error, or the eval dir is missing or unreadable |
Findings print one per line as <FAIL|WARN> <case>/<file>: <message>, sorted by case then file; a
finding about the suite as a whole carries the eval dir in place of <case>/<file>.
What the two tiers mean
FAIL is what the binary itself rejects: an unknown prompt.md frontmatter key, a grader with no
usable type, an unknown option for the declared grader type, a case with no grader, two graders
sharing a name, a non-positive weight, runs / max_turns / timeout_seconds out of bounds, an
env key that does not match EVAL_[A-Z0-9_]*, a case that has a case.yaml but no
schema_version or name in it or in prompt.md frontmatter (without a case.yaml the binary
supplies both), a case with no prompt (prompt.md body or execution.prompt), a grader missing an
option its type requires, a grader or prompt.md whose frontmatter holds --- on a line other
than its two delimiter lines (the binary cannot load the file; spell it -{3} in a regex), a
plugins entry that resolves outside the plugin under evaluation, inside the eval directory to
anything but a subdirectory of the case, or to a directory other than the plugin itself that
contains the case (see the containment record below), a regex match other than contains,
not_contains or count:N, and a
schema_version that is not a quoted version string or whose major is newer than the binary
supports. The complete sets the script checks, so a question about a key or a type is answered
here without opening the script:
prompt.mdfrontmatter keys:schema_version,name,description,tags,plugins,runs,expected_outcome,model,max_turns,timeout_seconds,allowed_tools,append_system_prompt,env. A time limit istimeout_seconds;timeoutis an unknown key, so the case fails to load.- Grader
type:regex,tool_order,tool_used,file_exists,llm,baseline. Any other value, such ascontainsorstring_match, is no usable type, so the case fails to load. A substring or pattern check istype: regexwith the text inpattern. - Options per type, beside the
type,weight,armandnameevery grader takes:regexpattern,flags,match,target;tool_usedtool,input_match,min,max;tool_orderbefore,after;file_existspath,exists;llmcriteria,focus;baselinebaseline_file,criteria. - Required options per type:
regexpattern;tool_usedtool;tool_orderbefore,after;file_existspath;llmcriteria;baselinebaseline_file,criteria. Agraders/*.mdbody stands in forpattern(regex) orcriteria(llm, baseline). - Regex
targetand llmfocusvalues:last_message,trace,files,mock_calls, or{ source: file, path: <path> }. Any other value, such asfocus: reply, fails to load. - Bounds:
runs1 to 50,max_turns1 to 200,timeout_seconds1 to 3600.
The script's constants are the one place to correct when the schema moves, under the drift record its header carries; this list follows them.
The history-file check is this skill's own FAIL, not a load rejection: a multi-record
context.history_file whose records do not form one uuid/parentUuid chain is a FAIL, and so
is a record that is not JSON. Chain the records: a uuid on each, parentUuid: null on the first
and the previous record's uuid on each later one. A record that is not a user, assistant or
system message and carries no uuid (a summary or file-history-snapshot line) is off the
chain and skipped. Why the chain matters is in the script's history-file drift record.
Four more FAILs are this skill's own stale-reference checks, so a rename cannot leave a case testing a skill or agent that no longer exists:
- a prompt whose leading
/<plugin>:<skill>resolves to noplugins/<plugin>/skills/<skill>/SKILL.md; - a
context.scaffold_script,context.history_fileorcontext.add_dirsentry that names nothing in the case directory; - a
tool_usedgrader ontool: Skillwhoseinput_matchnames, as a literal token, a<plugin>:<skill>with no SKILL.md, or ontool: Agenta<plugin>:<agent>with no `plugins//age
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/check-matchers.py
- scripts/check-matchers.test.sh
- scripts/node_gate.py
- scripts/test_check_matchers.py
- scripts/test_validate_cases.py
- scripts/validate-cases.py
- scripts/validate-cases.test.sh
FAQ
Что делает скилл Validate?
Statically 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.
Как установить скилл Validate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Validate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…