Day 5, 30 minutes · advanced
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-ticketat 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:
- Is it loaded? Run
/skills, or ask "What skills are available?"./contextalso shows the skills in context. A skill saved as.claude/skills/repair-ticket.md, not in its own folder, does not load. - Is it user-only? With
disable-model-invocation: trueClaude cannot start it, and/skillsshows a "user-only" label. - Does the description use the words people say? If the test prompt says "job card" and the description only says "ticket", add the words.
- Does
/repair-ticketwork? If even that fails, check the folder and name. - Does the frontmatter parse? If the YAML is broken, the skill still loads with no fields set.
/repair-ticketkeeps 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
- Write a small test log with three should-fire and two should-not-fire prompts.
- Run each prompt in a fresh session (
/clearbetween them) in Manual mode, and note whether Claude picked the skill. - Turn the skill off in
/skills, run one should-fire prompt again, and compare. Turn it back on. - Break the frontmatter with an unclosed quote, run the validator, see the error, and fix it.
- Sharpen the description for any prompt that missed, and rerun only that prompt.
- 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 accountDo it in Claude Code
Claude Code
- Start Claude Code in Manual mode in the practice folder.
cd pennywhistle-shop claude --permission-mode manual - 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. - For each test prompt: type
/clear, paste the prompt and press Enter. If Claude Code asks whether Claude may use therepair-ticketskill, choose Yes, and approve the ticket file. Mark in the log whether the skill fired. - Type
/skills, highlightrepair-ticket, pressSpaceuntil it is off and press Esc. Run/clearand the first prompt again, compare the result, then turn the skill back on the same way. - 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. - Run the validator through the
!prefix. It namesSKILL.mdand 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 - If a should-fire prompt missed, add its words to the description, run
/clearand 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. - 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.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up