Command Palette

Search for a command to run...

Назад к скиллам
скилл № 45629

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от 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.md frontmatter keys: schema_version, name, description, tags, plugins, runs, expected_outcome, model, max_turns, timeout_seconds, allowed_tools, append_system_prompt, env. A time limit is timeout_seconds; timeout is an unknown key, so the case fails to load.
  • Grader type: regex, tool_order, tool_used, file_exists, llm, baseline. Any other value, such as contains or string_match, is no usable type, so the case fails to load. A substring or pattern check is type: regex with the text in pattern.
  • Options per type, beside the type, weight, arm and name every grader takes: regex pattern, flags, match, target; tool_used tool, input_match, min, max; tool_order before, after; file_exists path, exists; llm criteria, focus; baseline baseline_file, criteria.
  • Required options per type: regex pattern; tool_used tool; tool_order before, after; file_exists path; llm criteria; baseline baseline_file, criteria. A graders/*.md body stands in for pattern (regex) or criteria (llm, baseline).
  • Regex target and llm focus values: last_message, trace, files, mock_calls, or { source: file, path: <path> }. Any other value, such as focus: reply, fails to load.
  • Bounds: runs 1 to 50, max_turns 1 to 200, timeout_seconds 1 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 no plugins/<plugin>/skills/<skill>/SKILL.md;
  • a context.scaffold_script, context.history_file or context.add_dirs entry that names nothing in the case directory;
  • a tool_used grader on tool: Skill whose input_match names, as a literal token, a <plugin>:<skill> with no SKILL.md, or on tool: Agent a <plugin>:<agent> with no `plugins//age
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Validate с