How to test a Claude Code skill and fix one that never fires

Day 5, 30 minutes · advanced

Goal of this lessonTest whether Claude picks your skill on its own, compare with the skill off, find broken frontmatter and sharpen the description.

Why it matters

Typing /repair-ticket always works. The real test is whether Claude picks the skill on its own when Odette pastes a note and says nothing about skills, and whether it leaves the skill alone when she asks something else. A skill that never fires is a skill nobody uses. A skill that fires on everything gets in the way.

The skills page adds a second point: seeing a skill trigger only tells you Claude found it, not that it did what you meant. Today you test both. You write a few test prompts, run them in a fresh session with the skill on and off, break the frontmatter on purpose to see what that does, and sharpen the description until the results are what you want. At the end you have a short test log you can run again after every change.

Two ways a skill starts

  • You start it by typing /repair-ticket at the start of your message. That runs it directly. Put the name after other words, as in "go ahead and /repair-ticket this", and it only gives Claude permission to use it.
  • Claude starts it when your request matches the description. At the start of a session Claude sees every skill's name and description, and loads the full skill when it judges that one fits.

Only the second one tests your description. Because repair-ticket sets allowed-tools, Claude Code can ask you before Claude uses the skill on its own. That prompt, or a new ticket followed by the check's OK line, is your sign that Claude picked it. Approve it.

Test in a fresh session

The skills page recommends a baseline comparison: a few realistic prompts, each run in a fresh session with the skill available and again with it turned off. Fresh matters, because the conversation in which you wrote the skill is full of hints that hide gaps in the written instructions. /clear gives you a clean start.

To turn the skill off for the second run, use the /skills menu from lesson 4: highlight repair-ticket, press Space until it is off, and press Esc to save. Turn it back on the same way afterwards.

Write two kinds of test prompt:

  • Should fire: three ways people really hand Odette a job. A pasted note, a quick sentence, a phone message.
  • Should not fire: two nearby requests that are not tickets, such as "How much does a new chain cost?".

When the skill does not fire

The skills page and the debug your configuration page list what to check:

  1. Is it loaded? Run /skills, or ask "What skills are available?". /context also shows the skills in context. A skill saved as .claude/skills/repair-ticket.md, not in its own folder, does not load.
  2. Is it user-only? With disable-model-invocation: true Claude cannot start it, and /skills shows a "user-only" label.
  3. Does the description use the words people say? If the test prompt says "job card" and the description only says "ticket", add the words.
  4. Does /repair-ticket work? If even that fails, check the folder and name.
  5. Does the frontmatter parse? If the YAML is broken, the skill still loads with no fields set. /repair-ticket keeps working, but Claude has no description to match. That is the sneakiest failure, and you will cause it on purpose today.

To find frontmatter that does not parse, run claude plugin validate .claude/skills in your terminal, or inside Claude Code with the ! prefix. It checks every SKILL.md in that folder and names the problem. Starting Claude Code with claude --debug also shows the parse error in the debug log.

When the skill fires too often

Make the description more specific. If the skill should only ever run when you ask, set disable-model-invocation: true.

The steps

  1. Write a small test log with three should-fire and two should-not-fire prompts.
  2. Run each prompt in a fresh session (/clear between them) in Manual mode, and note whether Claude picked the skill.
  3. Turn the skill off in /skills, run one should-fire prompt again, and compare. Turn it back on.
  4. Break the frontmatter with an unclosed quote, run the validator, see the error, and fix it.
  5. Sharpen the description for any prompt that missed, and rerun only that prompt.
  6. Commit the improved skill and the test log.

Follow the steps for Claude Code below.

Example: Odette's test log

Odette's first run: "Lotje's cargo bike again, back tyre flat" fired. "Can you write up Rutger's job card?" did not: the description never said "job card". "What does a chain cost?" correctly did not fire. She added "job card" and "drop-off" to the description, cleared the session and ran the job card prompt again. It fired. Her log now has five lines with a tick or a cross each, and she runs it after every change to the skill.

Common mistakes

  • Testing in the session where you wrote the skill. Claude already knows what you want, so everything passes.
  • Calling one run proof. Claude decides each time. Run a prompt more than once before you trust a result.
  • Testing only with /repair-ticket. That skips the description entirely.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in Claude Code

Claude Code

  1. Start Claude Code in Manual mode in the practice folder.
    cd pennywhistle-shop
    claude --permission-mode manual
  2. Paste this prompt to create the test log, and approve the file.
    Create skill-tests.md with a table of these five test prompts and two empty columns, Fired and Result:
    Should fire: Lotje's cargo bike is back, the back tyre is flat again, she wants it fixed this week.
    Should fire: Phone message: Rutger, city bike, front brake cable snapped, about 15 euro.
    Should fire: Can you write up a job card for Nienke's e-bike? The light is fixed, the brake still squeaks.
    Should not fire: How much does a new bike chain usually cost?
    Should not fire: Summarise what is in CLAUDE.md.
  3. For each test prompt: type /clear, paste the prompt and press Enter. If Claude Code asks whether Claude may use the repair-ticket skill, choose Yes, and approve the ticket file. Mark in the log whether the skill fired.
  4. Type /skills, highlight repair-ticket, press Space until it is off and press Esc. Run /clear and the first prompt again, compare the result, then turn the skill back on the same way.
  5. Break the frontmatter on purpose and approve the edit.
    In .claude/skills/repair-ticket/SKILL.md, put one double quote right after description: and do not close it. Change nothing else.
  6. Run the validator through the ! prefix. It names SKILL.md and reports that the frontmatter failed to parse. Then ask Claude to remove the stray quote and run the validator again until it passes.
    ! claude plugin validate .claude/skills
  7. If a should-fire prompt missed, add its words to the description, run /clear and test only that prompt again.
    Add the words job card and drop-off to the description in .claude/skills/repair-ticket/SKILL.md, after the main use. Keep it in the third person.
  8. Ask Claude to commit the skill, the test log and the new tickets.
    Commit the skill folder, skill-tests.md and the new tickets with the message: Test and sharpen repair-ticket.

Note: In Manual mode you approve every ticket file, so each test takes a few clicks. Claude decides each time whether a skill fits, so run a missed prompt twice before you change the description. If claude plugin validate is not recognised, update Claude Code.

Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free Claude plan does not include Claude Code.

Checked on 4 December 2026 · Source: Claude Code docs: Debug your configuration (opens in a new tab)

Create a free account to save your progress. Sign in or sign up