doctor
Skill16 starsChanged 5 months agoMITView on GitHub
Diagnose Cladding runtime health — Claude Code hook liveness and version, CI package pinning, lifecycle governance, and sentinel-miss frequency by phase × cause × fallback. Use when hooks may be silent, CI may float across Cladding releases, scan or run results look thinner than expected, or before tuning the host model or transport. Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.
- Reads credentials
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 6 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
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 10 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
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/cladding-bootstrap.mdcCursor rule
- cladding-initSkill
- cladding-initSkill
- cladding-initSkill
- changelogSkill
- checkpointSkill
- checkSkill
- clarifySkill
- initSkill
- oracleSkill
- rollbackSkill
- routeSkill
- serveSkill
- statusSkill
- syncSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Run clad doctor from the project root.
- Distinctive: line 19
When sentinel-miss events exist:
- Very specific: line 32
After clad init --scan to confirm the scan refinement ran with full LLM coverage (no sentinel_miss events).
- Distinctive: line 33
After installing or updating the Claude Code plugin to confirm a new session actually fired the shipped hooks and loaded the current engine.
- Very specific: line 34
After a clad serve session to confirm the host returned refined replies through the configured dispatcher.
- Very specific: line 36
Before reporting "the LLM seems off" to a host (Claude Code / Cursor / Continue) — the breakdown tells you whether the issue is dispatcher …
“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
Cladding doctor
Run clad doctor from the project root. The verb is observability — it never mutates the working tree.
--cwd <path>— read events from a project directory other than the current one (default cwd).--json— emit the rawDoctorReportshape instead of the formatted text surface; the additive shape ({cwd, events, sentinelMiss, governance, hooks, ciVersion}) is the stable wire format for MCP clients and follow-up tooling.
The text surface prints:
- One pulse line with total events and total sentinel-miss count (
passwhen zero misses,noteotherwise). - An event-type breakdown line (one
<type>=<count>token per non-zeroEventType). - Claude Code hook health: whether the runtime has actually been observed, whether the observed engine version matches the current CLI, and the last firing time (or
never observed) for session start, prompt submit, before edit, after edit, and session stop. - A non-blocking CI warning naming each GitHub Actions workflow that invokes an unversioned or floating
npx claddingpackage. Numeric selectors such ascladding@0.9andcladding@0.9.4stay quiet. - Governance counts for gate runs, done attempts and rejections, stop blocks, known-failing Stop exits, blocked fingerprints reproduced by a later gate, and attestation state.
- When sentinel-miss events exist:
by phase/by cause/by fallbackaggregates from the v0.3.39 telemetry payload.- Top-5 missed sentinels (
CONVENTIONS_MD/ARCHITECTURE_YAML/SCENARIO_FLOWS/CAPABILITIES_YAML/WHY/WHAT/PURPOSE) sorted by count desc, name asc. - Last 3 unique dispatcher error strings (most recent first; errors are truncated to 200 chars at the emit site).
- A one-line tuning hint.
Exit codes
0— events.log was either missing (greenfield) or readable. A greenfield workspace prints a friendly note and exits 0; a healthy host with zero misses also exits 0 with apassline.1—events.log.jsonlexists but cannot be parsed as JSONL (corrupt telemetry).
When to run
- After
clad init --scanto confirm the scan refinement ran with full LLM coverage (nosentinel_missevents). - After installing or updating the Claude Code plugin to confirm a new session actually fired the shipped hooks and loaded the current engine.
- After a
clad servesession to confirm the host returned refined replies through the configured dispatcher. - Periodically in CI to track miss rate across sampling-policy changes.
- Before reporting "the LLM seems off" to a host (Claude Code / Cursor / Continue) — the breakdown tells you whether the issue is dispatcher transport (
cause: dispatcher_error) or model output quality (cause: blank_section).
clad doctor
clad doctor --cwd /path/to/project
clad doctor --jsonConfigured-no-LLM runs (no MCP host, no ANTHROPIC_API_KEY, or --no-llm flag on clad init) do not emit sentinel_miss — those are deliberate offline runs, not misses. A doctor pass with zero events on a workspace that never reached the LLM path is therefore expected, not a problem.
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.

