claude-md-doctor

Solid

Give this repo's CLAUDE.md / AGENTS.md a checkup — size vitals vs official guidance, dead references, dead commands, stale claims — then backtest every rule against the repo's own Claude Code session history to see which rules were actually followed, ignored, or never used, and produce a doctor-style HTML report with evidence-cited prescriptions. Use when asked to check, diagnose, audit, review, improve, optimize, lint, grade, fix, clean up, shorten, or "doctor" CLAUDE.md, AGENTS.md, or agent instruction/memory files, or to find out whether CLAUDE.md rules actually work. Also use when a repo has NO memory file and the user wants one — "write/generate/suggest a CLAUDE.md (or hooks) from my sessions" — the skill mines the repo's real session history and drafts a proposed file with receipts.

AI & Automation 35 stars 2 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
52
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# CLAUDE.md Doctor — exam procedure You are running a checkup on this repository's agent-instruction files. The deterministic work lives in scripts; your job is the judgment between them. Do not re-derive what a script already measured, and do not skip a stage — the report verifies the work-state manifest and will disclose skipped stages. Definitions used below: - `SCRIPTS` = `${CLAUDE_SKILL_DIR}/scripts` — Claude Code substitutes `${CLAUDE_SKILL_DIR}` with this skill's own directory at run time, so the scripts resolve no matter the working directory or how the skill was installed. Use it literally; do not try to locate the skill yourself. - `REPO` = the repository to examine (the argument if one was given, else the current working directory). - `WORK` = `REPO/.claude-md-doctor/work` (scripts default to this; pass `--work` to relocate, e.g. into a scratch directory to avoid writing in the user's repo — prefer that when the repo is not yours to dirty). ## Stage 0 — preflight Run `python3 --version`. If python3 is missing, stop and tell the user this skill needs Python 3.9+ (stdlib only, nothing to install). ## Stage 1 — intake python3 SCRIPTS/intake.py --repo REPO --work WORK Then read `WORK/intake.json` (it is small). Note for later judgment: - Is the project CLAUDE.md a **pointer** (`is_pointer`) to AGENTS.md? That is the healthy, officially-recommended pattern — the target is the patient. Never diagnose a pointer file as "too short." Check `pointe...

Details

Author
agent-clinic
Repository
agent-clinic/claude-md-doctor
Created
2 weeks ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

doctor

Health-check the user's Claude Code setup and fix issues: diagnose installation health — what the `claude doctor` terminal diagnostics cover — from local data (duplicate or leftover installs, PATH, unparseable settings files, broken or colliding agent definitions, skills whose frontmatter fails to parse); find unused skills, MCP servers, and plugins versus their context cost and disable dead weight; deduplicate local CLAUDE.md files against checked-in ones; trim checked-in CLAUDE.md files by cutting content a session could derive from the codebase (directory layouts, tech-stack lists, architecture overviews) while keeping gotchas, rationale, and non-standard conventions; migrate always-loaded CLAUDE.md guidance into lazy skills and nested CLAUDE.md files; flag slow hooks and context-heavy extensions; check the installed version is current; make auto mode the default permission mode; and pre-approve frequently denied read-only commands. Use when the user asks for a doctor run, checkup, audit, tune-up, or clean

64,796 Updated yesterday
asgeirtj
AI & Automation Listed

config-doctor-lite

Quick health-check for AI coding agent configuration. Auto-discovers CLAUDE.md files and skill directories, then runs 3 read-only checks: broken path references in CLAUDE.md, skill folders missing SKILL.md, and weak SKILL.md frontmatter (missing name/description). Python stdlib only, prioritized terminal report, never writes anything. Use when the user asks to audit their Claude Code config, check for broken paths or dead references after moving/renaming a project or migrating machines, or find out why a skill is not loading or triggering. Not for auditing code dependencies (npm/pip), scanning for secrets, linting application configs (nginx, Docker, ESLint, Kubernetes), or creating a new CLAUDE.md from scratch. Memory-index, hooks, and MCP-definition checks plus JSON/CI output are in the full Config Doctor.

0 Updated 1 months ago
guildshelf
AI & Automation Listed

claude-md

How to write and update the repository's CLAUDE.md (commands, architecture map, conventions, Definition of Done, forbidden actions) and its template. Load at kickoff, legacy assessment, when a retro adds a rule, or when CLAUDE.md is missing or its commands no longer match reality.

1 Updated today
jaewhi-park