skip to content

How do you prove a Claude Code skill improves results, not just that it triggers, before rolling it out to a team?

level: seniorimportance: nice to knowfreq 6%

answer

  1. firing is not helping
  2. same prompts, skill on and off
  3. a fresh session for every run
  4. the delta between two arms
  5. skill-creator or claude plugin eval

basics

~20 s

Run the same realistic prompts in fresh sessions with the skill and without it, then compare whether it fired and whether the output improved; the skill-creator plugin automates this for one skill, and claude plugin eval reports the delta for plugin skills.

solid answer

~50 s

Seeing a skill fire only proves Claude found it. Measure two things separately: does it trigger on the prompts it should, and stay quiet on others, and is the output better when it does? The method is a baseline comparison: a few realistic prompts, each run in a fresh session with the skill available and again with it off, using `skillOverrides` set to `"off"` for a personal or project skill. Fresh sessions matter because context left over from writing the skill hides gaps in its instructions. The skill-creator plugin automates the loop with `evals/evals.json`, a subagent per case and a with-versus-without benchmark. For a plugin's skills, `claude plugin eval` (v2.1.269+) runs each case three times with the plugin and three without by default, reports `WITH`, `W/OUT` and `Δ`, and exits non-zero below `--threshold`, so CI can gate on it.

code

bash · 8 lines
bash
claude plugin eval . \
  --trust-plugin \
  --json results.json \
  --threshold 0.8 \
  --model claude-sonnet-5 \
  --judge-model claude-haiku-4-5 \
  --no-publish \
  --max-cost-usd 20

go deeper

for a junior

Recall that a skill firing is not proof it helps; you compare results with the skill on and off.

for a middle

Explain the baseline method: realistic prompts, fresh sessions, skill on against off, and how to turn a personal, project or plugin skill off for the second run.

for a senior

Show you can read an eval: Δ, three runs per arm, why the Skill grader is unscored in two-arm runs, what a near-zero Δ with that grader failing means, and how to gate CI.

for a principal

Weigh eval cost against risk: which shared skills deserve a CI suite with pinned models and a spend ceiling, and which need only a quick before-and-after check.

## Triggering is not the same as helping A skill that loads on the right request has passed only the first test. Claude Code's skills guide splits the question in two: **does Claude invoke the skill on the prompts it should**, and **does the output match what you expect when it does**. A skill can fire every time and still add nothing, because Claude would have done as well without it, or it can make the result worse by pushing outdated steps. ## The baseline comparison The check for both questions is the same: 1. **Collect prompts.** A few realistic requests phrased the way people type them, including some that should *not* trigger the skill. 2. **Run with the skill.** Each prompt in a **fresh session**. Context left over from authoring the skill fills in what its written instructions leave out and masks the gaps. 3. **Run without it.** For a personal or project skill, set it to `"off"` in `skillOverrides`. `skillOverrides` doesn't apply to plugin skills, so for those use the no-plugin baseline in `claude plugin eval`. 4. **Compare.** Did it fire where it should? Was the output better? What did it cost in tokens and time? Include negative cases on purpose. In `claude plugin eval`, a "must not invoke the skill" check is a `tool_used` grader on `Skill` with `min: 0` and `max: 0`, marked `arm: both` so it is scored in both arms. ## Two tools that automate it | | skill-creator plugin | `claude plugin eval` | | :- | :- | :- | | Best for | Iterating on one skill inside a Claude Code conversation | Testing a plugin's skills, and gating CI | | Getting it | `/plugin install skill-creator@claude-plugins-official` | Built in from Claude Code v2.1.269 | | Cases | `evals/evals.json` in the skill directory | `evals/<case>/prompt.md` plus `graders/` in the plugin | | Isolation | A subagent per test case | A fresh, isolated non-interactive session per run, only the plugin loaded | | Output | `grading.json`, `benchmark.json`, an HTML review viewer | A `WITH` / `W/OUT` / `Δ` table, `report.html`, `aggregate-result.json` | | Extras | Blind A/B between two versions; description tuning | A threshold exit code; mocked MCP servers | The two formats aren't interchangeable; neither tool reads the other's case files. ## Reading a claude plugin eval result - **Runs.** Each case runs three times by default per arm. A run's score is the fraction of its graders that passed; the case score is the mean of its runs. - **`Δ`.** The with-arm score minus the without-arm score is what the plugin contributed. A case that scores 1.0 both ways passed for reasons other than the plugin. - **The Skill grader.** A `tool_used` grader whose `tool` is `Skill` tells you the skill fired. In a two-arm run it is excluded from the score in both arms and shown in the with-arm as an indicator only, because it can never pass without the plugin and would inflate `Δ`. Under `--ablation none`, nothing is excluded. - **The common first finding.** `Δ` near zero with the Skill grader failing means the description doesn't trigger on natural phrasing. Edit the description and run the same suite again. - **A negative `Δ` while the Skill grader passes.** Suspect the judge before the plugin: re-run with `--judge-model sonnet` and tighten the rubric. - **The report.** `report.html` shows a card per case with its `Δ` and score; a case with a negative `Δ` gets a red left edge, a failed grader is expanded with its explanation, and the unscored Skill grader carries a `plugin-fired indicator` badge. - **Cheap iteration.** `--ablation none` runs one arm, halving cost while you tune graders; `--runs 1` is noisy, so confirm at the default before trusting a change. ## Running it in CI - `--threshold` defaults to `1.0`, so any case scoring below perfect makes the command exit 1. Set the score you actually require. - Pass `--trust-plugin` so the job never waits at the first-run trust prompt, `--json` for a result file, and pin both `--model` and `--judge-model` so a model rollout isn't mistaken for a regression. - `--max-cost-usd` sets a ceiling on the list-price estimate; hitting it exits 2 with partial results. Every run and every judge call is a real model call, counted against your plan's usage or your API bill. - Runs are isolated: your user settings, CLAUDE.md files, other plugins and personal skills don't load, so ship whatever a case depends on inside the plugin under test.

  • A case scores 1.0 with the plugin and 1.0 without it. What have you learned?
    That the plugin is not what made it pass: Claude handles that prompt equally well without the skill. Either the case is too easy to show the skill's value, or the skill adds nothing for that request. Write a case closer to what only the skill knows, such as your conventions or tooling, or question whether the skill earns its listing cost.
  • How do you test a personal skill the same way, without a plugin?
    Run each prompt in a fresh session with the skill on, then set it to `"off"` in `skillOverrides` and run again, comparing whether it fired and what it produced. The skill-creator plugin automates that loop for one skill, storing cases in `evals/evals.json` and writing a with-versus-without benchmark of pass rate, time and tokens.

  • If the skill fires on my test prompt, it works.
  • One run per prompt is enough to judge a skill.
  • Test in the session where I wrote the skill; it has the context.
  • A high with-skill score proves the skill helped.
  • skillOverrides can switch off a plugin's skill for the baseline run.
  • skill-creator and claude plugin eval read the same case files.

Assumes Claude Code 2.1.286; claude plugin eval requires 2.1.269 or later, while the skill-creator plugin installs from the official marketplace.