doctor-enforcement

doctor-enforcement is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 76 tokens per session (679 once invoked), scanned A, original, MIT.

A workflow that runs the appropriate codebase health checks after major edits or before a change is considered complete. A codebase doctor is a check designed to find problems in a particular part of a project.

In plain words
What is it for?
Use it to inspect changed files and run matching checks for documentation, frontend code, monorepos, infrastructure, or browser performance when applicable.
Why use it?
It reduces the chance of finishing with broken code, configuration, or documentation after editing several files or packages. It chooses checks based on which parts of the project changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect changed files and run matching checks for documentation, frontend code, monorepos, infrastructure, or browser performance when applicable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/doctor-enforcement
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 Kevin-Liu-01/Agent-Machines --skill doctor-enforcement
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

Made for: Claude Code, Codex.

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 doctor-enforcement

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/doctor-enforcement/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/doctor-enforcement)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/doctor-enforcement"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/doctor-enforcement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor-enforcement

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/doctor-enforcement"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/doctor-enforcement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 26
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 39
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 27
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 40
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 28
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 41
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00076 $0.00679
Opus 5 $0.00038 $0.00340
Sonnet 5 $0.00015 $0.00136
Haiku 4.5 $0.00008 $0.00068

Measured 12d ago against content hash bf6c2f5bb94d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

doctor-enforcement 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 12d ago.

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.

knowledge/skills/doctor-enforcement/SKILL.md · 69 lines

How it starts

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

Doctor Enforcement

After a significant edit session, detect which subsystems were touched and run the relevant doctor(s) before reporting completion.

Trigger Conditions

Run this skill when ANY of the following are true:

  • Agent edited 5+ files in a single session
  • Agent touched files across multiple packages in a monorepo
  • User says "run doctors", "health check", "doctor pass", "check everything"
  • Agent is about to claim a task is complete
  • Session involved framework migration, dependency updates, or config changes

Detection Logic

Check git diff --name-only (staged + unstaged) to determine which doctors to run:

Files changed match Run
wiki/**, skills/**, config/** npx tsx scripts/doctor.ts (wiki-doctor)
*.tsx, *.jsx, components/**, app/**, pages/** npx react-doctor@latest
package.json, tsconfig.*, monorepo config npx @sylphx/doctor (if monorepo)
Any frontend files agent-browser vitals <url> (if dev server running)
*.tf, infra/** Project-specific infra doctor

Execution

# 1. Detect what changed
git diff --name-only HEAD

# 2. Run matching doctors (examples)
npx tsx scripts/doctor.ts                    # wiki edits
npx react-doctor@latest                      # React edits
npx @sylphx/doctor                           # monorepo structure
agent-browser vitals http://localhost:3000    # frontend running

# 3. Report results
# If any doctor returns failures: fix before committing
# If warnings only: report to user, commit is OK
# If all pass: proceed

After Running

  1. Report the health score(s) to the user
  2. If failures exist, fix them before claiming completion
  3. If warnings exist, mention them but don't block
  4. If the project doesn't have a relevant doctor, suggest adding one

Rules

  • Never skip doctors to save time. The 30 seconds a doctor takes prevents hours of debugging.
  • If a doctor check fails, fix the root cause — don't suppress the check.
  • If a failure pattern isn't caught by any existing doctor, propose a new check.
  • In monorepos, run ALL doctors for changed surfaces, not just the one you think is relevant.

Read the full file on GitHub · 69 lines

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. 12d ago First seen · 69 lines · 76 tokens per session scan A bf6c2f5bb94d

Subscribe to this mod's changes

doctor-enforcement is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 679 once invoked, about $0.0004 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

opik-explain

Root-cause a specific Opik trace, or a pattern across traces, and return a grounded explanation. Uses the hosted Opik MCP when it is connected, and falls back to SDK scripting otherwise. Returns the root cause, the evidence spans as clickable Opik UI links, and one suggested next step. Use for "why did this trace…

comet-ml/opik-mcp · 113 tokens

hermes-plugin-development

Use when: creating, debugging, or integrating Hermes Agent plugins, including Python backend plugins (tools, hooks, routers, middleware) and JavaScript Hermes Desktop runtime plugins.

AtlasOmnia/donna-starter · 31 tokens

problem-management

Manage ServiceNow problems — create from linked incidents, proactive pattern detection, RCA with 5-Whys, knownerror workarounds (KEDB), KEDB search by CI/category/keywords, and permanent-fix linkage to changes.

serac-labs/serac · 53 tokens

node-inspect-debugger

Debug Node.js with node inspect, inspector attach, breakpoints, Chrome DevTools Protocol, heap snapshots, and CPU profiles.

EKKOLearnAI/hermes-studio · 31 tokens

holix-cron

Schedule recurring agent tasks via Holix built-in gateway cron (not crontab or custom scripts).

javded-itres/Holix · 25 tokens

blazemeter-troubleshooting

Comprehensive troubleshooting guide for BlazeMeter, covering API Monitoring, Performance Testing, general issues, integrations, and security. Use when troubleshooting for (1) API Monitoring issues (Radar Agent auth, SSL certificates, debug tests), (2) Performance Testing issues (high response time, 500 errors, partial…

Blazemeter/bzm-mcp · 131 tokens