Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ramboz/jig/code-healthnpx skills add ramboz/jig --skill code-healthgit clone --depth 1 https://github.com/ramboz/jigWrote 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.
[](https://agentmods.dev/skills/ramboz/jig/code-health)<a href="https://agentmods.dev/skills/ramboz/jig/code-health"><img src="https://agentmods.dev/badge/skills/ramboz/jig/code-health.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00230 | $0.03704 |
| Opus 5 | $0.00115 | $0.01852 |
| Sonnet 5 | $0.00046 | $0.00741 |
| Haiku 4.5 | $0.00023 | $0.00370 |
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 4d ago.
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.
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-healthas the static-analysis sibling oftdd-loop, under ADR-0017's "detect the language → drive its blessed tools → normalize → degrade gracefully" framing. Liketdd.py, the deterministic detection + subprocess invocation live inhealth.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-commandoverride always wins and bypasses ecosystem detection entirely (honored verbatim — same semantics astdd.py's.jig/test-command). - Otherwise detects the ecosystem by marker files (
pyproject.toml/*.pyfor Python;package.jsonfor Node) and resolves its primary linter:- Python —
ruffonPATH→uvx ruff→pipx run ruff(ephemeral), invoked asruff check --output-format=json <dir>. - Node —
eslintonPATH→npx eslint(ephemeral), invoked aseslint --format json <dir>.
- Python —
- 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,PLR0915surfaces a per-function complexity signal ("complexity: N function(s) over threshold; top: …"). - Python — type checking: an advisory
pyright --outputjsonprobe resolvespyrightonPATH, thenuvx pyright, thenpipx run pyright. Type diagnostics are summarized as a count + representative rules ("pyright: N type diagnostic(s); top: …"). If no type-checker resolves, it emitspyright: skipped (no type-checker) …. Like every advisory signal, it is reported, never gating. - Node — formatting: an advisory
prettier --checkprobe 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 jscpdwhennpxis onPATH(the Node analogue ofpipx run, works on any language, installs nothing), and otherwise emitsduplication: 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 asfile: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).
- Python — complexity: an advisory ruff probe with
- 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-commandto disambiguate.
- no markers → exit
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.
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.
- 4d ago First seen · 248 lines · 230 tokens per session scan A e8a4725ed745
code-health is a skill published in the GitHub repository ramboz/jig (6 stars, last pushed 3d ago), licensed MIT. It adds 230 tokens to every session and 3,704 once invoked, about $0.0011 per session on Opus 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.
Other skills, from other repositories
motherduck-build-cfa-app
Design a MotherDuck-backed customer-facing analytics app. Use for embedded analytics, multi-tenant SaaS reporting, or product analytics for external users -- whenever the decision depends on per-customer isolation, backend routing, service-account boundaries, read scaling, or Hypertenancy-style patterns.
motherduck-build-dashboard
Build a live MotherDuck dashboard as a Dive. Use when composing one shareable KPI, trend, and breakdown story over existing MotherDuck data, especially when the result should stay a saved workspace artifact rather than a full application.
motherduck-build-data-pipeline
Design an end-to-end MotherDuck data pipeline. Use for ETL/ELT workflows -- choosing raw, staging, and analytics boundaries, bulk ingestion paths, transformation sequencing, dlt/dbt integration, publication targets, or whether DuckLake is actually required.
motherduck-connect
Connect to MotherDuck from any application. Use when setting up database connectivity via the Postgres endpoint (recommended), pgduckdb, native DuckDB API, or JDBC. Covers connection strings, authentication, SSL, and environment variable configuration.
motherduck-create-dive
Create, edit, manage, share, or embed MotherDuck Dives — live React + SQL dashboards, charts, and data apps saved in the workspace. Use for any dashboard, chart, KPI display, or data visualization over MotherDuck data, and for Dive authoring mechanics such as getdiveguide, useSQLQuery, local preview, version history…
motherduck-create-flight
Create, schedule, run, and debug MotherDuck Flights — Python jobs that run on MotherDuck compute. Use whenever someone wants to create a flight, schedule a Python script or recurring job on MotherDuck, set up scheduled ingestion from Postgres, dlt sources, S3, BigQuery, Snowflake, or APIs, refresh aggregates or…