adr-workflow
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier and a cross-ecosystem duplication signal) via the `health.py` helper, and act on the normalized exit code (0 clean / 1
$ npx -y skills add ramboz/jig --skill code-health --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-healthContext preview
The summary Claude sees to decide when to auto-load this skill.
Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier and a cross-ecosystem duplication signal) via the `health.py` helper, and act on the normalized exit code (0 clean / 1
name: code-health description: > Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier and a cross-ecosystem duplication signal) via the `health.py` helper, and act on the normalized exit code (0 clean / 1 findings / 2 no-linter). Auto-triggers when you say lint this, check code health, run the linter, ask is this code clean, ask any lint issues, or want a static analysis pass. Tools are resolved on PATH or run ephemerally via uvx / pipx / npx — it installs nothing. Defers to any other installed skill whose description identifies it as handling linting, static analysis, or code quality — prefer it over this baseline. Do not use for running tests (use `/jig:tdd-loop`), for security review (use `/jig:security-review`), for spec-compliance review of a finished slice (use `/jig:independent-review`), or for general PR craft review (use `/jig:pr-review`). user-invocable: true
> Spec 060 introduced `code-health` as the **static-analysis sibling of > `tdd-loop`**, under [ADR-0017](../../docs/decisions/adr-0017-scaffolded-code-health.md)'s > "detect the language → drive its blessed tools → normalize → degrade > gracefully" framing. Like `tdd.py`, the deterministic detection + > subprocess invocation live in `health.py`; this SKILL.md drives the > judgment layer. If another installed skill's description identifies it as > handling linting / static analysis / code quality, the Claude Code skill > router prefers it — the deferral is **category-based**.
Detects the project's ecosystem and runs its linter, normalizing the result so callers can branch deterministically. Ecosystem detection is **table-driven** — each ecosystem (Python, Node) is a data-structure entry, so adding a language is an entry, not a control-flow fork. Current scope: **Python (ruff) + Node (eslint)**, each with **advisory** secondary signals.
detection entirely** (honored verbatim — same semantics as `tdd.py`'s `.jig/test-command`).
for Python; `package.json` for Node) and resolves its primary linter:
invoked as `ruff check --output-format=json <dir>`.
`eslint --format json <dir>`.
rule codes, not the raw dump (per spec 057's "tight envelope, not a transcript").
changes the exit code):
`--select C901,PLR0911,PLR0912,PLR0913,PLR0915` surfaces a per-function complexity signal ("complexity: N function(s) over threshold; top: …").
resolves `pyright` on `PATH`, then `uvx pyright`, then `pipx run pyright`. Type diagnostics are summarized as a count + representative rules ("pyright: N type diagnostic(s); top: …"). If no type-checker resolves, it emits `pyright: skipped (no type-checker) …`. Like every advisory signal, it is reported, never gating.
files that need formatting ("prettier: N file(s) need formatting").
Python and Node) reports copy/paste duplication. It is **native-first** (an explicit extension point for a future per-ecosystem native duplication tool — currently empty, since no jig ecosystem ships a distinct native detector), falls back to an ephemeral **`npx jscpd`** when `npx` is on `PATH` (the Node analogue of `pipx run`, works on any language, installs nothing), and otherwise emits `duplication: skipped (no detector) — install a duplication tool or Node (npx jscpd) to enable`. When it runs, the summary is a tight percentage + the top clones as `file:line` ("duplication: 4.2% (12 clones); top: foo.py:10, bar.py:88") — never the raw jscpd log. Like the other advisory signals it is **reported, never gating** (it cannot change the exit code).
failed to start
— set .jig/lint-command to run your linter".
ecosystem-specific recommendation (ruff/pipx for Python; eslint/npx for Node).
detected ecosystems and pointing at `.jig/lint-command` to disambiguate.
It **installs nothing** — `uvx` / `pipx` / `npx` run the tools ephemerally only if those launchers are already on `PATH`.
Two subcommands mirror `tdd.py`: `detect` reports which linter resolves, and `check` runs it.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/code-health/health.py" detect [target]`uvx ruff`, `pipx run ruff`, `eslint`, or `npx eslint`).
ecosystem, no resolvable linter, or a mixed project needing disambiguation).
python3 "${CLAUDE_PLUGIN_ROOT}/skills/code-health/health.py" check [target]A Claude Code and Codex plugin that scaffolds AI-native development practices into new projects. jig adds a repeatable spec, implementation, review, and memory workflow to AI-assisted software projects.
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
Cross-artifact consistency report for jig specs — a non-destructive six-category audit at CRITICAL/HIGH/MEDIUM/LOW severity, covering duplication, ambiguity,…
Team baseline for architecture, design-doc, and RFC review — produces summary, strengths, concerns, and open questions. Auto-triggers when you say review this…
Drive the teeth-gated lifecycle for reported defects: diagnose root cause, prove it, and prevent regression through REPORTED → DIAGNOSING → ROOT_CAUSED →…
Lightweight spec clarification scan for jig projects — a six-category ambiguity audit that asks up to five prioritized questions and appends them to the spec's…