agentleFS
svy04svy04/ballast/skills/doctor/SKILL.md

doctor

Skill74 starsChanged 3 months agoMITView on GitHub

Health check for the ballast installation — is the hook alive, are the catalogs sane, is anything silently dead. Use when rules stop arriving, the session-start line is missing, the user asks "is ballast working", or after an update or reinstall.

40 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • ahilarionSkill

    trace

    Evidence-driven debugging with parallel hypothesis testing

    Also in 4 projects that use this

  • AnthropicSkill

    analyze

    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

  • AnthropicSkill

    status

    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

  • MicrosoftSkill

    help

    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

  • MicrosoftSkill

    init

    Generate or update chat customization files for AI coding agents

    Also in 3 projects that use this

  • DockerSkill

    research

    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

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never hide what you could not check.

    line 11

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Doctor — silence diagnosed, not trusted

The failure mode this skill exists for: a dead hook looks exactly like a quiet one. Doctor tells them apart, and reports in four states — healthy, off (disabled on purpose), broken (something the user relies on is not happening), unchecked (could not be verified). Three rules govern the report:

  • Off is not a problem. BALLAST_DISABLE=1 or BALLAST_QUIET=1 set on purpose gets reported as "off — as configured", never as a failure.
  • Never hide what you could not check. An "unchecked" row is information; silently skipping it is not.
  • "Fixed" is claimed only after re-running the check that failed.

Checks, in order

  1. node exists, version ≥ 18 — node --version. Missing node means every other check is moot; the fix (install node) is the user's, with a link.
  2. Hook wiring — the plugin's hooks/hooks.json parses and its script file exists. Find the plugin root via CLAUDE_PLUGIN_ROOT or claude plugin list.
  3. Live fire — run the engine's status line for real: node .../ballast-rules.mjs --status. The line appearing IS the proof; a wiring check alone is not (a manifest that parses can still fail to load — that was ballast's own 0.8.1 bug).
  4. Off switches — BALLAST_DISABLE, BALLAST_QUIET, BALLAST_NO_LOG set? Report as "off — as configured" and ask nothing.
  5. Catalog presence — user (~/.claude/ballast.rules.json) and project paths. Neither existing is not broken; it is "before first setup" — point at the setup skill.
  6. Catalog health — run node .../ballast-rules.mjs --check. It flags parse failures, rules that can never fire, patterns that do not compile, duplicate ids, and budget overruns (20+ rules, 3+ always-on). Translate its findings to plain words: "rule 3's detection condition is broken", not the regex error.
  7. Delivery history — run node .../ballast-rules.mjs --report. An empty log with an old install suggests keywords in the wrong language or a hook that died some time ago; cross-check with check 3.
  8. Language pairing — keywords in one language while the user chats in another is the top silent killer of rules. Compare catalog keywords against the language of the current conversation.
  9. Memory files (optional) — memory/ absent is "off — brain-init not used", not a failure. If present, confirm DECISIONS.md exists.
  10. Self-instrument — say whether every check above actually ran. A doctor that skipped half its checks and printed "healthy" is the exact disease it treats.

Report shape

Broken first (each: one plain sentence on what stopped working for the user → the fix path), then unchecked, then off in one line, then "N healthy". Close with a four-cell summary: auto-fixed / awaiting approval / user's hands / healthy·off·unchecked.

Repairs come in three tiers: harmless ones you just do (creating a missing .claude/ folder); catalog edits proposed one at a time and applied only on approval — the user is the author of their rules, doctor included; node installs and plugin reinstalls stay in the user's hands, with exact commands.


Part of ballast — foundations first, every solved path kept, done means checks pass.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.