/gt:gt-doctorfrom gt
Runs a comprehensive health check on a Golden Thread install: plugin version, component drift, hook wiring, module states, vault migrations, stray workers, unpushed commits, and lint summary.
Ships in gt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Under gt sandbox mode (the session-start line says SANDBOX MODE; gt_settings.py get sandbox_mode prints on) Claude's shell and file tools cannot write the vault, and by default cannot read it. Every vault step below then takes the route in this table instead: a gt-vault MCP tool runs the same script, with the same checks, outside the sandbox. Read vault files with vault_read, vault_search and vault_list. With sandbox mode off (the default) nothing changes: the shell steps run as written.
| Shell step | Under gt sandbox mode |
|---|---|
gt_doctor.py … | from the shell for the install rows; its vault rows need vault_report {report: doctor}, which runs every check (no --only) |
gt_doctor.py --fix, gt_doctor.py post-install | terminal: they write ~/.claude/settings.json and ~/.claude/golden-thread/ |
vault_init.py install-core-rules --vault … | terminal |
gt_version_check.py, gt_code_review.py plan | unchanged |
A terminal row is a step sandbox mode refuses on purpose — it changes settings or install state, or rewrites the vault wholesale. Give the user the exact command to run from a terminal, and carry on with the rest.
One report covering every automatic check this plugin makes, plus the ones that only ever ran at session start where a user could miss them.
Step 1 — Locate the vault. Use $GT_VAULT if set; otherwise read vault_path
from ~/.claude/vault-config.json. If neither gives a vault, the doctor still runs —
it reports vault: no vault configured and the other checks stand.
Step 2 — Run it.
python3 <base_dir>/../../scripts/gt_doctor.py
Add --vault <path> to check a vault other than the configured one, --only <check>
to run just one, and --json when another tool will read the result.
Step 3 — Read the first line out loud. It names the release every other answer is relative to. A clean report from a check pinned to an old release looks exactly like a healthy install — that is how 0.9.4 sat uninstalled beside a component check reporting clean on 2026-08-30. Say the version, then the findings.
Step 4 — Report each finding with its fix. Every row that is not ok carries a
fix: line. Offer to run the safe ones; do not run them unasked.
Step 5 — Offer --fix only for wiring. --fix re-registers hooks that are
declared but missing from settings.json. It adds entries and removes none, so no
user configuration can be lost. Nothing else is repaired automatically: a pending
migration, an unpushed commit, a stray worker and a module whose plugin state
contradicts its module.json each need a person to decide.
| Code | Meaning |
|---|---|
| 0 | all clear — every check ran and none of them is WARN or FAIL |
| 1 | something needs attention — at least one WARN or FAIL |
| 2 | a check could not run (?) and nothing outright failed — not the same as clean |
Exit 2 matters: "could not check" reported as "clean" is the failure this whole tier
exists to prevent. It is the state of the worst row, ranked FAIL, then ?, then
WARN — so a run with both a failure and a check that could not run exits 1, and
the ? row is still sitting there unanswered. Never read exit 1 or 0 as "everything
was checked": read the marks. Any ? row means that question has no answer yet — say
which check could not run, and why, before summarising anything else.
A - row is neither: it is a check that does not apply to this machine because nothing
configured it (no publish destination, for instance). It never raises the exit code,
and it is not "clean" either.
| Check | Question |
|---|---|
version | is the newest release the one installed? |
components | do the installed files match that release? |
wiring | is every hook the release declares actually in settings.json? |
core-rules | does each Core rule that claims a mechanism actually have THAT mechanism wired? |
modules | which modules are on or off and why, does each admit this gt release, and is every on module's plugin both registered in installed_plugins.json and enabled in settings.json? (read-only) |
model-policy | which model profile is active, and does every installed skill still carry exactly the model:/effort: the policy wrote? A hand edit is a WARN with the fix (0.19.1) |
vault | is the vault reachable, and are log.md/decisions.md migrated? |
workers | are background processes running that nobody declared? |
push | do this machine's commits exist anywhere else? |
| publish destination | does the publish destination still hold only what was published? |
lint | what does the vault linter say, in one line? |
repo-target | which git repo does this working directory resolve to, and is it the vault? Always an i (note) row: when it is the vault, repo-scoped commands such as /security-review and /code-review review the vault, not your code — point them at the code repo, or use gt_code_review.py plan <repo>, which takes the root explicitly |
hooks-schema | does every settings.json hook entry name an event Claude Code fires (hooks/known_events.json) and, on tool events, a tool it knows (hooks/known_tools.json)? Flags hooks-unknown-event, hooks-unknown-tool and hooks-missing-file (an entry pointing at a gt hook file that no longer exists) as WARN — an unknown name prompts review, it is not proof of breakage |
Those rows plus schedule and astgrep are the whole list — --only accepts exactly these names.
An i row is a note: orientation the operator needs, neither healthy nor broken. It
never raises the exit code and never prints ok.
core-rules is not the same question as wiring, and the difference is the point.
wiring asks whether every hook the RELEASE declares is present in settings.json.
core-rules starts from the other end: it reads each level: core rule in the vault and
checks that the specific script implementing its declared enforcement is wired — a
reminder rule needs a UserPromptSubmit hook running inject_core_rules.sh, a
validated rule needs a Stop hook running validate_response.sh — and that the script
exists on disk. It tolerates extra arguments and is strict about which script.
It was added in 0.16.5 because nothing verified this. The docstring had advertised the
check for releases while CHECKS did not contain it, and the one place that looked —
gt_lint's core-unenforced — only asked whether SOME hook occupied the event, so a vault
with any third-party UserPromptSubmit hook and inject_core_rules.sh absent reported the
Core tier enforced. Both are fixed; this is the check that answers the question directly.
A failure here means a rule is stored but not enforced — present in the vault, read by
every session, and backed by nothing. The fix line is
vault_init.py install-core-rules --vault <vault> — named explicitly, per Core rule 2,
because a mutating tool must never infer its target.
Scope: it looks only inside core-rules/. A level: core file somewhere else is
gt_lint's core-misplaced. The enforcement vocabulary is only reminder and
validated, so the PreToolUse guards some rules describe in prose are covered by
wiring, not here.
modules is read-only and never repairs anything. A module that is off is a choice
and is reported as "not installed by choice", never as drift — what it flags is a
contradiction: an off module whose plugin is still installed or enabled, an on module
whose plugin is missing, an invalid module.json, or a module that does not admit the
running gt release.
gt_doctor.py post-install --vault <vault> is the release gate: a PASS/FAIL table, exit 1 on
any FAIL. Every completed run at the session or final stage records its verdict in
~/.claude/golden-thread/post-install-validated.json — the release version, failed, the
counts per state, the stage, the time, and writer, which says who ran it:
writer | Who |
|---|---|
hook | the SessionStart hook (gt_version_check.py), once per newly installed version |
manual | a person or a session running the command (the default) |
Nothing is written by a gate that could not run (a crash is not a verdict, and the previous
receipt stays as it was), by install.sh's --stage install run (vault rows are PENDING there
by design; the hook validates on the next session), or by --dry-run. Since 0.19.1 the
doctor is the receipt's only writer; before that only the hook wrote it, so a passing manual
run left the previous version's receipt in place.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
golden-thread, health-check, diagnostics, install-verification
Generated from the plugin's indexed repository (shaven/golden-thread) — no native marketplace selected
npx claudepluginhub p/shaven-gt-golden-thread-plugin-golden-thread-0-21-342 skills in this plugin
/gt-allinRun every check in one command — scan, lint, optimize report, install health, credentials, runbook and wiki lint, the repo's tests, validation receipts — and report how many actually ran, not just what they found. Never pushes, never applies a change./gt-allin-commitCommit once the checks pass and a test receipt covers every staged file. Refuses without evidence, refuses on the default branch, and never pushes./gt-briefDraft a self-contained CLAUDE.md section for a project's code repo from its vault notes — what it is, the stable decisions, where it runs, what not to do — printed for review, never written. Use when the user says: /gt-brief, brief the repo, draft the repo CLAUDE.md, graduate this project to its repo, what should the repo's CLAUDE.md say./gt-calibrateRun the model calibration pass now: re-run recent agent-stage work one tier down, one tier up and one effort higher, have a zero-context adjudicator judge the outputs, and show keep, move-down, move-up or raise-effort for each stage with the command to apply it. An alias for /gt:gt-optimize --only calibration that runs even when model_calibration is off. Use when the user says: calibrate the models, calibrate the agents, run model calibration, recalibrate the models, are my agents on the right model./gt-closeClose this session's work — the opposite of /gt:gt-open: write back what the session learned (gt-work) and release the session's claim on the vault. To complete or archive a project, a task or a handoff, use /gt:gt-complete. Use when the user says: close this session, close out the session, I'm done for now, wrap up this session, close the project I opened./gt-completeComplete a project, a task or a handoff the guided way. A project: review every open task and handoff (complete, drop, move to another project, or keep shelved), offer to graduate what it learned, then archive it in place — or move it to Archive/ on request. A task: mark it done. A handoff: mark it handled. Use when the user says: complete the project, we're done with this project, archive the project, retire this project, mark that task done, mark that handoff handled, complete the handoff. To end the session you are in, use /gt:gt-close.Other plugins' skills for the same job