code-health

code-health is a skill for Claude Code from ramboz/jig. It costs 230 tokens per session (3,704 once invoked), scanned A, original, MIT.

A static-analysis check that detects whether a project uses Python or Node.js and runs its configured code-quality tools.

In plain words
What is it for?
Use it to run Ruff for Python or ESLint for Node.js, with additional advisory checks such as type checking, complexity, formatting, and duplicate-code signals.
Why use it?
It turns different linting results into a predictable status, making it easier for an agent or workflow to decide what happens next.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the jig plugin — 20 skills shipped together

Good fit Use it to run Ruff for Python or ESLint for Node.js, with additional advisory checks such as type checking, complexity, formatting, and duplicate-code signals.

Compare 6 skills from other repositories ↓
View source ↗ ramboz/jig
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ramboz/jig
Claude Code
/plugin install jig

Made for: Claude Code.

Or install jig, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/ramboz/jig/code-health/github.svg)](https://agentmods.dev/skills/ramboz/jig/code-health)
Your own site
<a href="https://agentmods.dev/skills/ramboz/jig/code-health"><img src="https://agentmods.dev/badge/skills/ramboz/jig/code-health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/ramboz/jig/code-health"><img src="https://agentmods.dev/badge/skills/ramboz/jig/code-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 230 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00230 $0.03704
Opus 5.5 $0.00092 $0.01482
Sonnet 5.5 $0.00046 $0.00741
Haiku 4.5 $0.00023 $0.00370

Measured 3mo ago against content hash e8a4725ed745, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (health.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

hosts/claude/skills/code-health/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spec 060 introduced code-health as the static-analysis sibling of tdd-loop, under ADR-0017'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.

What this skill does

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.

  • A .jig/lint-command override always wins and bypasses ecosystem detection entirely (honored verbatim — same semantics as tdd.py's .jig/test-command).
  • Otherwise detects the ecosystem by marker files (pyproject.toml / *.py for Python; package.json for Node) and resolves its primary linter:
    • Python — ruff on PATH → uvx ruff → pipx run ruff (ephemeral), invoked as ruff check --output-format=json <dir>.
    • Node — eslint on PATH → npx eslint (ephemeral), invoked as eslint --format json <dir>.
  • Parses the result into a tight summary — a findings count + the top rule codes, not the raw dump (per spec 057's "tight envelope, not a transcript").
  • Adds an advisory dimension that is reported, not gating (it never changes the exit code):
    • Python — complexity: an advisory ruff probe with --select C901,PLR0911,PLR0912,PLR0913,PLR0915 surfaces a per-function complexity signal ("complexity: N function(s) over threshold; top: …").
    • Python — type checking: an advisory pyright --outputjson probe 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.
    • Node — formatting: an advisory prettier --check probe surfaces files that need formatting ("prettier: N file(s) need formatting").
    • Cross-ecosystem — duplication: an advisory probe (run for BOTH 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).
  • Normalizes the primary linter's exit code:
    • 0 — clean (no findings)
    • 1 — findings exist (the linter ran and reported issues)
    • 2 — no linter resolvable, no recognized ecosystem, OR the resolved tool failed to start
  • Degrades gracefully (AC4), never a stack trace:
    • no markers → exit 2 + "no recognized ecosystem (Python/Node) found — set .jig/lint-command to run your linter".
    • one ecosystem, no resolvable linter → exit 2 + an ecosystem-specific recommendation (ruff/pipx for Python; eslint/npx for Node).
    • mixed (2+ ecosystems) → exit 2 + a recommendation naming the detected ecosystems and pointing at .jig/lint-command to disambiguate.

Read the full file on GitHub · 248 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 248 lines · 230 tokens per session scan A e8a4725ed745

Subscribe to this mod's changes

code-health is a skill published in the GitHub repository ramboz/jig (6 stars, last pushed 6d ago), licensed MIT. It adds 230 tokens to every session and 3,704 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

code-health compared with skills from other repositories

code-health next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-healthramboz/jigSkill66d agoMITA230Claude Code
serenadatit309/supergraphSkill236d agoMITA40Claude Code
diagnosedatit309/supergraphSkill236d agoMITA59Claude Code
fixdatit309/supergraphSkill236d agoMITA33Claude Code
zoom-outdatit309/supergraphSkill236d agoMITA53Claude Code
onboardingknitli/toolshedSkill13d agoMITA0Claude Code
setupknitli/toolshedSkill13d agoMITA0Claude Code