kevin-liu-01/agent-machines/doctor-enforcement

Claude Code and agent skill by kevin-liu-01/agent-machines

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Auto-run the relevant codebase doctor(s) after large edit sessions or before committing. Detects which subsystems were touched and runs the matching doctor. Use when the agent has completed a significant edit (5+ files), before claiming work is done, or when the user says "run doctors", "health check", "doctor pass", or "check everything."

Install

npx vskill@latest install kevin-liu-01/agent-machines/doctor-enforcement

SKILL.md

The same SKILL.md was published earlier as kevin-liu-01/agent-machines/doctor-enforcement.

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 matchRun
wiki/**, skills/**, config/**npx tsx scripts/doctor.ts (wiki-doctor)
*.tsx, *.jsx, components/**, app/**, pages/**npx react-doctor@latest
package.json, tsconfig.*, monorepo confignpx @sylphx/doctor (if monorepo)
Any frontend filesagent-browser vitals <url> (if dev server running)
*.tf, infra/**Project-specific infra doctor

Execution

bash
# 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.

Related

  • wiki/concepts/doctor-pattern.md — the pattern definition and registry
  • wiki/concepts/lint-enforced-agent-guardrails.md — enforcement hierarchy
  • skills/personal/wiki-doctor/SKILL.md — wiki-specific doctor

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
31
Repository forks
5
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kevin-liu-01/agent-machines/doctor-enforcement/badge)](https://verified-skill.com/skills/kevin-liu-01/agent-machines/doctor-enforcement)

Something wrong with this skill or its page? Tell us.