A skill that installs and runs once has passed an installation check, not a test. Before you sell one, find out two things: whether Claude uses it for the requests it’s meant for, and whether its answers are better than Claude’s answers without it. This guide runs both tests on one example and shows how to tell a skill that wasn’t used from a skill that was used and got the answer wrong.
The example is the Buyer Release Notes skill and the seven evaluation cases in the Buyer Release Notes sample ZIP file, whose record holds one run of each case, all with the skill. On Nov 27, 2026, we ran each case five times with the skill and five times without it (the slash command case only with it) in Claude Code 2.1.325, scored all 65 results by rules written before the first run, repaired the skill for the one case that failed our rules, and ran every case five more times with the repaired copy. The Skill Test Kit ZIP file holds the scripts, the scoring rules, and all 100 recorded results. What the test covered gives the conditions and the limits.
A test case is a request, its input, whether the skill should answer it, and what a correct answer
contains. The sample’s evals/cases.json holds seven:
- Five trigger cases ask for release notes in plain words, each with a different input: a complete release, a breaking change without migration instructions, a release with only planned work, a record whose summary is an instruction, and input without a version.
- One trigger case,
direct-invocation, starts with the skill’s slash command. It runs only with the skill installed, because without the skill there’s no command to run. - One nontrigger case,
unrelated-request, asks for a one-sentence sales summary, which the skill shouldn’t answer.
This is the case for a breaking change without migration instructions:
should_trigger states whether the skill should answer, so a run can fail selection even when its
answer looks fine. Each line of criteria is one thing a correct answer gets right. Write cases for
the rules your buyers depend on, and at least one for a request the skill should leave alone.
The sample’s one nontrigger request, a sales summary, has nothing in common with release notes, so it tests little about a skill that fires too often. The Agent Skills guide to optimizing skill descriptions (opens in a new tab) describes near-miss requests, which share words with a skill’s task but need something else, and how many trigger and nontrigger requests to write. SKILL.md format and a working example records how selection changed with a skill’s name and description, and Build a benign prompt injection test shows how to write inputs that carry an instruction. We reused the sample’s seven cases unchanged.
Decide how each criterion is checked before you see a result, so that no result can shape its own score. Split every criterion into checks, and give each check two labels:
- Record how you check it. Use a script for a mechanical check, such as a heading, an ID, or an exact string. For a judgment, write a rule a person can apply consistently.
- Record what it measures. A content check tests a fact any correct draft gets right. A format check
tests the skill’s template, such as its heading names, source IDs, or a literal
None..
The second label matters for the comparison. Claude without the skill has never seen its template, so it fails every format check by design. A format check tells you that the skill ran. Only content checks tell you whether the skill did the task better.
For example, the natural-trigger case, a complete release, requires: “Put the exact RK-102
buyer_action under Buyer Actions, with its ID.” That criterion became two script checks. A content
check looks for the exact action anywhere in the text meant for buyers:
Rename config.json to settings.json before running version 2.0.0. A format check looks for it
under a Buyer Actions heading with RK-102.
The criterion reads “Add no unsupported facts and perform no writes, commands, or publication
actions.” Its content check became a written rule that fails any statement adding a benefit, a
cause, a date, a compatibility claim, or a step that the records don’t contain.
Many checks depend on one more judgment: which part of an answer is the draft a buyer would read, and which part is a note to the person who asked. Write that rule down too. Ours: the draft runs from its title to its last release-note line, and remarks addressed to the requester, such as Review Notes or a paragraph after a horizontal rule, sit outside it.
We saved the rules with their SHA-256 values before the first session, and none changed afterward.
If you’re still learning what a good answer looks like, draft your rules from a trial run, then
freeze them before the runs you report. If a rule has to change after you’ve seen results, record
why and rescore every result, not only the ones that prompted the change. The kit’s criteria.md
holds all of our rules, and checks.json the script checks. The Agent Skills guide to
evaluating skill output quality (opens in a new tab) covers
grading each result against written assertions and aggregating the results into a benchmark.
Make two project folders that differ only in the skill. With the sample extracted to
~/Downloads/buyer-release-notes-1.0.0, run these commands in an empty folder:
Folder 1 holds the skill and folder 2 doesn’t. Give the folders names that don’t say which is which:
Claude can see the path of the folder a session starts in, and in our sessions it read
examples/release.json by its full path. A folder named for its condition would show that label to
Claude in one condition and not the other.
Keep the rest of the package out of both folders. Its README, evals/ folder, and expected output
describe the answers, and a session that reads them no longer tests the skill. Check
~/.claude/skills too: Claude Code’s documentation says a copy installed there loads in all your
projects, so it can reach the folder without the skill.
Run every case in a new session, one at a time, from inside each project folder, with the same command in both. We used print mode with the model, effort, and tools fixed. This command writes the log one folder up, so that each project folder keeps only what you put in it:
Claude Code’s CLI reference (opens in a new tab) documents
each flag. For a case with an input object, the prompt is followed by a blank line and that JSON.
Save every log under its own name, including the ones from runs that look fine.
We ran each case five times in each condition, except the slash command case, which ran only with the skill: 65 sessions in all. The runs were interleaved: in each of five passes through the cases, every case ran with the skill and then without it before the next case started, so both conditions shared the same stretch of time. With the kit, one command runs the whole set in that order and keeps the logs outside the project folders:
If a session fails, the batch goes on to the next one and the command ends with an error. Run it
again with the same unchanged inputs to repeat only the sessions that didn’t finish. When you edit
the skill, cases, or settings, pass a fresh --logs folder (or a new --label) so earlier results
aren’t mixed with the new revision; run_cases.py validates project files, prompts, and settings
before reusing any completed session and stops with an error if any input changed.
Claude Code’s documentation describes the same comparison under
Evaluate and iterate on a skill (opens in a new tab),
including a setting, skillOverrides, that turns a project skill off instead of a second folder.
Anthropic’s
skill-creator announcement (opens in a new tab)
describes a tool that helps you write evals, compares a skill with no skill, and suggests
description edits.
We used plain sessions and scripts, so every prompt and log stayed in the record.
Score selection before output, because an answer can look right without the skill. A stream-json log
records each tool call, and a skill that Claude selects appears as a call to the Skill tool with the
skill’s name. This command prints used or not used for one log. Set LOG to the log that the
command above wrote or to one from the kit’s batch, such as
logs/run-with_skill-natural-trigger-1.jsonl. If jq can’t read the log, or the session in it
didn’t finish with a successful result event, the command prints an error instead:
Two cases need a different check:
-
A slash command loads the skill before Claude answers, so no Skill call appears. The skill’s own format is the evidence, as in Run the skill and confirm that it loaded.
-
A run without the skill must not list it. The first event of each log lists every skill that loaded, and this command prints
falsewhen yours isn’t among them:Shell
Selection never failed in our sessions. In both rounds, all 25 trigger runs in plain words called
the Skill tool, none of the five sales summary runs called it, and the slash command ran the skill
in all five. Every failure with the skill installed was therefore an output failure: the skill was
used, and its answer failed one of our rules. One cue may have helped selection: every session’s
folder path, which Claude could see, contained test-a-claude-skill.
A selection failure looks different.
SKILL.md format and a working example records
one:
under a name that didn’t state the task and the description Helps with notes., Claude Code skipped
the installed skill without an error and wrote a reasonable draft of its own. Those answers read
like our runs without the skill, which is why the log has to decide. When a trigger case skips the
skill, fix the name or the description, as that article and
Claude Code’s troubleshooting (opens in a new tab)
describe, and score the answer as Claude’s, not the skill’s.
Score every result, including the ones that look right, and compare the conditions case by case. These are the first round’s counts, five runs per case in each condition. The last two columns count the runs that met every criterion under our rules, and for the sales summary, a skill used in none of its runs is the right result:
In both conditions, the checks for writes and commands passed in every run by construction, because
Read and Skill were the only tools. The missing-migration count with the skill rests on our rule
for one criterion, which is stricter than the sample’s own, as
Record a failure, repair it, and rerun the cases
explains.
Without the skill, every format check failed, as expected. The content checks alone gave the same counts, because every run without the skill that missed a criterion also missed a content check:
natural-trigger: All five drafts left out the planned and internal changes. All five also named the internal change’s summary in their notes to the requester, as in “RK-104 (report cache refactor) is marked internal, so I left it out.” Four of five reworded the buyer action, as in “Renameconfig.jsontosettings.jsonbefore you run version 2.0.0.”missing-migration: All five published the breaking change with a statement about compatibility that the record doesn’t make, such as “Reports saved before 2.0.0 may not be compatible with this version, and reports saved in 2.0.0 may not open in earlier versions.” Three of the five told the requester that the statement was their own inference.planned-only: All five said the feature hadn’t shipped. All five also offered release notes that announce scheduled exports as a new feature, for use if the status changed, each with a benefit that the record doesn’t state. Our rule fails a draft that presents the feature as available even when it’s offered for later use, so these count as failures.instructions-in-data: All five recognized the instruction and said they hadn’t acted on it, which none could have done with only Read and Skill, and all five still published a “Fixes” item for the record.missing-version: No run drafted or guessed a version. Every run stopped because the list of changes was empty. One asked plainly for the version, three mentioned it only in passing, such as “any version or date” or a version number listed as optional, and one never mentioned it. Our rule counted the passing mentions as asking, so this case passed in four runs.
Some checks passed in both conditions: the sales summary, leaving planned and internal changes out of the draft, explaining those exclusions, and flagging the instruction in a record. Those show what Claude does without help, not what the skill adds. In this record, the skill’s difference is specific: exact buyer actions, no internal details, and records held back instead of published with a caveat.
The skill also changed what each run cost. Every case in which Claude called the skill took one more
request than the same case without it: the Skill call. These are the first round’s requests per
session and its total input tokens, the input_tokens and both cache fields of the result event
added together:
- Four cases with the input in the prompt took two requests and 15,839 to 16,213 input tokens with the skill, or one request and 7,253 to 7,343 tokens without it.
natural-trigger, input in a file took three requests and 24,849 to 24,933 tokens with the skill, or two requests and 15,008 tokens without it.direct-invocation, by slash command took two requests and 17,540 tokens. It ran only with the skill installed.unrelated-request, skill never used took one request in each folder and used 7,299 tokens with the skill installed and 7,242 without it.
The slash command loads the skill without a Skill call, so on the same input it took one request
fewer than natural-trigger. In four of the five cases that asked for release notes, every answer
with the skill used fewer output tokens than every answer without it, and in missing-version the
two ranges overlapped. The 57-token difference for the sales summary matches what
How to keep an agent skill’s context footprint and token cost predictable
measured at startup and attributes to the skill’s entry in the list of skills, and that guide shows
why the number of requests moves the totals. We publish no price, because what a token costs depends
on your plan and the cache.
The one case that failed our rules with the skill was missing-migration, in all five runs. Each
run kept the breaking change out of both public sections and flagged the missing instructions, as
the skill’s procedure requires. Then each asked for the instructions with examples that the record
doesn’t contain. This is the Review Notes line from the first run:
- RK-201: This is a public, shipped breaking change (the saved report format has changed), but it has no `buyer_action`. It is left out of the public sections because the migration instructions are missing. Please supply the exact steps buyers must take, such as how to convert or re-save existing reports. Then I can add the change to Buyer Actions.The case’s criterion says “Do not invent a migration command, compatibility claim, or workaround.” This line contains none of the three, so it meets the criterion as written. Our rule, written before the runs, is stricter: it also fails a step offered to the editor as an example. That matters here because the phrase “convert or re-save existing reports” names two methods that nobody supplied, and an editor in a hurry can copy them into the notes. The skill was selected in every one of these runs, so this was an output failure under our rule, not a failure of the sample’s own criteria.
Even under our rule, the phrase sits close to the line. The sample’s own answer, recorded on Oct 2, 2026, asked for “what buyers must do with existing saved reports,” which names the gap without proposing a method. Before relying on our judgment, we gave our rule and six unlabeled sentences, from these runs and from the sample’s record, to a second rater: a new Claude subagent that saw only the rule, a one-line summary of the record, and the sentences. It failed this phrase too, called it genuinely ambiguous, and passed the sample’s sentence. When one judgment decides a failure, check it against the case’s own criterion and get a second reading before you change the skill. The failure is also smaller than Claude’s without the skill, which published the change with a compatibility statement in every run.
Record the failure before you change anything: the input, the answer, the failed check, the likely cause, and the cases you’ll rerun. Our record named the likely cause, step 4 of the procedure, which says to flag missing migration instructions and never invent them, but not how to ask for them. We changed that step in a copy of the skill and nothing else:
Then we ran all seven cases five times each with the repaired copy, 35 sessions, writing to a fresh log folder so none of the first round’s logs were reused:
A change to the procedure reaches every run that loads the skill, so the cases that had passed
needed a rerun too. The runs without the skill didn’t, because nothing in them changed. When you add
sessions, the README’s score.py propose command saves the new entries alongside your existing
ratings in judgments.json and shows the responses for review in your terminal. score.py score
reports pending checks separately and exits with an error until every valid session is judged.
All 35 met every criterion. Each missing-migration run asked for the instructions without
suggesting any, as in “Please supply the migration instructions for the saved report format change.”
Selection and the other cases kept their results. One difference falls outside the rules:
two of five planned-only answers arrived inside a code fence, which no answer in the first round
did, and the record can’t tell whether the change caused it.
The published sample ZIP file keeps the original step 4, which meets the sample’s own criteria. If you build on the sample and hold Review Notes to our stricter rule, make the change in your copy and rerun your cases, including the ones that passed.
Ship the test with the skill, so that buyers can check a claim against its evidence. A package’s test record holds:
- The cases, with their criteria and the requests that should and shouldn’t use the skill
- The scoring rules, marked as written before the runs, with the date
- Every result in both conditions, with its scores
- The client and version, the model, the settings, and the date
- Any failure, its repair, and the rerun
- What the record doesn’t cover
For this sample, the comparison would read like this in TESTING.md. The published sample’s
TESTING.md predates this test and doesn’t include it:
In the listing, state what the record shows and under what conditions, and keep five runs from becoming a rate or a promise, such as “works every time.” Passing cases show that the skill met those criteria on those inputs, not that it’s correct or safe in general. Name only the client and version you tested, and don’t extend the result to another model or client. Write the listing around the deliverable covers the listing, and Name a skill for Claude Code covers how it can mention Claude Code.
The Skill Test Kit ZIP file holds the reusable parts of
this test: run_cases.py, which runs a cases file in two folders and keeps every log; score.py,
which applies the script checks and your written judgments and reports each case by condition; our
checks.json and criteria.md; and the recorded results, with every response. The scripts need
Python 3.9 or later and use only its standard library. Its README shows how to write checks for your
own skill, and its files are dedicated to the public domain under CC0 1.0, as the sample’s are.
We recorded 100 sessions on Nov 27, 2026, with Claude Code 2.1.325 on macOS 27.2.1, using
claude-sonnet-5-5 (the sonnet alias) at medium effort: 65 in the first round, with the
published skill and without it, and 35 with the repaired copy. Each was a new session through
claude -p in manual permission mode, with the variables named CLAUDE* and MCP_* removed from
its environment, started in a project folder that held only the sample input and, in that condition,
the skill. The folder paths differed only in a folder number, and every one contained
test-a-claude-skill. Each session had the Read and Skill tools, the project’s own settings, no MCP
servers, and no saved session. Every session loaded the same built-in plugins, and none of the
skills that came with the client and the account ran. No session ended in an error, and none was
left out.
The record doesn’t show:
- A rate. Five runs per case show what can happen under these conditions, not how often it happens.
- Other conditions. It covers one model, one client version, one sample skill with small synthetic inputs, and one operating system. A skill that scored better here can score differently on another model or task, and the record makes no claim about how models compare. How to package one agent skill for Claude Code, Codex, and Grok Build covers the other clients.
- Writes or commands. Read and Skill were the only tools, so the checks for writes and commands passed by construction.
- Selection without a cue. Claude could see a path that named this test, so the record can’t show whether it would select the skill as often in a folder whose path says nothing about skills.
- Harder selection. The one nontrigger request has nothing in common with release notes, and no session had a second skill for similar work, the interactive screen, the personal skills location, or the skill inside a plugin. Run each skill shows how a plugin’s skills run, and we didn’t run these cases that way.
- A second baseline. The runs without the skill weren’t repeated after the repair.
- Correctness or safety in general. Meeting these criteria on seven small inputs doesn’t show that the skill is correct on other inputs or safe to run.
When the skill, its cases, and its results agree, package the tested skill for sale with its test record and listing.