/quartermaster:loadout-doctorfrom quartermaster
Run a read-only health check for Quartermaster and installed Loadout plugins. Use to diagnose Loadout, check workspace health, or troubleshoot stale plugins.
Ships in quartermaster. 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.
Run the updater in check mode first. It only reads the installed-plugin registry and runs the Codex gateway health check when that plugin is installed:
node "${CLAUDE_PLUGIN_ROOT}/bin/update-loadout.js" --check
Then run the same read-only session health audit used at startup:
node -e "const { audit } = require(process.env.CLAUDE_PLUGIN_ROOT + '/hooks/session-start-freshness.js'); const result = audit({ currentProject: process.cwd() }); console.log(JSON.stringify({ problems: result.problems, boards: result.mappings, staleProcesses: result.staleProcesses }, null, 2));"
For Model Gateway, report the audit finding exactly. It distinguishes a missing checker, a spawn error, a three-second startup timeout, a nonzero doctor result, and empty output. A nonzero doctor result includes one bounded, secret-filtered diagnostic line and is never a missing-checker finding. The SessionStart warning uses the same cause in compact form. These checks only report observed health; do not call the gateway healthy because a later command happened to pass.
An enabledPlugins entry only selects an installed plugin. If the audit says a plugin's hooks are not running,
that settings file enables a plugin with no matching install row. Offer to install it at the reported project or
user scope, or remove the dead enabledPlugins entry from the named file. Do not call that plugin configured or
healthy until one of those actions is complete.
When staleProcesses has rows, report each PID, start time, and stale worktree path. They are read-only findings: do not kill any process from the doctor.
graphify is an opt-in Python uv tool, so it is absent on most machines and that is not a
fault. These rows are read-only: they report, and never install, upgrade, or build a graph.
node "${CLAUDE_PLUGIN_ROOT}/bin/graphify.js" doctor --project "${CLAUDE_PROJECT_DIR}"
It prints one row per finding and exits non-zero only when the pinned CLI surface contract is broken. Report the rows as given:
not installed (opt-in). An absent graphify is a one-line
observation; do not offer to install it here. /quartermaster:setup owns that offer, and
only alongside codebase-mapper.graphify-out/GRAPH_REPORT.md exists at the project
root. off means the mapper is running without the graph, which is a supported state.graphify hook status, verbatim, for whether the git hook that keeps the graph fresh
is installed in this repo.graphify --help still offers the five surfaces
codebase-mapper invokes (query, explain, path, hook status, and update), and that
the version clears the 0.8.38 floor. Either spelling of the update surface satisfies it:
--help documents update <path>, while graphify <root> --update is an accepted
undocumented alias.A failed probe is the one finding here that matters more than it looks. graphify is upstream
software on its own cadence, and the mapper's skills call it from inside subagents where a
renamed flag surfaces as an empty or confusing answer rather than an error. This probe exists
so that rename fails loudly, in one place, where someone is already looking. On a failure,
report the named surface, say that the mapper's graph mode is affected, and offer either
pinning graphify to a known-good version or updating the pinned surfaces in the plugin's
bin/graphify.js. Do not call graphify healthy because hook status or a version row looked
fine; the probe is the surface check.
If the probe could not run at all, say the surfaces are unverified. That is not the same as healthy.
Telemetry lives in the separate Observability plugin. Its files are under a different plugin root, so resolve that root first and skip this whole section when the plugin is absent:
node -e "const fs=require('node:fs'),path=require('node:path');const { claudeDir }=require(process.env.CLAUDE_PLUGIN_ROOT + '/lib/paths.js');const reg=JSON.parse(fs.readFileSync(path.join(claudeDir(process.env),'plugins','installed_plugins.json'),'utf8'));const installs=reg?.plugins?.['observability@loadout']||[];const hit=installs.map(i=>i?.installPath).filter(Boolean).find(p=>fs.existsSync(path.join(p,'bin','setup-observability.js')));console.log(hit||'');"
An empty result means observability is not installed. Say so in one line and move on. Otherwise use that path
as <OBS_ROOT> in the commands below.
Read the consent/config record and report the managed observability health. This command is read-only and uses the configured ports/container:
node "<OBS_ROOT>/lib/observability/ensure.js" --health
If it reports configured: false, observability was never consented to and needs no repair. If it reports enabled: false, say it is deliberately disabled. For an enabled record, report observer health, Collector listening state, selected sink, configured ports, dashboard/Docker state, and the storage block. Treat a listening observer with a failed /health response as unhealthy, and a configured dashboard without Docker as optional/unavailable rather than a pipeline failure.
Report storage.overDatabaseLimit: true or storage.overWalLimit: true as a real finding with the two byte counts, not as a note. Over the database limit means retention pruning alone cannot get back under the cap, so the file can keep growing; the managed prune drops the oldest days and uses incremental vacuum. Do not describe this as a blocking full VACUUM, and do not predict its duration from the current file size.
When the observer is healthy, audit project attribution. Hook events reach the observer from any directory,
but the claude_code_* metrics only exist where Claude Code found the telemetry env in the settings of the
directory the session started in. A project with observer events and no native samples in the same window is
half-wired, and its dashboard reads empty rather than broken. This command is read-only:
node "<OBS_ROOT>/bin/verify-project-telemetry.js" --audit --project "<absolute-current-project-dir>"
Report every UNWIRED session directory by name, every half-wired: line, and the printed fix: command
verbatim, adding that each affected session has to restart before its metrics appear. native-samples=unknown
means Grafana was unreachable or unconfigured, so say the check could not run instead of calling it healthy. A
not opted in: line is a hint, not a fault: those project names never opted in.
Then run the local report too:
node "<OBS_ROOT>/bin/token-usage-report.js" --format json
From the JSON report, call out outbox queue depth/capacity, drops, schema drops, telemetry conflicts, sessions missing SessionEnd, and the newest event/source. The SessionStart ensure hook repairs stopped managed processes on the next startup/resume; if immediate repair is requested, rerun /observability:enable-project-telemetry and keep the current observability choices.
Check whether a project-level env block masks the global agent-teams setting. This is read-only and prints nothing when the project has no env block or already enables teams:
node -e "const { agentTeamsWarning } = require(process.env.CLAUDE_PLUGIN_ROOT + '/lib/project-settings.js'); const warning = agentTeamsWarning(process.cwd()); if (warning) console.log(warning);"
If it prints a warning, report it with the one-line remedy verbatim. Do not fix it from the doctor.
Check the effective autoCompactWindow from user and project settings. This is read-only; the project
setting wins when both files set the key:
node -e "const { compactionWindowFinding } = require(process.env.CLAUDE_PLUGIN_ROOT + '/lib/project-settings.js'); console.log(compactionWindowFinding(process.cwd()));"
Report the one-line finding verbatim. When the key is unset, it advises the optional setting
"autoCompactWindow": 325000 in the named user settings file for a consistent 292000-token trigger
instead of a model-dependent compaction point. Do not write or offer to fix it from the doctor.
Report all results together. Explain each concrete problem and give the smallest next step. This skill does
not update, install, uninstall, reload, or edit anything. If freshness is proven stale, tell the user to run
/quartermaster:update-loadout, then /reload-plugins or restart before retrying the blocked work.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub poindexter12/loadout --plugin quartermaster4 skills in this plugin
/resupplyWork out what a workspace is short of and close the gap with the least new machinery: reuse or improve a capability that is already installed before proposing anything new, then look for work being done by hand that a plugin or skill should own, knowledge that keeps being re-derived, an evidenced measurement gap no existing check covers, and the setup pushing back. Reads recent sessions for what the user was actually working toward, then proposes one item at a time for approval. Use whenever the user asks what would make this easier or faster, what they are missing, why something keeps being hard, or what could have gone better; when they want to improve their Claude Code setup, tooling, or workflow; whenever the quartermaster nudge fires at SessionStart or a Stop-time offer blocks a real pause, after proactively asking and receiving the user's approval or when the user has explicitly given standing permission for these rounds; proactively offer the round at a natural pause after a long or expensive stretch of work; or when they are starting a goal they have no way to verify. Running the pass requires current or standing user approval. Every recommendation then needs separate per-item approval unless that exact class of change is already covered by the user's explicit standing permission./setupSet up a Claude Code workspace for a new or existing project, informed by hindsight from the user's whole session history. Installs and wires whichever Loadout pieces the project actually wants (codebase-mapper, live-rules, sidequest's routing and executors, observability, model-gateway are each independent and opt-in) plus stack plugins, seeds rules and permissions from what the history shows the user actually needs. Use for workspace setup, .claude configuration, project bootstrap, or Loadout installation./update-loadoutUpdate installed Loadout plugins and model-gateway, or check their status. Use to update Loadout, refresh the marketplace, or check versions.