/odin-infra:toolchain-healthfrom ODIN Infra
Runs a read-only health check on the installed toolchain, producing a green/yellow/red verdict with ranked repairs. Detects and runs type-check, lint, test, dead-code, and shell-check commands based on project manifests.
Ships in ODIN Infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | The user runs /toolchain-health |
| Authority | Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. Runs the project's own diagnostic tools, captures output, and reports; never fixes, writes config, or persists history. |
| Side effect | A green, yellow, or red health report in chat; no state change |
| Done | A green/yellow/red verdict, a per-category dashboard, top issues for categories below threshold, and ranked repairs are returned with no state change |
Resolve exact commands. If an explicit health-stack configuration names the type-check, lint, test, dead-code, and shell-lint commands, use those commands verbatim. Otherwise map each manifest or tool to one pinned safe command using the detection table below. Unresolved categories are SKIPPED with reason.
| Category | Manifest or config trigger | Pinned command |
|---|---|---|
| type-check | tsconfig.json | tsc --noEmit |
| type-check | pyproject.toml with [tool.mypy] | mypy . |
| type-check | pyproject.toml with [tool.pyright] | pyright |
| type-check | Cargo.toml | cargo check |
| type-check | go.mod | go vet ./... |
| tests | package.json with scripts.test | npm test (or pnpm test when pnpm-lock.yaml exists) |
| tests | pytest in dependencies | pytest --tb=short -q |
| tests | Cargo.toml | cargo test |
| tests | go.mod | go test ./... |
| lint | biome.json | biome check |
| lint | eslint config present | eslint . |
| lint | ruff in dependencies | ruff check . |
| lint | pyproject.toml with [tool.pylint] | pylint <package> |
| dead-code | knip in dependencies | knip |
| shell | *.sh files present | shellcheck *.sh |
Multi-tool tie-break: when two tools in the same category are detected, prefer the one with a dedicated config file. Run commands from the project root. Done when: each category is resolved to a command or marked SKIPPED with reason.
Run each command sequentially under a 120-second timeout, capturing stdout, stderr, exit code, and duration. A tool that is not installed or not found is SKIPPED with its reason recorded. Done when: every detected tool has been run and its output captured, or SKIPPED with reason.
Score each category 0-10 against the threshold table. Count findings from the captured output: type errors, lint warnings, test failures, unused exports, and shell findings.
| Score | Finding count | Meaning |
|---|---|---|
| 10 | 0 | clean |
| 7-9 | 1-3 | small count |
| 4-6 | 4-10 | moderate count |
| 0-3 | >10 or critical breakage | large count or tool failed |
A category whose tool was SKIPPED contributes no score. A tool that errored or crashed is scored from observed output, never reported as clean. Done when: every non-skipped category has a score.
Compute the weighted composite. Weights: type-check 22%, tests 28%, lint 18%, dead-code 13%, shell 9%. Redistribute each skipped category's weight proportionally across the remaining categories before computing the composite. Done when: the composite is computed.
Map the composite to a verdict with one consistent status scale. Green when the composite is at least 8.0 and no category scored 0-3. Yellow when the composite is 5.0-7.9 or any category scored 4-6. Red when the composite is below 5.0 or any category scored 0-3. Present the dashboard table listing each category, its tool, score, status label (CLEAN for 10, WARNING for 7-9, NEEDS WORK for 4-6, CRITICAL for 0-3), duration, and detail count. For every category below 7, list the top issues from that tool's captured output. Produce repairs ranked by weight x (10 - score) descending, with one concrete repair command drawn from the tool's own output per category scoring below 10. Done when: the verdict, dashboard, and ranked repairs are presented.
| Failure class | Behavior |
|---|---|
| No tool detected in any category | Return BLOCKED with the categories probed and the reason no tool was found; do not invent a score. |
| Tool hang | The 120-second timeout kills it; record that category as SKIPPED with reason timeout, redistribute its weight, and continue. A partial verdict from surviving categories is valid. |
| Tool error or crash | Record the exit code and the last lines of output as that category's detail, score it from the observed output, and continue. Never swallow the error or report a category as clean when its tool failed. |
| Read-only invariant violated | If any step would require writing, fixing, or persisting to produce the report, stop and report BLOCKED instead of mutating. |
A green, yellow, or red health verdict plus a per-category dashboard (tool, score, status, duration, detail counts), the top issues for any category below 7, and a repairs list ranked by weight x (10 - score) descending: no file, history, or project state is changed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-infra13 skills in this plugin
/analysis-artifactsUse when the user requests a deep dive, exploratory analysis, or data analysis on BigQuery. Not for credential, publish, deploy, or irreversible changes./ci-cdUse when setting up or modifying CI/CD pipelines, quality gates, test runners, or deployment pipeline configuration through workflow files. Not for triggering a deployment./ci-fixUse when "CI is red", "fix the checks", or "make CI green", one check needs classifying, or a bounded sweep runs. Not for deploys, credentials, or rerun-as-fix. Non-CI bugs: use strike-the-root./consult-deploymentUse when the user asks to rank deployment platforms and stacks against their product with quantitative trade-offs. Not for source or remote mutation./cost-reductionUse when a measured cost surface needs one-change-at-a-time reduction under frozen guardrails. Not for speed-only optimization: use optimize./dbt-model-indexUse when a human-curated dbt model index must guide BigQuery SQL for a warehouse question. Not for discovering undocumented models or executing warehouse changes.Other plugins' skills for the same job