Skill Doctor
Find out why skills fail, explain it in plain words, and fix what can be fixed. Most skill failures are silent: Claude Code skips a broken skill or ignores a bad key without any error, so the user only sees "it never runs".
1. Run the checker
python3 "${CLAUDE_SKILL_DIR}/scripts/check_skills.py" --json
With no arguments it scans ~/.claude/skills/, the nearest project .claude/skills/ and installed plugins. If the user named a skill or a folder, pass that path instead (a single skill folder or a skills directory). If python3 is not available, try python, and if neither exists, do the same checks by reading each SKILL.md yourself using the rules in references/rules.md.
The JSON has summary, skills (each with path, name, description, scope, issues), overlaps and duplicate_names. Issue levels: error = the skill will not load or will break; warn = it loads but probably won't trigger or a setting does nothing; info = style.
2. Report
Lead with the answer to what the user asked. If they asked about one skill, start with that skill's verdict. Then:
- Group by skill, errors first. For each problem give one line on what is wrong and one on how to fix it. Use the checker's wording; don't pad it.
- Mention skills that passed in one line at the end (names only).
- Explain
overlapsas "these skills may compete for the same requests, so Claude can load the wrong one", and name the shared words. duplicate_names: only one skill per name is used. Say which paths collide.- Skip
infoitems unless the user asked for a full audit.
If everything passes but the user says a skill still doesn't trigger, the checker can't see the cause. Go to step 4.
3. Fix
Ask before changing files, unless the user already asked you to fix things. Then:
- Mechanical fixes (rename
skill.mdtoSKILL.md, quote a value containing:, remove blank lines before---,allowed_tools→allowed-tools, moveversion/authorundermetadata:, fixnameto lowercase-hyphen and match the folder): apply them directly and show a short before/after of the changed lines. - Do not edit skills under
~/.claude/plugins/. Plugin updates overwrite them; tell the user to report the issue to the plugin author instead, and offer a drafted issue text. disable-model-invocation: trueandpaths:are often intentional. Explain the effect and ask before removing them.- Never delete a skill folder. If two skills duplicate each other, recommend which one to keep and let the user decide.
After fixing, run the checker again on the changed skills and confirm they pass.
4. Rewrite weak descriptions
The description is the only part Claude sees before deciding to load a skill, so a vague one means the skill never runs. Rewrite it when the checker flags it (no trigger, too short, filler opening, over the listing limit) or when the user says it doesn't trigger.
Read the skill's body first, so the description matches what the skill actually does. Then follow references/description-guide.md. In short:
- First sentence: what it does, starting with a verb, naming the concrete objects (file types, tools, frameworks).
- Second part:
Use when ...with the phrases a user would actually type, including synonyms and file extensions. - Optional: when not to use it, if it overlaps with another installed skill.
- Third person, no "I" or "you", under 1,024 characters, trigger phrase in the first ~300 characters.
Show the old and new description side by side with one line on why the new one triggers better. Only write it to the file after the user agrees.
To test a rewrite, suggest the user start a new Claude Code session (skills are read at startup) and send one of the trigger phrases without naming the skill.
Notes
- Skills are loaded when a session starts. After any fix, the user must restart Claude Code (or start a new session) to see the change.
- Valid skill locations:
~/.claude/skills/<name>/SKILL.md,<project>/.claude/skills/<name>/SKILL.md, and a plugin'sskills/<name>/SKILL.md. Anything nested deeper is not discovered. - The checker is read-only. It never modifies files.