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.
npx skills add theafh/ai-modules --skill skill_doctorgit clone --depth 1 https://github.com/theafh/ai-modulesWrote 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.
[](https://agentmods.dev/skills/theafh/ai-modules/skill_doctor)<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>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.
| Model | Per session | Once 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 |
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.
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.
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 frontmattername: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 hubSKILL.md<family>block when that hub and block exist; when no hub or no<family>block is present, use that family-name set alone. Runscripts/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.
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.
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.
- today Changed 69215eb745ed
- 7d ago First seen · 128 lines · 105 tokens per session scan A fa0a9f81f5c8
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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.
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…
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…