Explore skills

Blog / Authoring

How to Test a Skill Before Publishing It

Test a skill in three layers before you publish: does it trigger, does it follow the steps, does it beat no skill. A practical checklist with eval examples.

How to Test a Skill Before Publishing It

Test three things in order: that the skill triggers when it should, that Claude follows it once loaded, and that the result is better than Claude without it.

Table of contents

The short answer

A skill has two jobs that fail separately. First, Claude has to pick it from the listing when a matching request arrives. Second, once it is loaded, Claude has to follow it and produce something better than it would have without the skill. Test each one on its own.

Anthropic's authoring guide puts the order of work bluntly: "Create evaluations BEFORE writing extensive documentation. This ensures your Skill solves real problems rather than documenting imagined ones" (best practices, checked 2026-11-23). Its checklist for sharing asks for "at least three evaluations," testing "with Haiku, Sonnet, and Opus," and testing "with real usage scenarios."

I build AI agents full-time and I have shipped skills that passed a quick try and then failed for someone else. Everything here comes from Anthropic's documentation, the Claude Code documentation and Ragspaces catalog pages, read on 2026-11-23. The numbers I quote are Anthropic's.

One caveat from the same page: "There is not currently a built-in way to run these evaluations. You can create your own evaluation system." So the evals below are a method you run by hand or script, not a feature you switch on.

What can go wrong

Four failures cover most broken skills:

  1. It never triggers. The description does not match how people ask. Claude "uses it to choose the right Skill from potentially 100+ available Skills," so a vague description loses to other skills or to no skill.
  2. It triggers when it should not. The description is broad, and the skill's steps run on unrelated requests.
  3. Claude loads it and skips parts. A rule is buried, a reference file is never opened, or a script is read when it should be run.
  4. It works on your machine only. The skill assumes a package, a path, a credential or a network that the next user lacks.

The layers below target these in order.

Layer 1: does it trigger

Before you test the steps, test discovery. Claude sees only the name and description until a request matches. The Agent Skills overview states that "until a Skill is triggered, only its name and description occupy context," and that the description "is what Claude matches your request against."

Write a list of 10 to 20 prompts and label each one "should trigger" or "should not trigger." Include:

  • the obvious phrasing, using the words in your description;
  • a casual phrasing a user would actually type;
  • an indirect request that implies the task without naming it;
  • near-misses that belong to a neighboring skill and should not trigger yours.

Then run each prompt in a fresh session with the skill installed and note whether Claude loads it. In Claude Code you can see it happen: the docs say skill content "enters the conversation as a single message," and /context shows the Skills row for what is loaded. Run each prompt in a new conversation, because once a skill is loaded it "stays there across later turns" and will contaminate the next test.

Two practical points from the Claude Code skills docs:

  • Changes to a skill are picked up "within the current session," and /reload-skills handles a skill that does not appear. If the skill never shows up, check that first before blaming the description.
  • If you have many skills installed, "Claude Code drops some descriptions to fit the listing's character budget," starting with the skills you invoke least. A skill can fail to trigger because its description was dropped, not because it is badly written. /doctor estimates the listing cost.

If the trigger rate is poor, fix the description, not the body. Anthropic's rules: write in third person ("Processes Excel files and generates reports," not "I can help you process Excel files"), and include "both what the Skill does and specific triggers/contexts for when to use it." Its bad examples are "Helps with documents," "Processes data" and "Does stuff with files."

You can test the skill by hand like this, or let a tool do it. The Ragspaces catalog has a few skills that automate parts of it. I opened these on 2026-11-23 and read their pages only:

  • eval by @lucas_143: evaluates a local skill with a CLI, covering "hygiene, trigger evals and execution cases against a baseline," and confirms the cost before it runs.
  • expo-skill-eval by @sampopov: evaluates Expo skills for "trigger accuracy, generated code quality, and runtime screenshots."
  • create-skill-test by @hlee: scaffolds eval.yaml evaluation specs for skills in the dotnet/skills repository.

