This lesson is being recorded

Every video of this course is being uploaded to my YouTube channel. Subscribe so you do not miss it.

Bruno AshfordBruno Ashford @brunoashfordSubscribe

Module 5 · Lesson 5.5 · 14 min

Testing and Fixing Skills

Test every skill with several different inputs and fix it until it produces dependable results.

Module 5
Skills: Turn Your SOPs Into Executable Playbooks

Write it once. It runs the same way every time.

Bruno Ashford
Bruno Ashford · Module 501 / 12
Be honest
When did someone last open your SOP document?
Bruno Ashford
Bruno Ashford · Module 502 / 12
What a skill is

An SOP that actually runs

A folder with a SKILL.md file.

  • Name and description at the top
  • Steps, rules and examples below
  • Loads only when the task needs it
  • Or call it with /skill-name
Bruno Ashford · Module 503 / 12
Where skills live

Project or personal

TypeLocationUse for
Project.claude/skills/<name>/SKILL.mdCompany playbooks, shared with team
Personal~/.claude/skills/<name>/SKILL.mdYour own habits, every project
Bruno Ashford · Module 504 / 12
Your first skill

Fifteen minutes, five moves

  1. 1PickYour most repeated task
  2. 2DescribeExplain it like to a new hire
  3. 3GenerateClaude writes the SKILL.md
  4. 4EditRead it like a manager
  5. 5RunWith the slash, then without
Bruno Ashford · Module 505 / 12
Multi-file skills

Examples beat instructions

Show your best work, not a description of it.

  • template.md for structure
  • examples/ for tone and length
  • checklist.md before handover
  • Keep SKILL.md lean
Bruno Ashford · Module 506 / 12
Skills vs. everything else

One job each

ToolJobThink of it as
CLAUDE.mdWhat is always trueThe handbook
SkillHow a task is doneThe playbook
SubagentSeparate, large workA specialist colleague
ConnectorReach other toolsAccess
HookEnforce a ruleA locked door
Bruno Ashford · Module 507 / 12
Illustrative, based on the examples in this module

What a tested skill changes

60 to 10minutes per proposal
3test cases minimum
0red lines broken
Bruno Ashford · Module 508 / 12
Testing

Three inputs, every time

One passing example proves almost nothing.

  • Normal case
  • Difficult case
  • Edge case with missing data
  • /clear between each test
Bruno Ashford · Module 509 / 12
Fixing
Fix the instruction that caused the failure. Then rerun every test.
Bruno Ashford
Bruno Ashford · Module 510 / 12
Your project

Three tested skills

Proposal, complaint reply, weekly report, or your own.

  • Real anonymised examples
  • Nine tests passed
  • Triggers from plain English
  • Visible in /skills
Bruno Ashford · Module 511 / 12
Recap
Your best way of doing things should not depend on who is in the office today.
Bruno Ashford
Bruno Ashford · Module 512 / 12
01 / 12

Use ← → to move. The marker highlights text and the pencil draws on the slide; navigation locks while you annotate. Undo removes the last mark, Esc exits.

1Prepare three test inputs

One normal case, one difficult case and one edge case with missing or strange data. Save them in a tests folder inside the skill so you can rerun them after every change.

Prompt for Claude
Create three test inputs for the complaint-reply skill in .claude/skills/complaint-reply/tests/: a normal complaint about a late delivery, an angry complaint that includes a false claim, and a very short vague complaint with no order number. Use made-up names.
2Run each test in a fresh session

Use /clear between tests so earlier answers do not influence later ones. Call the skill directly first, then test once with a plain-English request to confirm it triggers.

Terminal
/complaint-reply .claude/skills/complaint-reply/tests/test-2-angry-false-claim.md
3Score against the checklist

For each output, check: did it follow every step, respect every red line, match the voice, handle missing data correctly and stay within length? Write down what failed, not just that it failed.

4Fix the cause, not the symptom

If it failed, find the instruction that allowed it. Usually a step is ambiguous, an example contradicts a rule, or the edge case is not covered. Ask Claude to diagnose it with you.

Prompt for Claude
The complaint-reply skill agreed with the customer's false claim in test 2. Read SKILL.md and the examples, tell me which instruction or example caused this, and propose the smallest change that fixes it without breaking tests 1 and 3.
5Retest everything and version it

After any change, rerun all three tests, not only the one that failed. When all pass, add a short change note at the bottom of SKILL.md with the date. If your team shares the Company folder, everyone now gets the improved version.

6Keep improving from real use

Every time a real output needs a correction, ask whether the skill should change. Save the tricky real input as a new test case. Over a few weeks your skills become the most reliable people in the company.

Prompt for Claude
That reply needed an edit because it offered a refund we do not give. Update the complaint-reply skill so this cannot happen again, and add this complaint as a new anonymised test case.

A skill that works on the example you built it with proves almost nothing. The real test is the awkward case: the angry customer who is also wrong, the report week with missing data, the proposal for a job you rarely do. That is where skills break, and that is exactly where your reputation is at stake.

The method is simple: test with at least three different inputs, compare against a checklist, fix the instruction that caused the problem, and test again. The skill testing checklist in this module's materials walks you through it.

Key points

  • One passing example proves almost nothing.
  • Test normal, difficult and edge cases.
  • Use /clear between tests.
  • Fix the instruction that caused the failure, then rerun all tests.
  • Turn every real correction into a new test case.

Avoid

  • Testing only with the example the skill was built from.
  • Running tests one after another in the same conversation.
  • Patching one failure and breaking another case without noticing.
  • Letting the team use a skill that has never seen an edge case.
Real-world example: an e-commerce store

Priya's complaint skill passed the easy test first time. On the angry test it apologised for a delivery delay that the tracking showed had not happened. The cause was one line: "always apologise first". She changed it to "acknowledge the frustration, then check the facts in the order data before accepting fault". All three tests passed. Two months later she has 11 test cases and a skill her part-time support staff trust without checking every reply.

Bruno Ashford Subscribe