Agent Skills › Agent Productivity › skills-doctor

Agent Productivity

🩺 skills-doctor

Audit your installed skills for broken frontmatter, vague triggers, conflicts and leaked secrets. A free, open-source Agent Skill for Claude Code, Cline, Cursor, Codex and 75+ AI agents.

skills-doctor demo with real terminal output

Install skills-doctor

# Claude Code (all 51 skills)
/plugin install all-skills --marketplace milad-ahmd/agent-skills

# Cursor, Codex, Cline, Windsurf, Copilot + 75 more agents
npx skills add milad-ahmd/agent-skills --skill skills-doctor

# Shell installer
curl -fsSL https://raw.githubusercontent.com/milad-ahmd/agent-skills/main/install.sh | bash -s -- skills-doctor

Included in packs: skill-builder-pack

What to say to your agent

When it triggers

Audits installed Agent Skills (SKILL.md) for problems that stop them from working, such as invalid or missing frontmatter, name and folder mismatches, vague or overlapping descriptions that never trigger or trigger wrongly, oversized files, missing referenced scripts, and possible embedded secrets, using a linter script, then proposes fixes. Use when the user asks to check, debug, clean up, or audit their skills, or asks why a skill isn't triggering.

Full skill instructions (SKILL.md)

Skills Doctor 🩺

Diagnose why skills don't trigger, trigger at the wrong time or conflict with each other.

1. Scan

python3 scripts/skills_doctor.py                          # ~/.claude/skills + ./.claude/skills
python3 scripts/skills_doctor.py path/to/skills-dir ...   # custom locations

The checks: frontmatter present and valid, name matches its folder and is kebab-case, the description exists, isn't too short or too long, and contains "when to use" trigger language; the file size; scripts that are referenced but missing; likely secrets; and pairs of skills whose descriptions overlap heavily (conflict risk).

2. Interpret

  • ❌ Errors break loading. Fix them first.
  • ⚠️ Warnings hurt triggering or quality.
  • 🔀 Overlaps: decide whether to merge the skills, sharpen both descriptions with distinct triggers, or uninstall one.

3. Fix (with user approval)

Propose exact edits: rewritten descriptions (<what it does>. Use when the user asks to …), renames, splitting oversized skills into references/, and removing secrets (then rotate them). Re-run the doctor until it reports no errors.

4. Trigger test

For each important skill, write 3 prompts that should trigger it and 2 that should not, then check the descriptions against them.

Rules

  • Never delete a skill without confirmation. Back up before bulk edits.
  • Never print the full value of a detected secret.

View source on GitHub ⭐ Star the collection

Related skills