These are tools for specific setups, described from their own pages.

Layer 2: does it follow the steps

Once a skill triggers, the question is whether Claude does what the body says. Anthropic's method here is the most useful thing in its guide. It uses two instances: "Claude A," which helps you write and refine the skill, and "Claude B," a fresh instance with the skill loaded that does real work. "Claude A helps you design and refine instructions, whereas Claude B tests them in real tasks."

The loop:

  1. Give Claude B a real task, not a toy scenario.
  2. Watch what it does. The guide lists what to look for: "Unexpected exploration paths" (it reads files in an order you did not plan), "Missed connections" (it fails to follow a link, so make the link more explicit), "Overreliance on certain sections" (move that content into SKILL.md), and "Ignored content" (a bundled file is never opened, so it may be unnecessary or poorly signaled).
  3. Take what you saw back to Claude A and ask for specific changes. The guide's example: "When Claude used this Skill, it forgot to filter by date for Q4. Should we add a section about date filtering patterns?"
  4. Apply the change and test again on a similar request.

Its own worked example is a skill that mentions a rule (filter out test accounts) but Claude B forgets it. The fix suggested is to make the rule more prominent, with stronger wording such as "MUST filter" instead of "always filter," or to restructure the workflow section. That is the typical Layer 2 fix: not more text, but better placement.

For skills with a script-driven workflow, the guide recommends validation loops: "Run validator, fix errors, repeat." If a critical step is easy to skip, add a checklist Claude copies into its answer and ticks off, as in its PDF form-filling example, where "clear steps prevent Claude from skipping critical validation."

Layer 3: is it better than no skill

A skill that triggers and is followed can still be useless if Claude would have done the same thing alone. The guide's evaluation-driven process starts from that:

  1. Identify gaps. "Run Claude on representative tasks without a Skill. Document specific failures or missing context."
  2. Create evaluations. "Build three scenarios that test these gaps."
  3. Establish a baseline. "Measure Claude's performance without the Skill."
  4. Write minimal instructions. "Create just enough content to address the gaps and pass evaluations."
  5. Iterate. "Run evaluations, compare against baseline, and refine."

Step 1 is the one people skip. If you have not seen Claude fail at the task without the skill, you do not know what the skill needs to teach, and you may be writing instructions Claude already follows. The guide's wording about conciseness applies: "Does Claude really need this explanation?"

The comparison is simple. Run each eval prompt twice, once with the skill removed from the skills folder (or disabled) and once with it, and compare against the expected behavior you wrote down. If the two runs look the same, the skill is not earning its cost in the listing. If the with-skill run is better, you have a reason to publish.

Claude Code lets you switch a skill off without deleting it. The Claude Code docs list skillOverrides values of "on," "name-only," "user-invocable-only" and "off." Use "off" for the baseline run. Note the docs say plugin skills are not affected by skillOverrides.

Writing the evals

Anthropic gives a structure for an eval. Each has the skills to load, a query, any input files, and the behaviors you expect:

{
  "skills": ["pdf-processing"],
  "query": "Extract all text from this PDF file and save it to output.txt",
  "files": ["test-files/document.pdf"],
  "expected_behavior": [
    "Successfully reads the PDF file using an appropriate PDF processing library or command-line tool",
    "Extracts text content from all pages in the document without missing any pages",
    "Saves the extracted text to a file named output.txt in a clear, readable format"
  ]
}

The useful part is expected_behavior: a short list of things you can check yes or no. Write them before you look at the output, so you cannot adjust them to fit what you got.

Guidance for writing your own:

  • Use three or more. The checklist says at least three, covering different situations: a typical case, an awkward input, and a case where the skill should stay out of the way.
  • Check behavior, not wording. "Saves a file named output.txt" is checkable. "Writes a good summary" is not.
  • Include a should-not-trigger case. The skill that fires on everything is worse than one that sometimes misses.
  • Keep input files in the skill's repository. A test-files/ folder beside the skill, not shipped to users, means anyone who edits the skill can rerun the checks.
  • Record the result and the date. A line in a changelog or a README is enough.

