# Dependency health loop

> Dependency health loop is an open-source agent skill for developer tools. Runs scheduled dependency audits and applies one gated, reversible update per pass. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/loops/dependency-health-loop
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** dependency-health-loop
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a recurring routine for keeping project dependencies healthy. Each pass audits the tree for known vulnerabilities and stale pins, picks a single safe update (a security fix first, otherwise one over-stale patch or minor bump), applies it, and re-runs the full test, lint and typecheck gate before opening or updating a pull request. The agent re-audits the whole tree after each change and treats the tree as unhealthy until a fresh audit and a green gate both confirm otherwise.

Major version bumps and changes that alter lockfile resolution, such as overrides, peer-dependency forcing or source swaps, are treated as human checkpoints and are recorded rather than applied. The skill never merges anything; it leaves the pull request for a person to review. Audit and freshness commands are given per ecosystem in a reference file covering npm, pip, cargo, go, bundler and composer.

The skill expects a repository with a dependency manifest and lockfile, and the Bash, Read, Edit, Grep and Glob tools. It is meant to be started by the user, for example through a 30-minute loop during a sprint, and it depends on companion skills for the gate and pull request steps.

## When your agent uses it

> Keep dependencies healthy on a schedule: audit for vulnerabilities and stale pins, apply one safe update per pass, prove it with the full gate, and open or update a PR. HITL on every major bump; never auto-merges. Use to have deps watched during a sprint. Trigger on "audit my dependencies", "keep deps up to date", "watch for CVEs", "update dependencies safely".

## What it can access

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

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/dependency-health-loop)
- [Asks for: Read, Edit, Bash, Grep, Glob](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/loops/dependency-health-loop/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/dependency-health-loop)

## Features

- **Vulnerability and staleness audit:** Runs the ecosystem audit and a freshness check to find advisories and pins that have fallen behind policy.
- **One bump per pass:** Chooses a single update, security fixes first, so each change can be reviewed and traced on its own.
- **Full gate verification:** Re-runs the complete test, lint and typecheck gate after each bump and rolls back if it cannot be made green.
- **Human checkpoints for majors:** Holds major version bumps and lockfile-semantics changes for a person and records them as deferred.
- **Pull request handoff:** Opens or updates one dependency-health pull request and never merges it.
- **Stop conditions and caps:** Ends the routine on a clean proof, an iteration or budget cap, or three passes with no progress on the same advisory.

## Good for

- Audit my dependencies for known vulnerabilities and fix the worst one
- Keep deps up to date during this sprint without breaking the build
- Watch for CVEs and open a PR when a safe patch is available
- Update dependencies safely and flag any major upgrades for review

## Install

### Claude Code

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

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dependency-health-loop &&
cp -R "$tmp/skills/loops/dependency-health-loop" ~/.claude/skills/dependency-health-loop &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dependency-health-loop &&
cp -R "$tmp/skills/loops/dependency-health-loop" ~/.agents/skills/dependency-health-loop &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dependency-health-loop &&
cp -R "$tmp/skills/loops/dependency-health-loop" ~/.cursor/skills/dependency-health-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dependency-health-loop` 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/ivy00johns/Skill-Madness.git --path skills/loops/dependency-health-loop
```

Or copy the folder to `~/.gemini/skills/dependency-health-loop` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dependency-health-loop &&
cp -R "$tmp/skills/loops/dependency-health-loop" ~/.copilot/skills/dependency-health-loop &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/loops/dependency-health-loop` into your agent's skills folder as `dependency-health-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Dependency health loop merge dependency updates automatically?

No. It prepares a pull request for a human to merge and never merges on its own.

### How are major version upgrades handled?

Major bumps are paused as human checkpoints. They are recorded as deferred with their changelog or migration link and are not applied unattended.

### What does Dependency health loop need to run?

It requires Claude Code, the Bash, Read, Edit, Grep and Glob tools, and a project with a dependency manifest and lockfile. It invokes companion skills for the test gate and pull request steps.

### Which package ecosystems are covered?

The reference file lists audit and update commands for npm, pnpm, yarn, pip, poetry, uv, cargo, go, bundler and composer.

### How do I install Dependency health loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dependency-health-loop to use it in all your projects, or to .claude/skills/dependency-health-loop in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Dependency health loop run scripts?

No. It is instructions only, with no 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 Dependency health loop?

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 Dependency health loop?

The closest alternatives to Dependency health loop are Dependency audit, Go dependency audit, Deps, Dependency cycle audit and Constraint driven development.

## Where this comes from

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

## Alternatives

- [Dependency audit](https://ai-powered.com/skills/dependency-audit): Dependency audit is an open-source agent skill for security.
- [Go dependency audit](https://ai-powered.com/skills/go-dependency-audit): Go dependency audit is an open-source agent skill for security.
- [Deps](https://ai-powered.com/skills/deps): Deps is an open-source agent skill for developer tools.
- [Dependency cycle audit](https://ai-powered.com/skills/dependency-cycle-audit): Dependency cycle audit is an open-source agent skill for developer tools.
- [Constraint driven development](https://ai-powered.com/skills/constraint-driven-development): Constraint driven development is an open-source agent skill for developer tools.
- [Fix until green](https://ai-powered.com/skills/fix-until-green): Fix until green is an open-source agent skill for developer tools.
- [Dependency upgrade](https://ai-powered.com/skills/dependency-upgrade): Dependency upgrade is an open-source agent skill for developer tools.
- [Dependabot](https://ai-powered.com/skills/dependabot): Dependabot is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/dependency-health-loop
