Skip to content
Skill

Code health

Runs a static lint pass on Python or Node projects and reports normalized findings

Code health is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
Python
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Code health

Code Health detects whether a project is a Python or Node codebase, then runs the matching linter (ruff or eslint) through a bundled health.py helper. Results are condensed into a count and the most common rule codes rather than a raw dump, and the exit code signals clean, findings, or no usable linter so the agent can branch on it.

Beyond the primary linter, the skill adds advisory signals that are reported but never change the exit code. These include a per-function complexity probe and a pyright type-check pass for Python, a prettier formatting check for Node, and a copy-paste duplication estimate using jscpd for either ecosystem. Missing advisory tools are shown as skipped instead of being silently omitted.

The helper installs nothing. It uses tools already on PATH or runs them ephemerally through uvx, pipx or npx, and a .jig/lint-command file can override detection with any custom linter command.

When your agent uses it

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`).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (46 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the jig plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ramboz/jig
/plugin install jig@jig

Or copy only this skill to ~/.claude/skills/code-health:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-health &&
cp -R "$tmp/hosts/claude/skills/code-health" ~/.claude/skills/code-health &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/code-health inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/code-health to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-health &&
cp -R "$tmp/hosts/claude/skills/code-health" ~/.agents/skills/code-health &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/code-health inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/code-health to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-health &&
cp -R "$tmp/hosts/claude/skills/code-health" ~/.cursor/skills/code-health &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/code-health inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ramboz/jig.git --path hosts/claude/skills/code-health

Or copy the folder to ~/.gemini/skills/code-health yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/code-health:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-health &&
cp -R "$tmp/hosts/claude/skills/code-health" ~/.copilot/skills/code-health &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/code-health inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ramboz/jig.git

Then copy jig/hosts/claude/skills/code-health into your agent's skills folder as code-health. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Ecosystem detection
Identifies Python or Node projects from marker files and reports mixed repositories instead of guessing.
Linter normalization
Summarizes ruff or eslint output into a finding count and top rule codes with a normalized exit code.
Advisory complexity checks
Flags Python functions over complexity thresholds without affecting the pass or fail result.
Type and format signals
Adds pyright type diagnostics for Python and prettier formatting checks for Node as advisory output.
Duplication estimate
Reports copy-paste duplication percentage and top clone locations using ephemeral jscpd runs.
Custom lint override
Lets a project define its own lint command in .jig/lint-command, bypassing auto-detection.

Good for

  • Check whether the current project is lint clean
  • Run the linter and summarize the top rule violations
  • Find copy-pasted code blocks across a Python or Node repo
  • Check Python functions for high complexity before a review
  • Run a custom flake8 or pylint command configured for the project

Code health FAQ

Does Code health install linters into my project?

No. It uses tools already on PATH or runs them ephemerally via uvx, pipx or npx, and installs nothing.

What happens if a project has both Python and Node files?

The helper exits with code 2 and asks you to set .jig/lint-command to choose which linter runs, rather than picking one.

Do advisory findings like complexity cause a failed run?

No. Complexity, pyright, prettier and duplication results are reported in the summary but never change the exit code, which comes only from the primary linter.

Which test runner does Code health use?

It does not run tests. Test running is handled by a separate tdd-loop skill, and security or PR review are also out of scope.

How do I install Code health in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-health to use it in all your projects, or to .claude/skills/code-health in one project. Or install the jig plugin, which includes it: /plugin marketplace add ramboz/jig, then /plugin install jig@jig.

Does Code health run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Code health?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Code health?

The closest alternatives to Code health are Codehealth MCP, Config health, Code quality analysis, Security best practices and Readable code.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ramboz/jig

  1. Walks an agent through diagnosing, proving and fixing a reported bug with a regression

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Runs a six-category ambiguity audit on a spec and asks up to five questions

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Recommends the right contract artifact and validator for each external API surface

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Builds a standardized prompt for a fresh reviewer subagent to check work against its spec

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Persists session terms, learnings and lightweight decisions into a project memory layer

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  6. Inventories an existing spec-driven project and migrates it to jig's conventions

    • Open source
    • 6 GitHub stars
    • Developer tools