|
Audits an agent skill against the write-a-skill spec and It reads the target skill, scores every row in |
Invoke it against another skill: |
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.
> /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 passFive 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
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.
skill-doctor/
βββ SKILL.md
βββ scripts/
β βββ validate-tags.sh
βββ references/
β βββ checklist.md
β βββ optimize-tags.md
β βββ meta-params-template.md
β βββ report-template.md
βββ README.md
Method by Matt Pocock β Building Great Agent Skills: The Missing Manual (AI Engineer).

