doctor
Skill6 starsChanged 3 months agoMITView on GitHub
Run a read-only hygiene + documentation audit on the current repo. TRIGGER when the user says "is this repo healthy", "check hygiene", "audit this repo" (when they mean inspect, not remediate), "what's drifted", "run doctor", "run a health check", "audit docs", "check for doc drift", "what's broken in this project", "are the hooks still installed", "/nyann:doctor". Do NOT trigger on "fix this repo" / "remediate" / "bring it into compliance" — those are retrofit (audit + fix). doctor reports, never writes. Do NOT trigger on "what does this repo do" (that's a docs pointer, not a hygiene audit).
40 other projects use a version of this.
Adopted by
Most recently taken up by
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- bloxy-studios/shorts-studiotheir own version, first seen Oct 1, 2026
- sachingulati/claude-statuslinetheir own version, first seen Sep 30, 2026
- saxenakapil/setup-doctortheir own version, first seen Sep 29, 2026
- talayash/spring-fleettheir own version, first seen Sep 29, 2026
- limoaCatherine/game-studio-harnesstheir own version, first seen Sep 20, 2026
Used with
Projects with it also use trace, analyze and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ahilarionSkilltrace
Evidence-driven debugging with parallel hypothesis testing
Also in 4 projects that use this
AnthropicSkillanalyze
Answer data questions -- from quick lookups to full analyses. Use when looking up a single metric, investigating what's driving a trend or drop, comparing segments over time, or preparing a formal data report for stakeholders.
Also in 4 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 6 projects that use this
termdockSkillrecall
Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.
Also in 3 projects that use this
MicrosoftSkillhelp
Entry point for the MedImageInsight plugin, covering the getting-started walkthrough, how the skills work, what MI2 is, and troubleshooting.
Also in 3 projects that use this
MicrosoftSkillinit
Generate or update chat customization files for AI coding agents
Also in 3 projects that use this
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- jihe520/MathModelAgent★ 6.2ksame name
- ory/lumen★ 303same name
- KumarSashank/motiscope★ 121same name
- bluzir/claude-code-design★ 106same name
- Rich627/whatsapp-claude-plugin★ 100same name
- jjanczur/tyran★ 81same name
- svy04/ballast★ 74same name
- crisandrews/ClawCode★ 63same name
- Hainrixz/agente-pagokit★ 61same name
- MedAdemBHA/docflow★ 42same name
30 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-team-sourceSkill
- bootstrap-projectSkill
- check-prereqsSkill
- cleanup-branchesSkill
- commitSkill
- diagnoseSkill
- diff-profileSkill
- explain-diffSkill
- explain-stateSkill
- fleet-retrofitSkill
- fleetSkill
- gen-ciSkill
- gen-claudemdSkill
- gen-dependency-updaterSkill
- gen-devcontainerSkill
- gen-templatesSkill
- gh-protectSkill
- hotfixSkill
- iac-applySkill
- iac-planSkill
- inspect-profileSkill
- learn-profileSkill
- migrate-profileSkill
- new-branchSkill
- optimize-claudemdSkill
- prSkill
- record-decisionSkill
- releaseSkill
- retrofitSkill
- route-docsSkill
- settingsSkill
- setupSkill
- shipSkill
- suggestSkill
- syncSkill
- sync-team-profilesSkill
- undo-bootstrapSkill
- undoSkill
- wait-for-pr-checksSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Read-only audit. Never mutates the filesystem.
- Very specific: line 26
Look for a .nyann/profile or equivalent profile hint in the repo.
- Distinctive: line 27
If the repo's CLAUDE.md declares an active profile, use that.
- Very specific: line 28
If neither exists, ask the user which profile to audit against (default, nextjs-prototype, python-cli, or any user/team profile they've …
- Very specific: line 115
After showing the audit report, check whether memory/health.json exists in the target repo.
- Very specific: line 121
If any category_deltas show worsening (delta < 0 in the breakdown), call them out: "⚠ missing got worse (−3 over the window)."
- Very specific: line 123
If the trend direction is down, suggest: "Score is declining — run /nyann:retrofit to address the drift."
- Very specific: line 126
If memory/health.json doesn't exist, skip silently — don't suggest creating it.
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
doctor
Read-only audit. Never mutates the filesystem. Wraps
bin/doctor.sh, which internally runs bin/retrofit.sh --report-only.
1. Resolve the profile
doctor.sh requires --profile <name>. The skill's job is to pick the
right one without pestering the user:
- Look for a
.nyann/profileor equivalent profile hint in the repo. - If the repo's CLAUDE.md declares an active profile, use that.
- If neither exists, ask the user which profile to audit against
(
default,nextjs-prototype,python-cli, or any user/team profile they've installed). Don't silently pickdefault— the audit is only meaningful against an intended baseline.
2. Invoke
bin/doctor.sh --target <cwd> --profile <name> [--json] [--scope <csv>]--profile takes a bare profile name (e.g. python-cli, nextjs-prototype),
not a filesystem path. The script resolves the name to the profile JSON internally.
Pass --json when the user says "machine-readable", "as JSON",
"pipe this", or similar — otherwise emit the human-readable report.
Pass --scope <csv> when the user wants to inspect only a subset of
the audit — e.g. "just check my docs", "are my hooks healthy". Accepts
any of docs, hooks, branching, gitignore, editorconfig,
github, history, all, comma-separated. When narrower than all,
the rendered output gains a Scope: <csv> line and --persist is
auto-disabled (a partial-scope health score would corrupt the trend
series in memory/health.json).
3. Interpret the exit code
| Code | Meaning | What to tell the user |
| 0 | clean | "No drift. Hygiene and docs look healthy." |
| 4 | warnings only | "Not failing, but some things have drifted. Here's the list." Offer to remediate via retrofit. |
| 5 | critical | "Missing required files or broken internal links. Run retrofit to fix." |
4. Sections in the report
The output has several blocks. When the user asks "what does each section mean?", explain in terms of the repo, not nyann internals:
- MISSING: files the profile expects but the repo lacks (e.g. no
.husky/pre-commitwhen the profile declares husky hooks). - MISCONFIGURED: files present but content doesn't match (e.g. a
.husky/pre-commitexists but doesn't actually run the expected linter). - NON-COMPLIANT HISTORY: last N commit subjects that don't match Conventional Commits. Informational — nyann never rewrites history.
- DOCUMENTATION: CLAUDE.md size vs budget, internal link resolution,
MCP link reachability (when MCP connectors are available), orphan files
under
docs//memory/, and misplaced docs (files at non-canonical paths that could be reorganized via retrofit). - GITHUB PROTECTION: branch protection per strategy, tag-protection
rulesets (when
.github.tag_protection_patternis declared in the profile), CODEOWNERS-required gate (when a CODEOWNERS file exists or.github.require_code_owner_reviews=true), and repo-security settings (Dependabot, secret scanning, push protection, code scanning). Soft-skips whenghis missing or unauthenticated. Driven bybin/gh-integration.sh --checkunder the hood. Critical drift here bumps the exit code to 5; warn drift bumps it to 4. - DOC STALENESS: doc files under
docs/whose correlated source paths have changed substantially since the doc itself was last touched. Heuristic-based (bin/docs-staleness.sh); thresholds configurable via the profile (documentation.staleness_threshold_*). Informational — never affects exit code. - PUBLIC-DOC DRIFT: README/CONTRIBUTING/SECURITY/docs/*.md scanned
for version-ref drift (semver older than latest tag), broken
markdown link targets, missing
npm run/makescript references, and count-claim drift (opt-in per profile). Driven bybin/docs-drift-scan.sh. Critical/high findings escalate the exit code (mirrors GitHub protection); medium/low are advisory. - IAC DRIFT: IaC source (
*.tf,Chart.yaml,Pulumi*.yaml,*.tfvars, Ansible vars) scanned for committed secrets (critical), unpinned module refs / providers / deps (high), missing lockfiles and HelmappVersionlag (medium). Filesystem + git only — noterraform plan, no cloud calls. Driven bybin/iac-drift-scan.sh, gated per profile viaiac.drift_check.{enabled, unpinned_refs, missing_lockfile, secrets_in_vars, version_lag}. Critical/high findings escalate the exit code (mirrors public-doc drift); medium/low are advisory. Silent on non-infra repos. Like public-doc drift, this is score-isolated — it shapes the exit code but not the numeric health score.
The protection block respects nyann's gh-best-effort invariant — it
never prompts for credentials and never blocks the audit. When gh
isn't reachable, the section reports skipped and contributes no
drift to the exit code.
5. Surface health trend (when available)
After showing the audit report, check whether memory/health.json
exists in the target repo. If it does:
- Run
bin/health-trend.sh --target <cwd> --last 10. - Show the sparkline and summary: "Health trend: ▃▄▅▆▇ — 72→85 over last 10 checks (↑ improving)."
- If any
category_deltasshow worsening (delta < 0 in the breakdown), call them out: "⚠missinggot worse (−3 over the window)." - If the trend direction is
down, suggest: "Score is declining — run/nyann:retrofitto address the drift."
If memory/health.json doesn't exist, skip silently — don't suggest
creating it. The persist step happens automatically via doctor.sh.
6. What to do after
- User asks to fix drift → hand off to
retrofit("fix this repo's drift"). Do not attempt to fix anything from inside the doctor skill. - User asks "why is this missing?" → read back the profile's expectation for that item; don't guess.
- User says "ignore warnings, they're false positives" → there's
no silencing mechanism inside doctor itself. If it's a recurring
false positive, the profile or the repo's
.nyann-ignore-equivalent is the right lever (future work, not today).
When to hand off
- "Fix it" / "remediate" / "bring into compliance" →
retrofit. - "Why is this profile the active one?" →
inspect-profile(if available) or read the profile JSON directly. - "I want a different profile applied" →
retrofitwith the new profile name.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

