Environment doctor sub-skill for the PL role. Diagnoses and fixes environment issues (Docker, deps, secrets, connectivity, workspace drift) before declaring blockers. Invoked explicitly by the pl core, never auto-loaded.
Ships in sno-station. 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; scripts run unread.
Scripts named below run as bash "${PL_SKILL_DIR}/scripts/<name>.sh" ..., where PL_SKILL_DIR is the
absolute path of the pl skill directory; set it in the same Bash call.
Sub-skill of the PL role. The pl core skill invokes this EXPLICITLY on any
environment doubt: a "not available / missing / down" claim, a restart wish, a
VM/host question, or before opening an evaluation or end-to-end run. Canonical scripts:
the pl skill's scripts/. Read the host/VM registry from ${SNO_ROSTER_FILE:-};
when unset, report "no roster configured" and continue. The TSV columns are
name, address, kind, purpose, and check; no machine inventory ships with the skill.
Use the repo's documented service-address source when one exists.
Read ${SNO_SECRETS_CMD:-} for an optional secrets wrapper: one executable path
that accepts a command and its arguments, injects secrets, and preserves its exit status.
When unset, report "no secrets wrapper configured" and continue.
Read ${OPENAI_BASE_URL:-} for model connectivity; when unset, report
"using the harness's own endpoint" and continue.
Known environment traps: read the project's lessons file (ai-doc/LESSONS.md) when it exists;
propose additions by card.
The environment doctor is software-flavoured: each check below applies when the project uses that tool (Docker, uv/bun, git, a GPU, a VM roster); a check for a tool the project does not use is reported as not applicable, never as a failure.
Environment, resource, and startup blockers are yours (and every executor's) to fix, not to wait on — parking on an environment blocker without attempted self-service is a protocol violation. Most external stalls are environment-class, and a large share of those are FALSE blockages built on stale premises. Hence:
docker ps,
ls, configured secrets-wrapper check). A remembered/recorded "not available" is invalid.general-env-doctor.sh is the standard tool:
run bash "${PL_SKILL_DIR}/scripts/general-env-doctor.sh" (optionally --fix) before ever declaring an environment blocker.
Classes: secrets / creds (auto-repair through the configured wrapper) /
connectivity / deps (uv/bun sync, CLI tools) / workspace (stale locks,
scratch directory, disk) / drift (documented ports versus Docker listeners).
bash "${PL_SKILL_DIR}/scripts/general-env-doctor.sh" secret <NAME> answers "the key is missing" claims —
it checks this shell and the configured secrets wrapper
without printing values; every name, including API-key names, takes the same lookup.
An unset wrapper is an unavailable check, not a missing key.
Query the supplied roster with bash "${PL_SKILL_DIR}/scripts/general-env-doctor.sh" host [<name>].
Before dispatching a VM-dependent journey, run bash "${PL_SKILL_DIR}/scripts/general-env-doctor.sh" vm.
A missing roster reports "no roster configured" and proves no VM reachable;
obtain the run's host configuration before dispatching. A failed VM probe
means do not dispatch onto it.bash "${PL_SKILL_DIR}/scripts/docker-env-doctor.sh" <service> (deterministic).
START/RESTART_OK → run bash "${PL_SKILL_DIR}/scripts/docker-env-doctor.sh" <service> --execute
(Docker Compose by default, or the executable named by ENV_DOCTOR_REBUILD_CMD; two more optional settings, ENV_DOCTOR_COUNTER_REQUIRED_RE (services that must pass a work-counter probe) and ENV_DOCTOR_QUEUES (Redis queues that must be empty), are described in the script header); NO_GROUNDS → investigate logs instead;
BLOCKED_BUSY → another session's work is in flight: do not restart,
report with the script's evidence; INDETERMINATE → a safety signal could not be verified: take no
action and report which signal is missing. By default, direct process kills (pkill,
kill -9) are forbidden. Verdicts auto-append to
ai-doc/ACTIVE/PL/docker-env-doctor-verdicts.jsonl (audit trail).SNO_OWNER_ADDR (the owner's own
Reach address, exported before the PL starts) with the COS that supervises this lane (the
Chief of Staff agent; see the pl core's Terms) on Cc, and that COS may not approve, hold or
edit it (bands and lists: the live decision-rights file,
~/.config/sno/decision-rights.md when present, otherwise the shipped references/decision-rights.md in the pl skill).
A credential is never one of the five. "I cannot find the key" and "I am
locked out" are not escalations at any layer; check the available credential
sources first. Interactive auth stays legal only
because a browser genuinely needs a human at it, and only with the exact
command written out; it is not a place to file a key you did not find.Two rules outrank everything else in this file: never lock yourself out, never lose the key. The encrypted-store rule below applies when the project stores encrypted user data. The operational half is here because this is where an agent lands the moment a key fails.
bash "${PL_SKILL_DIR}/scripts/general-env-doctor.sh" secret <NAME> — the secret lookup in item 2. Run it
before the thought "the key is missing" is allowed to become a sentence in a
card. If the configured sources miss, inspect the repository's documented
credential source before declaring the key absent.Before opening any evaluation or end-to-end run, check the host you will run it on ONCE: probe the run's real dependencies up front and declare any degradation BEFORE the run starts. A failing probe means choose the host NOW from the available ones; do not discover the degradation mid-run, where it costs rounds on a degraded attempt before the host question is even asked.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
39 skills in this plugin
/codex-coderRoute production coding tasks from Claude Code to the user-level Codex Shell, TypeScript, Python, or Rust workflow through a direct `codex exec` run. Use for "codex-coder", "ask Codex to write code", "generate with Codex", language migrations, or mixed Shell/TypeScript/Python/Rust implementation./cosMANUAL-ONLY: load solely when the human owner types `/cos`, uses `$cos`, or asks you to act as the Chief of Staff (COS). The COS is the one agent the owner talks to; it coordinates the owner and the per-project Project Leads (PLs). A task card, charter, or dispatch makes you an executor, not COS./cos-evolveTurn repeated management failures into enforced COS or PL rules. Load ONLY after the owner has explicitly activated the cos role for this session and the COS core routes here. Never invoke directly./sno-station:pl-envfrom sno-station
npx claudepluginhub sno-ai/sno-station-skills --plugin sno-stationOther plugins' skills for the same job