← ClaudeAtlas

doctorlisted

Foundry health check (/foundry:doctor) — a thin, five-check probe (the v0.25.0 test-suite realignment shrank this from a 2,900-line drop-in-check registry to one file). Checks the plugin manifest loads, hooks.json parses with every referenced hook script present, every skills/*/SKILL.md frontmatter YAML-parses, the stack-profile lock (if any) resolves, and the operator registry resolves. Fails CLOSED for an operator-invoked check (exit non-zero on any hard failure); the --session-start cadence is advisory (fail-open, never wedges a session). Trigger when the operator says "/foundry:doctor", "foundry health check", or to diagnose why a session looks unhealthy.
lukasrepublic/agentic-foundry · ★ 1 · Data & Documents · score 67
Install: claude install-skill lukasrepublic/agentic-foundry
# /foundry:doctor The Foundry self-diagnostic — a **thin, five-check probe** (the v0.25.0 test-suite realignment; `foundry-doctor.py` shrank from a 2,900-line drop-in-check registry, `--selftest` CLIs and all, to one file). The load-bearing behavioral assertions this file used to re-discover from the retired per-check registry now live in the **one pytest suite** (`tests/`), run by CI on every PR — `foundry-doctor.py` is a cheap, fast, every-session-safe probe, not the enforcement floor. The **real merge-side enforcement** is the native floor (`.github/workflows/ci.yml` + the `btb-gates` lane signal — Tier B advisory) plus `hooks/foundry-git-discipline.sh`'s deterministic `gh` clause. `doctor` is a mistake-catcher for the operator, not a merge gate. ## When to trigger - Operator: "/foundry:doctor", "is Foundry healthy?", "why does my session look off?". - After editing `hooks/hooks.json`, any `skills/*/SKILL.md` frontmatter, or a stack-profile lock. - Before a release, as a cheap sanity pass (the binding pre-cut gate is `foundry-release-acceptance.py`, which itself requires `DOCTOR-GREEN` — see `skills/release/SKILL.md`'s pre-cut acceptance gate). ## Procedure 1. **Run the doctor**: ```bash python3 "${CLAUDE_PLUGIN_ROOT}/scripts/foundry-doctor.py" ``` The five checks, every run: 1. **`manifest`** — `.claude-plugin/plugin.json` loads as JSON and carries a `version`. 2. **`hooks`** — `hooks/hooks.json` parses as JSON and every referenced hook command