For a small skill, run these by hand and tick them off. For a larger one, a script that loops over the prompts in a non-interactive run and saves the transcripts is worth writing. The Claude Code docs refer to -p runs, so non-interactive use exists. Check the docs for the current flags before you script one.

Testing scripts

If the skill has a scripts/ folder, test the scripts as ordinary code, outside Claude, before testing the skill. Run each with good input, with a missing file and with a malformed one. The best-practices guide asks that scripts "solve problems rather than defer to Claude": a script that raises a bare exception forces Claude to guess, while one that prints a clear message lets it recover.

Then test the skill's use of the script. Check that Claude runs it rather than reading it, which depends on wording: "Run analyze_form.py to extract fields" versus "See analyze_form.py for the extraction algorithm." Check that paths use forward slashes, even on Windows, and that required packages are listed in SKILL.md. The guide says "Don't assume packages are available."

Runtime differs by surface, which matters for a test plan. The overview says skills on the Claude API have "no network access and no runtime package installation," that Claude Code skills have "the same network access as any other program on the user's computer," and that claude.ai network access varies by user and admin settings. A skill tested only in Claude Code, where almost everything is allowed, may fail in another place. I compare the surfaces in the post on claude.ai skills vs Claude Code skills.

Finally, check the skill for anything you should not ship. The sync and upload paths of some tools copy the folder as it is. Look for credentials, personal paths and private URLs in SKILL.md, scripts/ and test files. Ragspaces blanks out API keys in files before upload, but I would not rely on that alone.

Test across models

Anthropic's guidance is to test with every model you expect the skill to run on, because "Skills act as additions to models, so effectiveness depends on the underlying model." Its questions per model:

  • Haiku: "Does the Skill provide enough guidance?"
  • Sonnet: "Is the Skill clear and efficient?"
  • Opus: "Does the Skill avoid over-explaining?"

"What works perfectly for Opus might need more detail for Haiku." If your users pick their own model, run the same evals on the ones they are likely to use. The guide does not set a pass mark, so decide your own in advance and write it down.

Staged publishing

Testing does not end when you publish, so publish in stages and let each stage find different problems.

  1. Private first. On Ragspaces, visibility per skill can be private (only you), followers, or public. Keep it private while you run your own evals. Claude Code's personal folder ~/.claude/skills/ is the same idea locally, and a project folder .claude/skills/ lets a team try it.
  2. Followers or a few colleagues next. The guide's team-feedback step: "Share Skills with teammates and observe their usage. Ask: Does the Skill activate when expected? Are instructions clear? What's missing?"
  3. Public last. Public skills appear in the catalog and search, and anyone can install a free one. If you then plan to tell people about it on Reddit, read what Reddit's 2026 bot rules still let founders post first.

If the skill should stay a black box, protection changes the testing. With protection on, others call the skill as a tool and never see its prompts or scripts, so you cannot count on them to point at the line that confused Claude. You will see only the results, so your own eval set matters more.

A pre-publish checklist

Adapted from Anthropic's checklist, with the testing items first:

  • [ ] At least three evals written before the body was finished.
  • [ ] A "should not trigger" prompt list, run in fresh sessions.
  • [ ] A baseline run without the skill, compared with the run with it.
  • [ ] Run on real tasks, not toy ones, at least once.
  • [ ] Tested on each model you expect users to run.
  • [ ] Scripts tested on their own: good input, missing file, malformed input.
  • [ ] Description names what the skill does and when to use it, in third person, under 1,024 characters.
  • [ ] SKILL.md body under 500 lines, references one level deep.
  • [ ] No time-sensitive instructions ("before August, use the old API").
  • [ ] No credentials, personal paths or private URLs anywhere in the folder.
  • [ ] Forward slashes in every path, packages listed.
  • [ ] Tried by one other person who did not write it.

