Skip to content

About

🩺 Audit and refactor Claude Code skills like Matt Pocock's method from "Building Great Agent Skills: The Missing Manual". 5 checks, one prioritized report, fixes only on consent. Lints SKILL.md and proposes execution tags with validation tests.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 Skill Doctor

Five checks. One report. Tags with proof. Refactor only on consent.


Claude Code skill GitHub


What it does

Audits an agent skill against the write-a-skill spec and writing-great-skills checklist.

It reads the target skill, scores every row in references/checklist.md, and returns a prioritized fix report. Refactors require your approval.

How to invoke

Invoke it against another skill:

/skill-doctor audit my-skill
/skill-doctor audit my-skill with tags
/skill-doctor audit my-skill include meta-params

Note

Skill Doctor packages Matt Pocock's method from Building Great Agent Skills: The Missing Manual (AI Engineer) β€” who-triggers β†’ structure β†’ deletion test, leading words, and the deletion test itself. The approach is his; this repo is the runnable audit skill.


Example flow

> /skill-doctor audit my-skill

scores checklist β†’ prioritized content report
footer: Say suggest tags for execution-tag proposals

> Go fix it.

backs up SKILL.md β†’ SKILL.md.bak-<date>
applies approved content fixes

> Suggest execution tags.

proposes tags + validation tests β€” still no writes

> Apply the tags.          # or: just fork and allowed-tools

writes approved frontmatter after tests pass

What the report looks like

skill-doctor gate-1 audit report

And the tag proposal

skill-doctor tag proposal


What it checks

Five sections, mapped to Pocock's write-a-skill and writing-great-skills:

Section Focus
Invocation Trigger wording, description shape, invocation boundaries
Structure Line count, reference splitting, co-location
Steps Checkable, exhaustive completion criteria
Pruning Duplicate guidance, dead instructions, vague openings
Hygiene Time-sensitivity, terminology, examples, scripts

Full criteria: references/checklist.md


Meta-params pass (opt-in)

Opt-in, default after content refactor. Say with tags or include meta-params upfront to get tag proposals in the gate-1 report instead.

Skill-doctor can suggest Claude Code execution tags per references/optimize-tags.md: invocation mode, context: fork, model, effort, and allowed-tools scoped to exact Bash commands.

Every tag is a proposal with a validation test. Consent is flexible β€” bulk (apply the tags) or cherry-pick (name the rows). Revert via SKILL.md.bak-<date> or drop added frontmatter. Preflight patterns with scripts/validate-tags.sh.

Resource Purpose
references/optimize-tags.md Tag catalog, scoping rules, validation tests
references/meta-params-template.md Proposal table for gate-1 (upfront) or post-refactor passes
scripts/validate-tags.sh Pre-flight allowed-tools patterns before approving
bash scripts/validate-tags.sh .
bash scripts/validate-tags.sh . "Bash(git clone *)" "Bash(mkdir -p ~/.explore/*)"

Read [GAP] and [CUT] lines, tighten patterns, then dry-run the skill to confirm the tags behave as expected.


Structure

skill-doctor/
β”œβ”€β”€ SKILL.md
β”œβ”€β”€ scripts/
β”‚   └── validate-tags.sh
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ checklist.md
β”‚   β”œβ”€β”€ optimize-tags.md
β”‚   β”œβ”€β”€ meta-params-template.md
β”‚   └── report-template.md
└── README.md

Credits

Method by Matt Pocock β€” Building Great Agent Skills: The Missing Manual (AI Engineer).

License

MIT

About

🩺 Audit and refactor Claude Code skills like Matt Pocock's method from "Building Great Agent Skills: The Missing Manual". 5 checks, one prioritized report, fixes only on consent. Lints SKILL.md and proposes execution tags with validation tests.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages