skill_doctor

skill_doctor is a skill for Claude Code from theafh/ai-modules. It costs 105 tokens per session (4,541 once invoked), scanned A, original, MIT.

A check-only reviewer for skill definition files and their supporting setup.

In plain words
What is it for?
Use it to inspect one skill, a group of related skills, or every skill in a repository.
Why use it?
It reports problems in metadata, descriptions, registration, tests, and instruction quality without changing the files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the ai_dev plugin — 24 skills, 5 agents, 1 hook shipped together

Good fit Use it to inspect one skill, a group of related skills, or…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/theafh/ai-modules/skill_doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add theafh/ai-modules --skill skill_doctor
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

Made for: Claude Code.

Or install ai_dev, the plugin that ships this one along with the rest of its 24 skills, 5 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill_doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/theafh/ai-modules/skill_doctor.svg)](https://agentmods.dev/skills/theafh/ai-modules/skill_doctor)
Your own site
<a href="https://agentmods.dev/skills/theafh/ai-modules/skill_doctor"><img src="https://agentmods.dev/badge/skills/theafh/ai-modules/skill_doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.04541
Opus 5 $0.00053 $0.02270
Sonnet 5 $0.00021 $0.00908
Haiku 4.5 $0.00011 $0.00454

Measured today against content hash 69215eb745ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

skill_doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/discovery_safety.py, scripts/resolve_scope.py, scripts/skill_discovery.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai_dev/skills/skill_doctor/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

skill_doctor

<skill_doctor_skill>

<when_to_activate> Activate when the user wants skill definitions checked:

  • "Check the ai_instruction_writing skill" / "audit this SKILL.md" / "is this skill's description router-safe?"
  • "Check the wiki family skills" / "doctor the task_* skills."
  • "Check all skills in this repo" / "skill health-check for the whole tree."

Route cross-harness and cross-OS portability review of bundled runtime artefacts to harness_portability. Route authoring rewrites of instruction prose to ai_instruction_writing / ai_instruction_formatting after this skill reports findings. </when_to_activate>

<path_resolution> Bundled scripts live in scripts/ next to this SKILL.md. Resolve each script's absolute path by combining the directory of this SKILL.md with scripts/<script-name> and invoke that absolute path. If the first invocation reports a missing file, re-resolve the absolute path once before treating the script as failed. </path_resolution>

<check_only> Report findings only. Leave every selected skill artifact, and every other skill file, byte-for-byte unchanged for the duration of a check run. Applying fixes is a separate user-directed edit, never part of this workflow. </check_only>

<scope_resolution> Resolve scope before any check, and name the final target set out loud before continuing.

Every check targets the repository source tree, so pass that repo root as --root and resolve every selector inside it.

The resolver discovers the layout instead of requiring one. It walks the whole tree under --root for skill files, matching the filename case-insensitively the way the harness matches it, and it prunes version-control, dependency, build, and cache directories along with every path the repository itself ignores. It recognizes a plugins/*/skills/ layout, a repo-root skills/ tree, a <vendor-config-dir>/skills/ tree, a single-skill repo whose SKILL.md sits at the top level, and a nested layout below the root, and it reports which layout each resolved skill came from under layouts, so the reader sees what was walked. Where a plugin manifest sits above a resolved skill, the payload records it as that skill's plugin_host, and the registration step reads that association. A copy of a skill deployed under a vendor configuration directory outside the repo root is a build output rather than a target, so a selector pointing at one resolves the repository source of the same name and reports the swap under vendor_substitution; name that substitution in the orientation lead.

  • Single skill. A request that names one skill or one skill-file / skill-directory path stays on that skill. Run scripts/resolve_scope.py --root <repo-root> --skill <name-or-path>.

  • Family. A request that names a family token expands to the matching sibling set. A family hub is the skill whose frontmatter name: equals the family token. Skills share that family-name when their frontmatter name: equals the token or equals the token followed by _ and a non-empty suffix (token_*). Resolve a family as the set of skill directories the walk found whose skill names share that family-name, unioned with any skills named in the hub SKILL.md <family> block when that hub and block exist; when no hub or no <family> block is present, use that family-name set alone. Run scripts/resolve_scope.py --root <repo-root> --family <token>.

    The resolver identifies that <family> block structurally rather than by first occurrence: the opening tag has to own its line, outside every fenced code block and inline code span, and a closing tag has to follow it. An author may therefore document the tag freely (naming <family> in prose, quoting it in backticks, or showing a whole example block inside a fence) and contribute no members. A body carrying an opening tag with no closing tag declares no block at all and resolves by name prefix alone. Members come from the leading backticked token of each block list item, so a trailing mention such as - `task_finish`: bump `updated` declares one name rather than two.

Read the full file on GitHub · 128 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 69215eb745ed
  2. 7d ago First seen · 128 lines · 105 tokens per session scan A fa0a9f81f5c8

Subscribe to this mod's changes

skill_doctor is a skill published in the GitHub repository theafh/ai-modules (38 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 4,541 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens