# Code health

> Code health is an open-source agent skill for developer tools. Runs a static lint pass on Python or Node projects and reports normalized findings. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ramboz/jig/tree/main/hosts/claude/skills/code-health
- **Repository:** https://github.com/ramboz/jig
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** code-health
- **Collection:** https://github.com/ramboz/jig
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/ramboz/jig/tree/HEAD/hosts/claude/skills/code-health)
- [No network calls found in its scripts](https://github.com/ramboz/jig/tree/HEAD/hosts/claude/skills/code-health)
- [License: MIT](https://github.com/ramboz/jig/tree/HEAD/hosts/claude/skills/code-health)

## Features

- **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

## Install

### Claude Code

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

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

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

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

### Codex

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

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

### Cursor

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

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

### Gemini CLI

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

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

### VS Code

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

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

### Other agents

Get the folder:

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

## 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.

## Alternatives

- [Codehealth MCP](https://ai-powered.com/skills/codehealth-mcp): Codehealth MCP is an open-source agent skill for developer tools.
- [Config health](https://ai-powered.com/skills/config-health): Config health is an open-source agent skill for developer tools.
- [Code quality analysis](https://ai-powered.com/skills/code-quality-analysis): Code quality analysis is an open-source agent skill for developer tools.
- [Security best practices](https://ai-powered.com/skills/security-best-practices): Security best practices is a free agent skill for security.
- [Readable code](https://ai-powered.com/skills/readable-code): Readable code is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Vue ci](https://ai-powered.com/skills/vue-ci): Vue ci is an open-source agent skill for developer tools.
- [Spec lint](https://ai-powered.com/skills/spec-lint): Spec lint is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-health