What Ragspaces adds

Ragspaces is an open catalog of 5,299 agent skills for Claude Code and Codex (home page count on 2026-11-23). It does not run your evals and it does not certify a skill as tested. What it offers around testing: visibility per skill (private, followers or public) so you can stage a release, a hook that uploads a skill when your agent saves it, and a watcher that downloads changes to other computers "within a minute," which makes it easy to try the same skill on a second machine (how it works).

Each skill page shows a Price, a "Signal index" (0 to 100), an Updated date and the setup steps. I would not read the Signal index as a test result. Ragspaces' pages do not say what it measures, and several skill pages showed 0 on 2026-11-23.

For authoring help and examples, catalog pages as of 2026-11-23:

Each summary comes from the skill's own page.

Common mistakes

Testing only with the words from your own description. Real users phrase it differently. Add indirect and casual prompts.

Testing in one long session. A loaded skill stays in the conversation and affects later prompts. Use fresh sessions.

Skipping the baseline. Without it you do not know whether the skill helped.

Changing the expected behavior after seeing the output. Write the checks first.

Trusting a pass on one model. Anthropic asks for Haiku, Sonnet and Opus because the same skill can need more or less detail.

Testing only in the surface you use. Network and package rules differ between Claude Code, claude.ai and the API.

Fixing the body when the description is the problem. If the skill is never loaded, the body does not matter.

Frequently asked questions

How many tests does a skill need?

Anthropic's checklist asks for at least three evaluations, tested with real usage scenarios and with Haiku, Sonnet and Opus. Add a should-not-trigger case. More is better for a skill that others will depend on.

How do I know if my skill triggers?

Run a list of prompts in fresh sessions and note whether Claude loads the skill. In Claude Code, /context shows the Skills row, and /reload-skills fixes a skill that does not appear. If it never triggers, rewrite the description.

Is there a built-in way to run skill evals?

Anthropic's best practices say there is not currently a built-in way to run them and that you can create your own evaluation system. Some catalog skills and tools automate parts of it.

How do I check that a skill is better than no skill?

Run the same eval prompts with the skill switched off and with it on, then compare both against the expected behavior you wrote beforehand. In Claude Code, skillOverrides can set a skill to "off" for the baseline run.

Should I test with every model?

If users may run it on more than one, yes. Anthropic says effectiveness depends on the underlying model and suggests asking whether Haiku gets enough guidance, whether Sonnet finds it clear, and whether Opus finds it over-explained.

Can I test privately before publishing?

Yes. Keep the skill in your personal folder, or set its visibility to private on Ragspaces. Move to followers or a few colleagues, then public, so each stage tests something new.

Key takeaways

  • Test discovery, adherence and value separately: trigger, follow, beat the baseline.
  • Write at least three evals with checkable expected behavior before you finish the body.
  • Use fresh sessions, a should-not-trigger list and a no-skill baseline.
  • Test scripts on their own, and test on each model and surface the skill will run on.
  • Publish in stages: private, then followers or a small group, then public.

The bottom line

A skill that passed once in your session has not been tested. Write the evals first, run them with and without the skill in fresh sessions, fix the description before the body, and let one other person try it before the catalog does.

If you want to see how published skills describe themselves before you write your own, browse the Ragspaces catalog. Skill pages show the description, README and reviews with no account.

Related articles

About this research

Dmitry Makarenko co-founded Zipy as VP R&D, leading 50+ engineers across five countries, and now builds AI agents full-time. (LinkedIn)

This article is based on Anthropic's skill authoring best practices and Agent Skills overview, the Claude Code skills documentation and Ragspaces catalog pages, all read on 2026-11-23. Content reviewed and updated: 2026-11-26

Keep reading