Evaluates a skill against a no-skill baseline, on fixtures with planted answers and scripted graders, and tests whether its description fires. Use when checking whether a skill earns its place, before or after editing one, or when a skill misfires or fails to trigger.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill Eval?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/philoserf-skill-eval)
---
name: skill-eval
description: Evaluates a skill against a no-skill baseline, on fixtures with planted answers and scripted graders, and tests whether its description fires. Use when checking whether a skill earns its place, before or after editing one, or when a skill misfires or fails to trigger.
argument-hint: "<skill-name or path>"
---
# Skill Eval
A skill earns its place by what it adds over a model running without it. Measure that **delta**: run the same prompts with the skill and without it, grade both by script against answers you planted, and read every output yourself. Scores lie when the answer key is wrong; reading catches it.
Evals live beside the skill in `evals/`, committed with it. Runs live in the session scratchpad, never in the repo.
## Step 1: Map the skill
Read the SKILL.md and everything it points at. List:
- its **branches** (modes, arguments, the distinct cases it handles);
- the **house rules** it adds, which a model can't guess: formats, batch sizes, destinations, things it must never do;
- the **judgment calls** it makes: routing, placement, classification, what to skip.
If `evals/` exists, read it and extend it rather than starting over. Done when every branch has at least one prompt planned and every judgment call has a planted case that tests it.
## Step 2: Build the fixture
A **fixture** is a throwaway copy of what the skill reads, with **planted** items whose right answer you decide in advance and record in `evals/ground-truth.json`. Plant from the skill's own rules: a duplicate, a dead link, an item it must skip, a judgment case with exactly one defensible answer. Before calling an answer right, check it against the real archive or vault; a planted answer the user's own files contradict is a bug in the key. Then list every other **route** to that answer the environment offers (a stored copy, a second binary, a source clone, a cache) and close each one or plant around it; a run that takes an open route is right, and the key is wrong.
`evals/make_fixture.*` rebuilds the fixture and writes a hash of every file before the runs. The real landing zones, vault, and repos are never a fixture: runs read real reference material (filing guides, indexes, `/Applications`) and touch only the copy.
`evals/evals.json` holds the prompts: `[{"id": "eval-1-default-batch", "prompt": "/skill-name", "notes": "…"}]`, one per branch plus a natural-phrasing one.
## Step 3: Run
One background subagent per run, all launched in one message. Configs: `with_skill`, `without_skill`, and `old_skill` (a snapshot copied to the scratchpad) when testing an edit. **Three runs per config** on prompts with judgment calls; one is enough for format-only prompts.
Brief each run with:
- the skill path to follow; for `without_skill`, the same task in plain words, and a fence: the run stays out of every `.claude` folder and uses no skill, since a baseline working in the skill's own project can find the skill and read it;
- the user's message;
- a **test substitution** mapping each real location the skill names to its fixture path, and naming what stays real;
- the **read-only** limit: nothing moved, renamed, trashed, committed, or edited; stop where the skill asks for approval;
- where to save: `<scratch>/<skill>-eval/iteration-N/<eval-id>/<config>/run-K/response.md`, then return the same text.
## Step 4: Grade
When every run has reported, match runs to their transcripts:
```bash
uv run --script ~/.claude/skills/skill-eval/scripts/collect.py <iteration-dir>
```
It writes each run's `timing.json` and fails any `without_skill` run that reached into a `.claude` folder or used the Skill tool. Rerun a breached baseline; its score measures the skill, not the model without it.
`evals/grade.py` (a PEP 723 script) holds the skill's checks and hands them to `scripts/evalkit.py`'s `grade_all`, which reads every `run-*/response.md` under the iteration and writes `grading.json` beside it. `evalkit.py`'s docstring shows the three lines a grader ends with. Each check is tagged with one **kind**:
- `judgment`: a decision checked against the planted answer (destination, placement, routing, skip).
- `format`: the shape the skill prescribes (columns, tags, counts, the approval prompt).
- `safety`: the fixture is byte-identical afterward.
Match each item by the line that names it, so any table or list layout grades the same. Then summarize:
```bash
uv run --script ~/.claude/skills/skill-eval/scripts/summarize.py <iteration-dir>
```
Read every `response.md` next to its grading. Done when each failed check is explained as a skill defect, a grader bug, or an answer-key bug, and the last two are fixed and regraded.
## Step 5: Test the trigger
Only when the description changed, or when a miss showed up in real use. Write `evals/trigger-eval.json`: about 20 `{"query", "should_trigger"}` prompts in the user's own phrasing, half of them **near-misses** that a neighbouring skill owns.
```bash
uv run --script ~/.claude/skills/skill-eval/scripts/trigger.py \
--skill <skill-dir> --evals <skill-dir>/evals/trigger-eval.json \
--neighbors <the skills dir it lives among> --context <that project's CLAUDE.md> \
[--description "candidate text"] --out <scratch>/trigger.json
```
It runs one prompt at a time, three times each, in a throwaway project, and kills each session at its first tool call. Write candidate descriptions by hand, following `writing-for-agents`, and keep the shortest one that passes. Show the user the winning description before writing it into SKILL.md.
## Step 6: Report and keep
Report the delta by kind:
- **judgment**, with its spread across runs;
- **format**;
- **safety**.
Large format gains are expected: the runs without the skill have never seen the format. The judgment delta is the skill's real worth. Then:
- name each defect found, and the fix proposed;
- after an approved fix, rerun the affected prompts as `iteration-N+1`, with `old_skill` as the baseline;
- commit `evals/` (prompts, fixture builder, ground truth, grader, trigger prompts, and the trigger result with its date) in the skill's repo.