/quartermaster:setupfrom quartermaster
Set 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.
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.
Read when SKILL.md points to them.
Outfit a project's .claude/ workspace end to end. You are an orchestrator: the pieces already
exist (codebase-mapper's map-codebase, live-rules' add-rule, sidequest, observability's
enable-project-telemetry, model-gateway, the built-in /init). Your job is to ground the plan
in the user's actual history, interview briefly, install in the right order around the plugin
reload boundary, and verify the result really works.
What makes this different from a checklist bootstrap: recommendations come from evidence. The miner shows which plugins the user leans on across projects, which permission denials repeat, and which corrections they keep giving. A new project starts where the others left off.
Read the obvious markers in the project root (package.json, pyproject.toml, Cargo.toml, go.mod,
existing CLAUDE.md, existing .claude/). Establish:
.claude/ means augmenting, never clobbering. Read it
first, merge, and say what you will add and what you will leave alone.git init (recommended: it preserves the setup);
respect a no.node "${CLAUDE_PLUGIN_ROOT}/bin/quartermaster.js" mine --all-projects --days 45 --sessions 60
This is the cross-project view: attribution shows which plugins and MCP servers the user
actually uses; denial patterns show which permissions to pre-allow; correction themes show which
rules to seed. Also run node "${CLAUDE_PLUGIN_ROOT}/bin/quartermaster.js" catalog --installed
to see what user-scope plugins already apply here.
The local mining script reads transcript files and emits a bounded JSON aggregate. The setup skill reads that aggregate, not the raw transcripts. The active model can therefore see clipped session titles, opening asks, explicit goals and their status, nearby project path segments, counts, repeated commands, attribution, fetched hostnames, and short clipped evidence quotes. Raw transcripts are not loaded into model context, and this skill must not open them. Setup requests the all-projects aggregate; resupply uses the current project by default.
Ask what the project is for (one or two lines), confirm the detected stack, and ask team-or-solo plus any conventions worth encoding. Propose defaults from the assessment and the mining so the user confirms rather than types essays. Every question carries one sentence on why the answer matters.
One visible plan, then per-item approval. Draw from three sources, in this order:
Loadout core, from the loadout marketplace. Every piece is independent and opt-in: they compose, but none of them requires another, and a project that wants one of them is not signing up for the rest. You will have to explain each one you propose, so lead with what it does for this user before the reason it fits, and ground that reason in the project purpose and their attribution history. Say "probably not needed here" when it does not fit.
codebase-mapper keeps a set of small docs under .claude/.codebase-info/ describing the
architecture, entry points, modules, and conventions, and injects the index at session start
so Claude begins oriented instead of re-exploring the tree every time. It refreshes itself
from the diff as the code changes. Worth it for any real codebase; pointless for an empty
scaffold until there is code to map.
When the user takes codebase-mapper, offer graphify as its optional structural layer,
and only then. graphify extracts a queryable graph of the code into graphify-out/, which
lets the mapper answer "what calls this" and "what breaks if I change this" by traversing
real edges instead of re-reading files. The mapper works fully without it, so this is a
second, separate yes. Two things make it unlike every other piece here:
uv tool, the first non-node runtime any Loadout plugin leans on. So
check uv first: command -v uv. If uv is there, install with
uv tool install graphifyy (the PyPI distribution is graphifyy with two y's; it
installs an executable called graphify). If uv is absent, say so plainly, point at
https://docs.astral.sh/uv/getting-started/installation/, and stop. Never install uv
yourself, and never install graphify without the user's yes — a workspace setup that
silently puts a Python toolchain on someone's machine is not opt-in./quartermaster:update-loadout upgrades it when present, and
/quartermaster:loadout-doctor probes that the CLI surfaces the mapper depends on still
exist. Mention both so the user knows where it is maintained from.Record the answer either way, as an applied or rejected decision with the fingerprint
plugin:graphify (step 7). A recorded "no" is what stops the next round offering it again.
live-rules adds timing to the project rules Claude Code already reads from .claude/rules/. It owns no storage, so those files stay the only copy and a project that later removes the plugin keeps every rule. What it adds is re-saying: native loads a rule once per session, and live-rules injects it again when its content changes mid-session, so an edited convention takes effect on the next prompt or relevant edit with no restart. It also fires keyword-scoped rules on a matching prompt, which native has no trigger for. Unchanged rules do not repeat on every prompt or edit. That is the difference from CLAUDE.md, which is always in context whether or not it is relevant. Worth it anywhere the user has conventions they keep having to repeat, or keeps editing rules mid-session.
sidequest is the delegation system, not just a ticket tracker, and the routing and
executor half is where the value is. Tickets are the input; what it does with them is
classify each into a category, route that category to a concrete model and effort level so
nobody hand-picks a model per task, dispatch it to a token-gated executor in an isolated git
worktree, gate the result on a verify command the ticket carries, and integrate it back. It
also captures side issues mentioned mid-task, and runs a live self-hosted Kanban dashboard
spanning every project. Recommend it where work is recurring and delegable; a project that
just wants a list of TODOs does not need any of this. Non-Claude routes (GPT, Grok) need
model-gateway, and without it routing still works across Claude models.
observability is local, metadata-only telemetry: a bundled observer records session, tool,
and subagent lifecycle events into SQLite on the machine, an optional statusline shows live
context and usage, and an OpenTelemetry Collector can forward redacted signals to Grafana or
another sink. Prompts, responses, code, tool inputs and results, credentials, and
environment values are never stored, and every sink beyond local SQLite is opt-in. Propose
it only when the user wants to see where their tokens and time go; its
enable-project-telemetry skill owns that whole flow from consent through verification, so
hand off rather than wiring it yourself.
model-gateway puts the user's existing ChatGPT/Codex and Grok subscription models in
Claude Code's /model picker through a local gateway, no API keys. It is what makes
sidequest's non-Claude routes possible. Project-scoped with the rest of the workspace plugins.
When the plan wires Model Gateway or Sidequest routing, check the effective setting first:
node -e "const { compactionWindowFinding } = require(process.env.CLAUDE_PLUGIN_ROOT + '/lib/project-settings.js'); console.log(compactionWindowFinding(process.cwd()));"
If autoCompactWindow is unset, separately offer the optional setting
"autoCompactWindow": 325000 through configureSidequestCompaction; get approval before running:
node -e "const { configureSidequestCompaction } = require(process.env.CLAUDE_PLUGIN_ROOT + '/lib/project-settings.js'); console.log(JSON.stringify(configureSidequestCompaction(process.cwd(), { autoCompactWindow: 325000, policy: 'pin' }), null, 2));"
The tradeoff is a consistent Codex compaction point; Claude models keep their larger windows because the cap only bounds the auto-compact trigger. Treat 325000 as a recommendation, not a prerequisite. If either user or project settings already has a value, say which one wins and leave it alone unless the user asks to change it.
Stack plugins, from references/stack-plugins.md plus the
catalog (node "${CLAUDE_PLUGIN_ROOT}/bin/quartermaster.js" catalog --query "<stack terms>").
For LSP plugins, check the required binary is on PATH first; report a missing binary with its
install hint, but never run a package manager yourself.
History-derived seeds: permission allowlist entries from repeated global denial patterns
that are safe for this stack (scoped rules only, never Bash(*)); starter live rules derived
from recurring correction themes, using
references/rule-templates.md as reference material to derive
from, never copy (byte-identical output means it was copied; rewrite or drop it); the
self-improvement rule from references/self-improvement.md for
approved setups. Derive guidance that traces actual behavior and reuses project code, native
platform features, the standard library, and installed dependencies before adding tools. Keep
project-required tests and security, trust-boundary, data-loss, and accessibility safeguards.
Focused checks supplement required gates; honor an assigned integration owner's testing split,
with full required verification for solo work. Do not seed automatic cleanup or size quotas.
Preserve the rule files already in .claude/rules/; a template update
is not approval to migrate or overwrite them.
Seeded rules have two destinations and the split decides which, so say which one each rule is going to before you write it:
.claude/rules/<name>.md in the
project and gets committed with the rest of .claude/.~/.claude/rules/<name>.md in the user's
own config tree, never into the repo, however often the history repeats it. Claude Code reads
that directory in every project, which is the point: writing it here would seed it once and
miss everywhere else.A theme with evidence from exactly one project is a project rule until a second project repeats it. When a theme has both a project half and a personal half, split it and write each half to its own destination rather than duplicating one rule into both.
Default plugin installs to project scope so the config travels with the repo. Show the full
install and write list (every file path, including any ~/.claude/settings.json change) and get
approval before touching anything.
Order matters: plugins install first, workspace artifacts that depend on them second, and nothing that needs a plugin loaded happens until after the activation boundary.
claude plugin install <name>@<marketplace> --scope project..claude/rules/*.md, the
directory Claude Code reads natively (or through live-rules' add-rule skill after reload);
approved cross-project themes as their own files under ~/.claude/rules/*.md;
permissions.allow entries in .claude/settings.json; a structure note for greenfield projects per
references/structure-notes.md; and optionally a lightweight
CLAUDE.md seeded through the built-in /init. The write list names every destination outside the
repo explicitly, because a file under ~/.claude/ outlives this project./reload-plugins, or restart
Claude Code when the changes affect the process environment, and tell you to continue. Do not
pretend the plugins are loaded and barrel on in the same turn.After the reload or restart: claude plugin list --json confirms every selected plugin is installed and
enabled at its requested scope. Then verify each piece is actually usable, not just present:
build the codebase map via map-codebase (skip for not-a-codebase), confirm the seeded
.claude/rules/ files are visibly in your context, bring up the sidequest board if selected, and check each
LSP responds. If model-gateway is installed but unwired, point at its skill rather than wiring
it yourself. Fix what fails and re-verify; report what you confirmed, concretely.
Record every decision, applied and rejected, exactly as the resupply skill does:
node "${CLAUDE_PLUGIN_ROOT}/bin/quartermaster.js" decisions add --project "${CLAUDE_PROJECT_DIR}" \
--title "<short title>" --fingerprint "<kind>:<slug>" --status applied|rejected --kind <kind>
Close with what they got, a short next-actions list using only what was installed and verified,
a reminder to commit .claude/, and a pointer to
https://poindexter12.github.io/loadout/getting-started/ naming the page for each plugin
just installed. Offer /quartermaster:resupply once real sessions exist. Do not run it or mine
transcripts for a resupply round without current user approval or explicit standing permission for
these rounds. Round approval does not authorize unrelated edits; recommendations require per-item
approval unless explicit standing permission covers that exact class of change.
.claude/ files; a user's rules and config survive.references/stack-plugins.md - stack to plugins/marketplaces/LSP catalogreferences/rule-templates.md - craft-baseline and stack rule reference materialreferences/self-improvement.md - the self-improvement live rule every workspace getsreferences/structure-notes.md - structure notes, mostly for greenfieldreferences/clean-code-principles.md - optional digest for the guidelines-pointer ruleWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/loadout-doctorRun a read-only health check for Quartermaster and installed Loadout plugins. Use to diagnose Loadout, check workspace health, or troubleshoot stale plugins./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.npx claudepluginhub poindexter12/loadout --plugin quartermaster