English | ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿฉบ Skill Doctor

A meta-skill for Claude Code that gives your other skills a health checkup โ€” and tells you exactly what to trim.

[!NOTE] Inspired by Matt Pocock. Skill Doctor is built entirely on the method Matt Pocock shared in his talk Building Great Agent Skills: The Missing Manual (AI Engineer). All credit for the underlying approach โ€” who-triggers โ†’ structure โ†’ deletion test, leading words, and the deletion test itself โ€” goes to him. Skill Doctor just packages that method into a runnable skill. ๐Ÿ“บ Watch the original talk: https://www.youtube.com/watch?v=UNzCG3lw6O0

Skill Doctor reviews any Claude Code Skill using the method from Matt Pocock's talk Building Great Agent Skills: The Missing Manual. It diagnoses only โ€” it never edits your files unless you explicitly ask it to.

If your SKILL.md keeps getting longer, you keep adding rules, and yet the agent listens less โ€” you've probably fallen into what Pocock calls "Skill Hell." Skill Doctor turns a bloated skill back into an executable entry point.


Why?

Developers keep adding rules when a skill misbehaves. A few rounds later, SKILL.md becomes a junk drawer nobody dares to delete from. The fix isn't more rules โ€” it's a review:

Who triggers it โ†’ Structure โ†’ Deletion test

Skill Doctor runs exactly that review and hands you a prioritized report.


Install

Copy the skill-doctor/ folder into your Claude Code skills directory:

git clone https://github.com/isalicema/skill-doctor.git
cp -r skill-doctor ~/.claude/skills/

Then just tell Claude Code:

  • "which skills need a checkup?" โ†’ runs the onboarding scan
  • "review my-skill" โ†’ full checkup report
  • "refactor my-skill" โ†’ applies fixes (only after you approve)

The three gates it checks

Gate Question What it catches
1. Who triggers it Auto or manual? Is the trigger phrase consistent? High-impact skills set to auto-trigger; trigger words scattered across files; context-cost bloat
2. Structure Steps vs. reference material mixed together? Templates / glossaries / long lists welded into the main file. Goal: main file readable in 10 minutes
3. Deletion test Delete this line โ€” does the agent's behavior change? No-ops (looks useful, changes nothing), duplication, and sediment. Protects the leading words that actually steer behavior

๐Ÿ”’ Two consent gates (safety first)

Skill Doctor is deliberately manual-trigger and never touches your files without permission:

  1. Gate 1 ยท Checkup โ€” once you pick a skill, it only reads and reports. No edits.
  2. Gate 2 ยท Refactor โ€” it will not change a single file until you explicitly say "refactor / optimize / go ahead."

A report is not authorization to edit. Even when a problem is obvious, it stops at the recommendation and waits for you.

Before any refactor it backs up the target (cp SKILL.md SKILL.md.bak-<date>) and runs a keyword survival check afterwards, so nothing gets lost in the move.


Onboarding: don't know where to start?

Run the triage scan to rank your installed skills by checkup priority:

bash ~/.claude/skills/skill-doctor/scripts/scan-skills.sh
SKILL                          lines  split  edited(d)  priority
------------------------------------------------------------------
some-big-skill                  662    yes      16      ๐Ÿ”ด strongly advised
another-skill                   485    yes      53      ๐Ÿ”ด strongly advised
tidy-little-skill                56    no      109      ๐ŸŸข healthy

It ranks by main-file length, whether reference files have been split out, and recent edits. (The filesystem can't see real usage frequency, so it asks you to confirm which ones you actually use most before recommending a checkup.)


Worked example: slimming a collection-manager skill

A real before/after. collection-manager is a skill that saves and summarizes articles in four steps.

Before โ€” 111 lines. The four-step workflow was sound, but a ~40-line Markdown output template was pasted right into the middle of Step 3, and the naming rules were a separate trailing section. The steps were drowning in reference material.

Checkup found:

  • โ‘  Entry โ€” the real trigger phrase lived only in a separate memory file, not in the skill's description. Entry truth was split across two places.
  • โ‘ก Structure ๐Ÿ”ด โ€” the output template (~40% of the file) is reference material, not a step. It's only consulted while writing, so it belongs in a side file.
  • โ‘ข Deletion test โ€” a couple of lines in Step 3 repeated the same "distill, don't summarize" idea. But the core leading lines ("read the whole thing before writing") genuinely changed behavior โ€” keep those.

After โ€” 57 lines (โˆ’49%). The template + naming rules moved to references/template.md; Step 3 kept three crisp quality standards plus one pointer. The trigger phrase was added back into description. No leading words were lost.

collection-manager/
โ”œโ”€โ”€ SKILL.md                 57 lines  โ† steps + one pointer
โ””โ”€โ”€ references/
    โ””โ”€โ”€ template.md          โ† the output format, consulted on demand

The main file is now a 10-minute read and an executable entry point again, instead of a long document.


Credits

Method: Matt Pocock, Building Great Agent Skills: The Missing Manual (AI Engineer).

Built by Machiwhale Studio ๐Ÿ‹ as a meta-skill โ€” and yes, Skill Doctor passes its own checkup (main file under 60 lines, reference material split out).

License

MIT