A doctor for your Claude Code agent skills: find the SKILL.md files Claude silently can't see (over the discovery budget), plus naming, routing and hygiene problems — deterministically, across every installed skill.
Project description
claude-skills-doctor
A doctor for your Claude Code agent skills — find the ones Claude silently can't see, before they cost you a session.
Install
claude-skills-doctor, runskilldoctor.
You install a skill, it looks perfect, and Claude never uses it. No error, no warning. As of Claude Code 2.0.70 the combined skill + slash-command descriptions injected into the system prompt live under a 15,000-character budget (~4,000 tokens, set by SLASH_COMMAND_TOOL_CHAR_BUDGET). Go over and Claude Code just stops listing some skills — and Claude is told not to use skills it wasn't told about. The failure is invisible from the inside. skilldoctor makes it visible.
$ skilldoctor
Discovery budget
████████████████████████████░░░░ 13,120 / 15,000 chars (87%)
severity check target detail
error name-folder-mismatch pdf-tools `name: pdf` must match the folder name `pdf-tools`
error frontmatter-invalid my-skill invalid YAML in frontmatter: mapping values are not allowed here
warn description-collision review-code description ~72% overlaps `code-review` — they may compete to trigger
warn budget-near budget skills + commands use ~13,120/15,000 discovery chars (87%) — nearing the silent-truncation cliff.
28 skill(s) · 6 command(s) · 2 error(s) · 2 warning(s)
Install
uvx claude-skills-doctor # run without installing
pip install claude-skills-doctor # or install it
Then run skilldoctor (the command claude-skills-doctor works too).
Use
skilldoctor # health-check every skill Claude Code can see; exits non-zero on errors
skilldoctor --fix # show a concrete suggested fix for each finding
skilldoctor --json # machine-readable, for CI
skilldoctor --strict # fail on warnings too
skilldoctor budget # the shareable view: the bar + the biggest contributors to trim
It scans everywhere Claude Code loads from — your user skills (~/.claude/skills), the project's (.claude/skills), and installed plugins — plus slash-commands, which share the same budget.
Or ask Claude
It also ships as a Claude Code plugin, so the diagnosis lives where the problem shows up — you notice a skill isn't firing, you ask, and Claude checks:
/plugin marketplace add gulmezeren2-byte/claude-skills-doctor
/plugin install skilldoctor@skilldoctor
The plugin ships one skill and no slash command. A tool that measures the discovery budget shouldn't take two slots out of it.
Authoring skills? Lint what you ship
--skills points at a skills/ directory you're writing, so you can catch problems before publishing rather than after someone installs them:
skilldoctor --skills ./skills --strict # fails on warnings too — good CI gate
This repo does exactly that to itself: CI runs skilldoctor --skills ./skills --strict against the skill it ships, and a test asserts it. If our own tool would flag our own skill, the build fails.
What it checks
All deterministic. No model calls, no network, no guessing — it reads your files and reports.
- Discovery budget — the headline. Total skill + command description characters vs the 15,000 limit (honours
SLASH_COMMAND_TOOL_CHAR_BUDGET). Over budget → some skills are silently unlisted. - Won't load — invalid YAML frontmatter (which silently prevents loading), missing
name/description, andnamethat doesn't match its folder (required, and the one Anthropic's own validator misses). - Won't route — descriptions too thin to trigger, and descriptions written as a step-by-step how-to (which makes Claude follow the summary and skip loading the body).
- Collisions — two skills with the same
name, or near-identical descriptions that compete to trigger. - Contract & hygiene —
allowed-toolsthat doesn't cover the tools the body actually uses,</>in descriptions (prompt-injection risk), oversized bodies that belong inreferences/, reference chains more than one level deep, absolute paths, and human-facing docs (README/CHANGELOG) left inside a skill folder. - Security — scans every skill (third-party plugins included) for
hidden-instructionphrases (instruction-override / hide-from-user / prompt-extraction) in the SKILL.md and its references, andscript-network-calls insidescripts/. Because "I installed a skill — is it safe?" is a real question, and a documentation-context filter keeps skills that teach prompt-injection safety from tripping it.
Errors make it exit non-zero, so it gates a pipeline: skilldoctor && claude .... Add --fix to see a concrete suggested fix under each finding.
How it's different from a skill linter
There are per-file SKILL.md linters and validators (and Anthropic's skill-creator model-evaluates one skill you're authoring). claude-skills-doctor is the complement: a whole-system, install-time health check across every skill you actually have — and the only one that measures the cross-skill failures a single-file linter structurally can't see: the shared discovery budget, duplicate names, and colliding descriptions. A linter checks a file; a doctor examines the whole patient.
Honest about the numbers
The budget is measured as each skill/command's name + description characters. That's an estimate — the real budget adds minor per-entry formatting — so treat it as close, and on the safe side, not byte-exact. It lints your own skills fully; third-party plugin skills count toward the budget but are checked only for load-breakers, so it never nags about skills you can't fix. Every finding points at a file and a reason; nothing is invented.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_skills_doctor-0.4.0.tar.gz.
File metadata
- Download URL: claude_skills_doctor-0.4.0.tar.gz
- Upload date:
- Size: 66.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b7a6e5a948d92f364d8e077820d9b6a17b6789cfbc4f45d47b5e689a1d41b51
|
|
| MD5 |
2fd3158d558203ae0519184e8bf7ca2e
|
|
| BLAKE2b-256 |
19db9a282dfbcd898daa79280ab5f5d25df98668ec3f342d53da72d4b4fdabda
|
Provenance
The following attestation bundles were made for claude_skills_doctor-0.4.0.tar.gz:
Publisher:
release.yml on gulmezeren2-byte/claude-skills-doctor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_skills_doctor-0.4.0.tar.gz -
Subject digest:
1b7a6e5a948d92f364d8e077820d9b6a17b6789cfbc4f45d47b5e689a1d41b51 - Sigstore transparency entry: 2257383722
- Sigstore integration time:
-
Permalink:
gulmezeren2-byte/claude-skills-doctor@f7eac741f015979b41ddbd20a5b56fb85b4ce997 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/gulmezeren2-byte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f7eac741f015979b41ddbd20a5b56fb85b4ce997 -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_skills_doctor-0.4.0-py3-none-any.whl.
File metadata
- Download URL: claude_skills_doctor-0.4.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
769debeedf7805576b7343f2d0e6b65dd95ee50c44fa66ff950fd2a6be2af1a4
|
|
| MD5 |
24883b981ba0bc6cf7b8133e743e9026
|
|
| BLAKE2b-256 |
123180cca271d299c4bc07b98df3c33d815aa666cffdd8b36d74f6229489fb9a
|
Provenance
The following attestation bundles were made for claude_skills_doctor-0.4.0-py3-none-any.whl:
Publisher:
release.yml on gulmezeren2-byte/claude-skills-doctor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_skills_doctor-0.4.0-py3-none-any.whl -
Subject digest:
769debeedf7805576b7343f2d0e6b65dd95ee50c44fa66ff950fd2a6be2af1a4 - Sigstore transparency entry: 2257383729
- Sigstore integration time:
-
Permalink:
gulmezeren2-byte/claude-skills-doctor@f7eac741f015979b41ddbd20a5b56fb85b4ce997 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/gulmezeren2-byte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f7eac741f015979b41ddbd20a5b56fb85b4ce997 -
Trigger Event:
push
-
Statement type: