instruction-eval
БесплатноЗапускает вложенные скриптыНе проверенEvaluate whether changes to skills and CLAUDE.md files have helped or harmed Claude's operational posture. Use when: (1) after trimming or refactoring…
от ionfury★ 25 звёзд на GitHubОб этом скилле
Instruction Evaluation
Two modes: spot-check (interactive, quick) and automated (API-driven, CI-suitable).
Spot-Check Mode (Interactive)
Run probes directly in a Claude Code session. Open a fresh session (no accumulated context) and work through the test cases in references/test-cases.md.
For each probe:
- Ask the question exactly as written
- Check the response against the expected behavior
- Mark Pass / Partial / Fail
- Note the failure mode if Partial or Fail
What to look for:
- Silent gaps — Claude gives a confident but wrong/incomplete answer because the removed content was never replaced by a skill or reference file
- Broken routing — Claude doesn't invoke a skill that should cover the topic
- Constraint drift — Claude complies with a request it should refuse
Automated Mode
Run scripts/run-eval.py — it discovers all tests.yaml files and sends probes to the Anthropic API.
Test file locations:
.claude/tests.yaml— CLAUDE.md behavioral tests (REPO-, INFRA-, K8S-, GHA-).claude/skills/*/tests.yaml— per-skill tests (APP-, EVL-, etc.)
# Install deps
pip install anthropic pyyaml
# Run all probes (all files)
python .claude/skills/instruction-eval/scripts/run-eval.py
# Run probes for one skill
python .claude/skills/instruction-eval/scripts/run-eval.py --skill app-template
python .claude/skills/instruction-eval/scripts/run-eval.py --skill repository
# Run one category across all skills
python .claude/skills/instruction-eval/scripts/run-eval.py --category constraint
# List all probes without running
python .claude/skills/instruction-eval/scripts/run-eval.py --list
# Output JSON for CI
python .claude/skills/instruction-eval/scripts/run-eval.py --json > eval-report.json
The script scores each probe as:
- PASS — all
requiredkeywords matched AND at least oneany_ofmatched AND noforbiddentriggered - PARTIAL — some required keywords missing (manual review needed)
- FAIL — required keywords absent OR forbidden keyword found in response
Interpreting Results
| Signal | Likely Cause | Action |
|---|---|---|
| Constraint probe fails | Root CLAUDE.md principle removed or overridden | Restore to root CLAUDE.md |
| Skill routing probe fails | Skill description doesn't trigger on this phrasing | Update skill description: frontmatter triggers |
| Factored content probe fails | Reference file not linked from SKILL.md, or link broken | Add explicit link in SKILL.md |
| Deduplication probe fails | Removed content had no replacement | Restore to the authoritative location |
| All probes pass | Trimming was safe | Proceed |
When to Run
- Before creating a PR for any skill/CLAUDE.md changes
- After large batch changes (like this trimming session)
- Monthly as a hygiene check
- When users report unexpected Claude behavior
Test Cases
Tests are co-located with what they validate:
- CLAUDE.md tests: .claude/tests.yaml — REPO-, INFRA-, K8S-, GHA- probes
- Skill tests:
tests.yamlin each skill directory (e.g.app-template/tests.yaml)
Adding tests for a CLAUDE.md change: add a probe to .claude/tests.yaml with an ID prefix that identifies the domain (INFRA-, K8S-, etc.).
Adding tests for a skill change: add a probe to the skill's own tests.yaml.
Установить instruction-eval в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл instruction-eval?
Evaluate whether changes to skills and CLAUDE.md files have helped or harmed Claude's operational posture. Use when: (1) after trimming or refactoring skills/CLAUDE.md files, (2) doing a periodic regression check, (3) validating that factored reference files are still accessible, (4) confirming hard constraints are still enforced after instruction changes. Triggers: "test instructions", "regression test", "evaluate skills", "did trimming break anything", "validate claude posture", "test claude docs", "instruction quality"
Как установить скилл instruction-eval?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл instruction-eval запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic