agentleFS
dhruba-dattadhruba-datta/claude-papercuts/skills/skill-doctor/SKILL.md

skill-doctor

Skill0 starsChanged 7 months agoMITView on GitHub

Diagnose why a SKILL.md isn't auto-invoking. Use this skill when the user runs /claude-papercuts:skill-doctor, asks why their skill won't trigger, mentions a skill that Claude keeps ignoring, or wants a lint pass on a SKILL.md they're writing. Runs lint.py to flag missing trigger phrases, vague descriptions, descriptions that overlap with built-in tool training (the root cause of issue #30387), names that aren't kebab-case, and length issues outside Anthropic's 50–1024 char bound.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grill-me and frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 4 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a SKILL.md description says *"use for git operations"*, the model's training-time knowledge of git wins.

    line 19
  2. Very specific:

    If the user names a specific SKILL.md path, run:

    line 35
  3. Distinctive:

    If the user wants a sweep of every installed skill, run:

    line 41
  4. Distinctive:

    If the user asks for help fixing a specific issue:

    line 52
  5. Very specific:

    Never auto-modify a SKILL.md.

    line 60
  6. Very specific:

    If Anthropic ships a built-in SKILL.md linter (e.g.

    line 102

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

skill-doctor — why isn't my skill auto-invoking?

Fixes: root cause of #30387 — "Custom skills not reliably auto-triggered. The model's training-time knowledge competes with and takes precedence over skill instructions."

What this prevents

"Skills for git/shell operations are ignored ~50% of the time." — issue #30387

When a SKILL.md description says "use for git operations", the model's training-time knowledge of git wins. The skill is never invoked. skill-doctor lints SKILL.md files against the same heuristics Anthropic's own template authors apply implicitly:

CheckSeverityWhy it matters
name: present and kebab-caseerrorPlugin loader rejects otherwise
description: length 50–1024errorAnthropic's published bound
Description has trigger phrasewarnWithout "Use this when …", the model has nothing to route on
Description avoids vague wordsinfo"helper", "utility", "manager", "toolkit" — too generic
Description avoids training overlapwarn"edits files", "git operations", "runs shell" — built-in tool wins
Description under 80 charswarnNot enough context to route to the right skill

How to invoke (the actual procedure)

  1. If the user names a specific SKILL.md path, run:

    ${CLAUDE_PLUGIN_ROOT}/skills/skill-doctor/lint.py <path>
  2. If the user wants a sweep of every installed skill, run:

    ${CLAUDE_PLUGIN_ROOT}/skills/skill-doctor/lint.py --all
  3. Show the script's output verbatim. The severity glyphs (✗ error, ⚠ warn, · info) and the issue codes (e.g. training-overlap, no-trigger) are the value. Don't summarize the categories — the per-skill report is what the user came for.
  4. If the user asks for help fixing a specific issue:
    • For training-overlap: rewrite the description to name the specific workflow the skill owns ("apply database migrations" not "for database operations").
    • For no-trigger: add a sentence starting with "Use this when …".
    • For desc-thin: expand to include one concrete invocation example and one trigger phrase.
  5. Never auto-modify a SKILL.md. Suggestions are for the user to apply themselves.

What gets discovered by --all

The same locations as skill-budget:

  • ~/.claude/skills/<name>/SKILL.md
  • <cwd>/.claude/skills/<name>/SKILL.md
  • ~/.claude/plugins/*/skills/<name>/SKILL.md

When to auto-invoke

  • User runs /claude-papercuts:skill-doctor
  • User asks "why isn't my skill triggering?"
  • User mentions a skill that Claude keeps ignoring
  • User says they just wrote a new SKILL.md and wants it reviewed

What this skill does NOT do

  • It does not modify SKILL.md files. Suggestions only.
  • It does not lint the body of the SKILL.md (the markdown after the frontmatter) — only the frontmatter and description.
  • It does not validate allowed-tools: glob syntax. Claude Code's plugin loader does that.
  • It does not (yet) run the skill to verify it triggers. A "trigger-fuzz" mode is planned for a future release.

Configuration

# JSON output for piping into other tools / CI
${CLAUDE_PLUGIN_ROOT}/skills/skill-doctor/lint.py --all --json

# Lint a specific path
${CLAUDE_PLUGIN_ROOT}/skills/skill-doctor/lint.py path/to/SKILL.md

# Scan a different project
${CLAUDE_PLUGIN_ROOT}/skills/skill-doctor/lint.py --all --cwd /path/to/proj

Deprecation plan

If Anthropic ships a built-in SKILL.md linter (e.g. via claude plugin validate), this skill becomes a duplicate and gets deprecated in the next monthly release with the date.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.