Skip to content
Back to skills

Doctor

ASecurity

This skill should be used when the user asks to "run the house doctor", "house doctor", "is house healthy here", "check house health", or to explain what a `house doctor` line means and what to do about it.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
developmentgobashnodegit

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add dubbl-a/house-rules --skill doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doctor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dubbl-a-doctor/badge)](https://www.skillsdirectory.com/skills/dubbl-a-doctor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doctor
description: This skill should be used when the user asks to "run the house doctor", "house doctor", "is house healthy here", "check house health", or to explain what a `house doctor` line means and what to do about it.
---

# House doctor

Run `house doctor` on a repo and explain each line it prints, with the next action for every line that is not clean. Read-only: this skill runs the doctor and explains. It never runs `render --apply`, `house confirm`, `house decline` or `house upgrade --apply` itself; it names them and lets the user run them. (`/house-rules:sync` is the skill that writes files.) This skill reports house state only; installation, settings and instruction-file health belong to the harness's own `/doctor` and `/doctor prompt-audit`, which this does not replace.

```
node ${CLAUDE_PLUGIN_ROOT}/scripts/house doctor --repo <root>
```

Outside Claude Code (Antigravity CLI), where `${CLAUDE_PLUGIN_ROOT}` is not set, run `node <plugin folder>/scripts/house <args>` instead of `node ${CLAUDE_PLUGIN_ROOT}/scripts/house <args>`, where `<plugin folder>` is the plugin's installed path, the directory holding this `skills/` folder; `${CLAUDE_PLUGIN_ROOT}` paths elsewhere in this skill are relative to it.

On Codex, where `${CLAUDE_PLUGIN_ROOT}` is likewise unconfirmed, run `node <that directory>/scripts/house <args>`, where `<that directory>` is the one holding this `skills/` folder.

`<root>` is the repo root (the current directory when omitted). `--json` prints the same facts as one object. Report the lines the user needs to act on first, then the rest. Do not compute any line by hand; this skill reports what the doctor printed. The doctor always exits 0, so a clean exit proves nothing: read the lines.

## What each line means, and the next action

- **`effective branch guard: plugin | repo | NONE`.**
  - `NONE`: no `house.json` and no repo-local hook, or `branchPolicy` is `direct`. Nothing guards direct commits to a protected branch. Next: run `/house-rules:bootstrap` when `house.json` is absent.
  - `repo`: a substantive repo-local `.claude/hooks/no-direct-master.sh` exists (the checker's rule: a line that is not blank, a comment, or a bare `exit 0`), or `.claude/settings.json` has a non-empty `hooks.PreToolUse`. A repo guard runs alongside the plugin hook, which still enforces `branchPolicy` when installed and enabled (it never defers, #580); the strictest decision wins. Doctor prints `caveat: the plugin hook also enforces under branchPolicy "pr" ...`: Claude Code drops the whole `settings.json` on any schema error, so a settings entry runs only when the file loads. A blank, comment-only or `exit 0` script is a stub that does nothing: doctor does not report `repo` for it, prints `caveat: .claude/hooks/no-direct-master.sh has no substantive line ...` (`--json` `stubGuardScript`), and falls through to the line below (#583). Next, for a stub: delete it or write a real guard.
  - `plugin`: `house.json` exists and neither repo-local signal is present, so the plugin hook enforces `branchPolicy` and `protectedBranches`. It prints `plugin (recorded <date>)` when `house.json` carries a `guard` record and `plugin (unrecorded; ...)` when it does not; that only decides whether the checker's `guard` warning is cleared, the hook enforces the same either way. Next, when unrecorded: add the `guard` record the line prints to `house.json`.
  - `floor (...)` and `remote (...)`: a recorded decision that the git hooks or the server's branch protection is the guard. Nothing to do; `floor` also says whether the floor is armed on this machine.
  - `caveat: assumes the house plugin is installed and enabled ...`. Printed once, under the first line that relies on the plugin (this one or the rule-load line). Doctor cannot verify plugin enablement from the repo alone; confirm in the session that the house plugin is enabled.
- **`git-hook floor: ...`.** Whether the vendored `.githooks/` tree is wired into git in THIS clone. The git setting that wires it lives in `.git/config`, so no clone, render or PR carries it; the checker never reads it (ADR 0008) and doctor is where it is reported.
  - `armed (...)`: git runs the floor. Nothing to do.
  - `NOT armed -- core.hooksPath is unset in this clone`: the floor is rendered and inert. Next: `house render --apply` arms it, as does starting a session in the repo with the plugin installed.
  - `NOT armed -- core.hooksPath is <other>`: another tool (husky, lefthook, a monorepo convention) owns the one hooks path. House never overwrites it. Next: chain the floor from the hooks there, or unset it and re-run render.
  - `not rendered here (missing: <paths>)`: at least one of the seven floor files is absent, and the line names which. All seven missing is a repo that has not rendered the floor. One missing is worse: every guard sources `.githooks/house-lib.sh` and exits non-zero when that fails, so a floor missing only the library fails every commit closed. Next: `house render --apply`.
  - `not applicable`: no `house.json` at this root, or `branchPolicy` is not `pr`.
  - `git-hook floor: off (...)`: the `github` module is off in `house.json`, and it is what ships the floor, so there is nothing to render or arm. When `core.hooksPath` still names a directory that is gone, an indented follow-on says so: `core.hooksPath is <path> (<scope>), a directory that does not exist`. Git then runs no hooks in this clone, the repo's own included. The scope in parentheses names the config file that sets it. Next: unset it at that scope, for example `git config --global --unset core.hooksPath` when the scope is your global config, or `git config --unset core.hooksPath` for the clone's own.
  - `git-hook floor: unknown (...)`: the plugin's `hooks/arm-git-hooks.sh` could not be run here, so the floor's state is unknown. Next: check that `bash` and the installed plugin are present, then re-run doctor.
  - `NOT armed -- core.hooksPath is <path> (...), a .githooks that is not a directory (a moved repo?)`: the path names a `.githooks` that is not a directory, most likely because the clone was moved. Next: `house render --apply` (or starting a session in the repo) re-arms it to this repo's `.githooks`. In a linked worktree, run it in the main checkout, which holds the key. When the line lists foreign hooks, chain or move them first: render refuses to re-arm over them.
  - Indented follow-on lines say what makes the floor quiet rather than protective. `foreign hooks in this clone's .git/hooks`: arming is refused, because the hooks path replaces `.git/hooks` wholesale; move those hooks into the chain first. `not executable`: git silently ignores a hook without the bit, a fail-open; next: `house render --apply` restores the mode (only for classes that can already read the file, so a deliberately 0600 hook comes back 0700). `reference-transaction: supported by git <version> (>= 2.28)` is fine; `inert on git <version> (needs 2.28)` is a real gap: below 2.28 `--no-verify` skips `pre-commit` and `pre-push` together and nothing else catches it, so next: upgrade git.
- **`jq on PATH: yes | no`.** The hook still denies without `jq` (hand-written deny JSON). Next on `no`: install `jq`.
- **`plugin version: <v>`.** The loaded plugin's own `plugin.json`. Information only.
- **`pin vX matches plugin vY` | `pin vX is behind installed plugin vY (...)` | `pin vX is ahead of installed plugin vY (...)` | `pin vX differs from installed plugin vY`.** `house.json`'s `version` against the plugin's own `plugin.json`.
  - `matches`: nothing to do.
  - `behind`: the pin bump has not landed. Next: `/house-rules:sync` (or `house render --apply` when the sync PR flow is not wanted).
  - `ahead`: the installed plugin is older than the pin. Next: update the plugin (`claude plugin update house-rules@house-rules`), restart Claude Code, re-run doctor. Never `render --apply`: it would roll the vendored files back to vY (#441).
  - `differs`: a version that is not plain semver on one side, so no direction is given. Next: read both versions and decide by hand.
  - `no version pin (...)`: `house.json` is absent, unparseable, or has no `version`, so there is nothing to compare. Next: `/house-rules:bootstrap` when `house.json` is absent, fix the JSON when it is unparseable, otherwise `house render --apply` writes the pin.
- **`latest release vX; installed vY (N behind)` | `installed vY is the latest release` | `latest release vX; installed vY is ahead of it (unreleased)` | `latest release vX; installed Y is not a release version` | `latest release: not checked (<reason>)`.** The installed plugin against the latest published release of `dubbl-a/house-rules` (#305), which the pin line cannot see: a pinned install matches itself forever.
  - `(N behind)`: the install is older than the newest release. Next: `house upgrade` (prints the plan, writes nothing), then `house upgrade --apply`, then restart Claude Code and re-run doctor. See "When `house upgrade` refuses" below.
  - `is the latest release`: nothing to do. `ahead` is a local or unreleased plugin build; `not a release version` is the same with no release to compare.
  - `not checked`: offline, rate-limited or an unexpected response. Advisory only, never a failure; retry later.
- **`claude-code floor >=X: running Y meets it` | `claude-code floor >=X: running Y is BELOW it (...)` | `claude-code floor >=X: not checked (...)` | `claude-code floor: none declared in the plugin manifest`.** The `engines["claude-code"]` floor in the plugin's `plugin.json` against `claude --version` (#586). Advisory only, never a failure.
  - `meets it`: nothing to do.
  - `BELOW it`: the running Claude Code is older than the floor the plugin's hooks and branch guard need. Next: update Claude Code, restart, re-run doctor.
  - `not checked`: `claude` is not on PATH, `--version` failed or printed no version, or the floor is a range other than `>=X.Y.Z`. Nothing to do from here.
- **`auto-compact: on, window <n> (...) | on, window not resolved: ... | on, no window set ... | off (...) | not checked (...)`.** Whether Claude Code compacts a long session on its own, and where the trigger comes from (#595, #597). Information only, never a failure. Reads the variables `DISABLE_AUTO_COMPACT`, `CLAUDE_CODE_AUTO_COMPACT_WINDOW` and `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` from the process environment, and failing that from the `env` block of the settings files, then the settings keys `autoCompactEnabled`, `autoCompactWindow` and `modelSettings`, local over project over user. It does not read managed settings, `--autocompact` or `/autocompact`, and it never works out which model is running, so a per-model window is reported but not turned into a number.
  - `off (...)`: `DISABLE_AUTO_COMPACT` (in the environment or an `env` block) or `autoCompactEnabled: false` turned it off, and the parentheses say which. Idle compaction is off too, so only a manual `/compact` shrinks a session nobody wrapped up. Next: ask whether that was deliberate; the claude-code rule "Keep a session to one task" says to keep it on. Never edit the setting without being asked.
  - `on, no window set`: no window is set anywhere doctor reads, so it fires at the default window, unless the line says `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` lowers the trigger to a percent of it. As Claude Code 2.1.334 rolls it out, that default is `auto`, near 400K on most current 1M models, and elsewhere the full model window; doctor knows neither the model nor whether the rollout reached the session, so the line names both. Next: the same rule says to keep auto-compact below the full model window, so where `/autocompact` shows the full window, run `/autocompact <size>` for that model, which saves under `modelSettings` in the user settings and so beats a top-level `autoCompactWindow` there; how far below is the user's call, and this skill names no figure. When the line says a value "is not a size from 100000 to 1000000 tokens", the harness ignores it; a bare `CLAUDE_CODE_AUTO_COMPACT_WINDOW=200` is 200 tokens, so write `200k`.
  - `on, window not resolved: ...`: a `modelSettings` entry holds an `autoCompactWindow` (`/autocompact` saves one there). Whatever its value, `"auto"` included, it beats the top-level setting for that model, and doctor does not know the running model, so it prints no number rather than one that may be false. Check `/autocompact` for the model you run: if it shows the full window, run `/autocompact <size>` for it, since a top-level window in the same file loses to that entry.
  - `on, window <n> (...)`: a window is set, and the parentheses say where. When the line ends `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=<n> ... lowers the trigger further`, that variable also applies. When it says the window is above the 400K `auto` window, the set window replaces `auto` on every model it covers, so most current 1M models can compact later than they would with none set. Next: ask whether that was meant; never edit the setting without being asked. Otherwise nothing to do.
  - `not checked (...)`: this plugin copy has no `auto-compact.mjs`. Update the plugin.
- **`deep-research fork: current | STALE (<why>); rebuild with: <command> | not installed ... | not checked (...)`.** The `/deep-research` fork under `~/.claude/workflows/` (or `CLAUDE_CONFIG_DIR`). `current`: nothing to do. `STALE` or `not installed`: run the `--install` command the line prints. It builds the fork from the loaded plugin's script, so when the plugin is behind, move to the new plugin first and run it after. Advisory only.
- **`head-branch deletion: on` | `head-branch deletion: on (<owner/repo>); the at-adoption step head-branch-deletion counts as met by this setting (...)` | `head-branch deletion: OFF for <owner/repo>, ...` | `head-branch deletion: unknown (...)`.** Whether the repository deletes a PR's head branch when it merges (#617), read live from `gh repo view --json deleteBranchOnMerge`; printed only when the `github` module is on. Information only, never a failure, and doctor never changes the setting.
  - `on`: nothing to do. When the line goes on to say the at-adoption step `head-branch-deletion` counts as met by this setting, house.json holds no confirmation yet; doctor counts the step done for that run (#623), so it is absent from the at-adoption lines below, and it never records it. Offer `house confirm github head-branch-deletion` only if the person wants the record.
  - `OFF`: every merged PR leaves a remote branch behind. Next: tell the owner the command the line prints, `gh repo edit <owner/repo> --delete-branch-on-merge`; turning it on is the owner's call. `cleanup-worktree.sh` deletes the branch it cleans up either way.
  - `unknown`: `gh` is missing, not signed in, or could not read this repository. Next: check `gh auth status`, then re-run doctor.
- **`npm wiring (.house/check.mjs referenced by): <scripts> | none found`.** Expect a `check:docs` script invoking `.house/check.mjs --only=drift,todo` and a `check:house` script invoking the full `.house/check.mjs`. When either is missing, print this snippet for the user instead of editing `package.json`:
  ```
  "check:docs": "node .house/check.mjs --only=drift,todo"
  "check:house": "node .house/check.mjs"
  ```
- **`.claude/settings.local.json: present | absent`.** Information only; it must stay git-ignored (see the destinations line below).
- **`rule-load positive control: ...`.** Whether an `InstructionsLoaded` hook is wired and what its log witnessed. Without one, a rule whose glob never matches looks exactly like a rule that does nothing.
  - `repo (.claude/settings.json)`: the repo declares its own hook. Nothing to do.
  - `plugin hook; log <path>: last load <ts>, <n> of <m> vendored rules seen`: the plugin's hook is wired and has logged. When `<n>` is short of `<m>` the line continues `; not seen in this log: <names>`. Read that as a lead, not a verdict: the log self-trims, so a rule can appear there after loading only long ago. Next: open a file the named rule's `paths:` claims and re-run doctor. A name that survives is a rule whose scope is not reaching the files it was written for. The log is keyed by the main checkout's root, so a linked worktree or subdirectory writes to the same file; a `pooled <n> log files` line says how many legacy worktree-keyed logs were also read. This line carries the plugin-enablement caveat when the guard line did not.
  - `plugin hook declared; no log yet for this checkout`: next: start a session in this repo and re-run doctor.
  - `none wired`: nothing declares the hook. Next: add an `InstructionsLoaded` hook, or accept that rule loading is unverified here.
- **`target <name>: ...`.** One line per target in `house.json`. `verified:` means a logged load witnessed it; `unverified:` means nothing has, or the agent fires no instructions-loaded event. Information only.
- **`git-ignored house destinations: none | <paths>`.** Anything but `none` is a destination the checker cannot see. Next: narrow the ignore rule to `.claude/settings.local.json`, never `.claude/` or `.house/`.
- **`at-adoption steps not confirmed | declined | deferred for <module>: ...`.** Information, not a failure; they are settings no repo file shows. Report them as printed and never confirm, decline or defer on the person's behalf.
  - `not confirmed`: nobody has recorded the step. Next: do the step, then `house confirm <module> <step-id>`; or decide against it with `house decline <module> <step-id> --why "<reason>"`; or plan it for later with `house defer <module> <step-id> --why "<reason>" --until <YYYY-MM-DD> [--ref <url>]`. When the line says `sync first`, run `/house-rules:sync` first so the vendored checker reads the record.
  - `(deferral expired <date>)` on a not-confirmed step: it was deferred and the date passed. Next: ask whether it is now done (`house confirm`), still planned (`house defer` again with a new `--until`), or decided against (`house decline`).
  - `deferred`: steps planned for later, each with its `until` date, its reason, and the tracking link after a semicolon when one was given. Nothing to do until the date.
  - `declined`: decided-against steps. Nothing to do.
  - `at-adoption declined steps <module> no longer declares: ...`: remove those declined-step deviations from `house.json`.  `at-adoption deferrals <module> no longer declares: ...`: remove those deferred-step deviations from `house.json`. `at-adoption confirmations <module> no longer declares: ...`: remove them from `modules.<module>.confirmed`.
- **`house.json is present but unparseable: <error>`.** Next: fix the JSON; the lines above were computed without it.

## When `house upgrade` refuses

`house upgrade` with no `--apply` prints the plan and writes nothing. It edits the `ref` of the `extraKnownMarketplaces` entry (backup first), re-adds the marketplace at the tag and updates the plugin, at the scope where the entry lives: it handles a project or local scope entry when the install record matches the repo, run from that repo or with `--repo`. It refuses, writing nothing, when:

- a settings file it must read is unreadable or not valid JSON;
- more than one `extraKnownMarketplaces` entry names `dubbl-a/house-rules`;
- the plugin is not installed at the entry's scope, or is installed at a different scope than the entry (the two scopes disagree);
- the release list cannot be read (offline or rate-limited; exit 1);
- the tag is not a published release;
- the tag is below the installed version (add `--allow-downgrade`);
- the entry is unpinned (a branch ref, or none) and `--apply` lacks `--pin`;
- `claude` is not on `PATH`.

When a step fails after something was written, it prints what was done, what remains and a rollback. Fall back to the README's install section ("To move a pin") when it refuses and the cause cannot be fixed: remove the marketplace, move the `#vX.Y.Z` pin and the settings `ref` together, and re-add. After any move, restart Claude Code before relying on the new plugin.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.