CommunityCoding & Developmentgithub.com

skill-doctor

Diagnoses why Claude Code skills don't load or don't trigger, and fixes them. Scans every installed skill (personal, project and plugin) for silent failures such as a misnamed SKILL.md, broken YAML frontmatter, typo'd keys, missing trigger phrases and skills that compete for the same requests, then rewrites weak descriptions. Use when the user says a skill isn't working, isn't loading, isn't triggering or is being ignored, asks to check, lint, audit, validate or debug their skills or a SKILL.md, or has just written or installed a skill.

What is skill-doctor?

skill-doctor is a Claude Code agent skill that diagnoses why Claude Code skills don't load or don't trigger, and fixes them. Scans every installed skill (personal, project and plugin) for silent failures such as a misnamed SKILL.md, broken YAML frontmatter, typo'd keys, missing trigger phrases and skills that compete for the same requests, then rewrites weak descriptions. Use when the user says a skill isn't working, isn't loading, isn't triggering or is being ignored, asks to check, lint, audit, validate or debug their skills or a SKILL.md, or has just written or installed a skill.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/skillnest-dev/skill-doctor/tree/HEAD/skills/skill-doctor

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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 overlaps as "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 info items 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.md to SKILL.md, quote a value containing : , remove blank lines before ---, allowed_tools → allowed-tools, move version/author under metadata:, fix name to 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: true and paths: 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:

  1. First sentence: what it does, starting with a verb, naming the concrete objects (file types, tools, frameworks).
  2. Second part: Use when ... with the phrases a user would actually type, including synonyms and file extensions.
  3. Optional: when not to use it, if it overlaps with another installed skill.
  4. 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's skills/<name>/SKILL.md. Anything nested deeper is not discovered.
  • The checker is read-only. It never modifies files.

Related Skills