/skill-madness:skill-evalfrom skill-madness
Builds and runs `claude plugin eval` suites to measure whether a skill improves outcomes vs. running without it. Use when adding evals, converting evals.json, or deciding if a skill should be cut.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A skill can read well and still add nothing — the model would have done the
same work without it. claude plugin eval (Claude Code ≥ 2.1.269) measures
that directly: every case runs in an isolated session with the skill loaded
and again without it, and the report's Δ (delta) is the difference.
Δ > 0 is the skill's contribution. Δ ≈ 0 on a case the skill claims to own
means it isn't pulling its weight.
This skill wraps that runner for single skills in this repo. Its job is to make suites correct and keep spend near zero: cheap checks are free, and the only step that runs Claude sessions demands a cap you chose.
What "cost" means here. Every case run is a full Claude Code session on
whatever credential the CLI is logged in with. Logged in through claude.ai
(claude auth status shows authMethod: claude.ai), runs draw on the
subscription's usage allowance, not dollars. The runner's costUsd and
--max-cost-usd are estimated API-equivalent figures, which still work as a
size gauge and a cap. Real dollars are spent only with an API key, or with
paid extra usage past the plan limit. Check claude auth status before
telling the owner what a run will cost them.
| Question | Skill |
|---|---|
| Which skill fires for a request; who steals whose triggers | skill-triage (Jev, fractions of a cent) |
| Does the skill help once it fires — measured, with vs without | skill-eval |
| Is the SKILL.md well written, within budget, spec-conformant | skill-review |
| Draft, iterate and hand-review outputs while authoring | skill-creator (its evals/evals.json) |
evals/evals.json (skill-creator's authoring format) and plugin-eval case
directories live side by side in the same evals/ folder. convert turns the
first into the second; it never deletes or rewrites either.
scripts/skill_eval.py (Python stdlib). Run it from the repo root with a
skill directory as the target:
| Mode | Cost | What it does |
|---|---|---|
convert <skill> [--negative "…"] | free | Each evals.json entry → a case dir with prompt.md, a display-only "skill fired" check and a judge rubric from its assertions. --negative adds a must-not-fire case. Existing case dirs are kept untouched. |
lint <skill>… | free | Enforces the runner's floor rules (below), flags sandbox-breaking paths, and prints the suite's session count and paid-grader count. |
lint --all skills/ | free | The same checks for every skill that has plugin-eval cases. CI runs this on every PR. |
run <skill> --max-cost-usd N | usage | Lints, then runs claude plugin eval with/without ablation and a local-only report. The cap is required; there is no default. |
report <skill> | free | Δ, scores and the real costUsd from the latest evals/results/*/aggregate-result.json. |
Exit codes: 0 ok, 1 lint failure or a case below --threshold, 2 argument
error, 3 claude CLI missing or too old, 5 stopped at the cap (partial
results kept). Results land in <skill>/evals/results/, which is gitignored.
These come from the runner's own authoring guide. Each one exists because without it the number stops meaning anything:
tool_used grader with tool: Skill, min: 0, max: 0, and
arm: both — leave out arm and it becomes display-only and never scores.runs ≥ 3 in the case file. Single runs are noise. For a pilot, pass
--runs 1 on the command line instead of lowering the floor in the file.~/ paths — cases run in a sandbox working directory.timeout_seconds and allowed_tools to fit the work. An
under-set timeout scores 0, not "timed out", which reads as a broken skill.
Tools beyond Read/Glob/Grep/Skill (Bash, Write, Edit, WebFetch, mcp__*)
also need an operator grant at run time: --allow-tools Write.A case can follow every floor rule and still be unable to show a difference. The common ways that happens, all seen in real conversions:
~/repos/x or an "attached" doc. In the sandbox both arms just report "not
found", and Δ ≈ 0 says nothing about the skill. Build a small fixture repo
and copy it in with a case.yaml scaffold_script, then run with
--scaffold. Put contradictions in the fixture (a doc claim the code
disproves) so a grader can tell careful work from a skim../out/ — confirmed"). Otherwise the
with-arm scores worse for following its own rule.convert gives every case
Read/Glob/Grep/Skill, 20 turns and 600 s, and its notes flag cases that look
like they write files. Those need Write in allowed_tools, a real budget
(deep-dive-sized work can take 60 turns and 1500 s), --allow-tools Write
at run time, and graders that read the file (regex with
target: {source: file, path}, or file_exists). A judge on the last
message can't see what the skill wrote.--ablation none isn't a cheaper Δ. It drops the without-arm, so there
is no Δ at all. To save money, pilot one case with --runs 1.| Type | Cost | Use for |
|---|---|---|
regex | free | Mechanical claims: a ```mermaid block exists, a heading is present, a phrase is absent (match: not_contains) |
file_exists | free | The skill must create a file (path: <glob>) |
tool_used / tool_order | free | Fired / must-not-fire; tool sequencing |
llm | paid judge | Claims a pattern can't check. Write the rubric as concrete checkable claims |
baseline | paid judge | Preference between arms — rarely worth it |
convert writes assertions into one llm rubric because evals.json
assertions are prose. After converting, rewrite any assertion that's really a
pattern as a free regex grader. The judge defaults to Haiku; the runner's
guide recommends --judge-model sonnet for nuanced rubrics, which costs more.
That trade is the owner's to make.
The judge is the small cost. Sessions are the big one: a full run is
(cases × runs × 2 arms) complete Claude sessions, each doing real work. lint
prints that count so the size is visible before anything is spent.
Session runs follow the same rule as every paid call in this repo: estimate, run the smallest version, never raise a cap without asking.
lint — free. Read the session count.run <skill> --case '<one>' --runs 1 --max-cost-usd 0.25.
Use the must-not-fire case first; it's the shortest.report — real costUsd for those 2 sessions. Multiply by the session
count from step 1 for the full suite, and tell the owner the figure
(subscription usage, or dollars on an API key) before running it.Trust. The first run in a folder asks whether you trust the plugin; a
non-interactive run can't answer. Ask the owner once, and pass --trust only
after a yes. It doesn't grant extra tools or scaffold scripts.
Publishing. run keeps the HTML report local (--no-publish). Pass
--publish only when the owner wants it on claude.ai.
skill-update, or a sign
the cases are too easy (the model only reaches for skills on tasks it can't
do trivially, so trivial prompts score the same with or without).skill-triage collisions --skill <name> to see who it's stealing
from.report warns a plugin problem (manifest_invalid,
disabled_by_default, will_not_load) — the with-arm ran without the skill.
The scores are meaningless; fix loading first.Re-run a skill's suite after a model or Claude Code upgrade. Harness
behaviour shifts, and model-adaptation pruning should be backed by a Δ, not
a hunch.
| Anti-pattern | Why it fails |
|---|---|
| Running the full suite before a one-case pilot | You learn the cost after paying it |
| A suite with no must-not-fire case | Can't tell a useful skill from an over-eager one |
tool_used: Skill as a case's only grader | Excluded from the score; Δ is always 0 |
llm graders for mechanical checks | Paying a judge for what a regex does free |
Lowering runs in the case file to save money | Breaks the floor; use --runs 1 for pilots only |
Raising --max-cost-usd after exit 5 without asking | The cap is the owner's decision |
| Absolute paths in prompts | The sandbox has a different cwd; the case fails for the wrong reason |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/npx claudepluginhub ivy00johns/skill-madness --plugin skill-madnessOther plugins' skills for the same job