Skill Doctor
Audit local Agent Skills catalogs and installed skill roots, then apply only narrow metadata repairs when requested.
Arguments
--root PATH: Scan this catalog or installed skill root. Repeatable. Default: current working directory.--format text|json: Select report format. Default:text.--fix-safe: Create missingagents/openai.yamlfiles or update mismatchedpolicy.allow_implicit_invocation.--include-shelved: Includeshelved/*/SKILL.mdin metadata checks. Shelved skills are never required inREADME.md.
Workflow
-
Resolve the skill directory, then run the helper from that directory:
uv run scripts/skill-doctor.py "$ARGUMENTS" -
Use JSON when another command or agent will consume the result:
uv run scripts/skill-doctor.py --root . --format json -
Run safe fixes only after reading the findings:
uv run scripts/skill-doctor.py --root . --fix-safe -
Re-run without
--fix-safeafter any manual edits.
Findings
- Treat
errorfindings as catalog defects that should block publishing or syncing. - Treat
warningfindings as review-required catalog hygiene issues. - Use
pathandlinefrom JSON output for precise follow-up edits.
Safe Fix Policy
--fix-safe may only:
- Create a missing
agents/openai.yamlwithpolicy.allow_implicit_invocationderived fromSKILL.md. - Update an existing
allow_implicit_invocationboolean when it disagrees withdisable-model-invocation.
Do not use the helper to rewrite frontmatter order, descriptions, README rows, references/version.txt, or relative links. Make those edits manually and verify with a fresh audit.
Exit Codes
0: Clean, or all requested safe fixes succeeded and no findings remain.1: Findings remain.2: Invalid arguments or unreadable environment.3: A requested safe fix failed.