agentleFS
milad-ahmdmilad-ahmd/agent-skills/skills/dependency-doctor/SKILL.md

dependency-doctor

Skill5 starsChanged 17 days agoMITView on GitHub

Audits project dependencies for vulnerabilities, outdated and unused packages, and produces a safe, ordered upgrade plan with breaking-change notes. Use when the user asks to update dependencies, fix npm/pip audit warnings, check for vulnerable packages, or plan a major-version upgrade.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If a tool isn't installed, say so and fall back to reading the manifest.

    line 24
  2. Distinctive:

    Always update the lockfile through the package manager.

    line 47
  3. Very specific:

    Never use --force or --legacy-peer-deps, and never ignore audit findings, without explaining the trade-off.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dependency Doctor

Diagnose first, then treat. Never upgrade everything blindly.

1. Diagnose (read-only)

Detect the ecosystem from its lockfile and run the matching tools:

EcosystemOutdatedVulnerabilities
npm / pnpm / yarnnpm outdated / pnpm outdated / yarn outdatednpm audit --json / pnpm audit
Pythonpip list --outdated / uv pip list --outdated / poetry show --outdatedpip-audit
Gogo list -u -m allgovulncheck ./...
Rustcargo outdatedcargo audit
Rubybundle outdatedbundle audit
PHPcomposer outdatedcomposer audit
Flutter/Dartflutter pub outdated—

If a tool isn't installed, say so and fall back to reading the manifest. Find unused dependencies by searching for each package's import across the source.

2. Report

## 🩺 Dependency Health: <project>
| Package | Current | Latest | Type | Risk | Action |
|---|---|---|---|---|---|
| lodash | 4.17.15 | 4.17.21 | patch | 🔴 CVE-2021-23337 (high) | upgrade now |
| react | 17.0.2 | 18.3.1 | major | 🟠 breaking | planned migration |
| moment | 2.29.4 | — | — | 🟡 unused | remove |

3. Treatment plan (ordered from safest to riskiest)

  1. Security fixes (patch/minor) → 2. Remove unused packages → 3. Patch and minor bumps in small batches → 4. One major upgrade at a time.

For every major upgrade, check the package's CHANGELOG or release notes, list the breaking changes that affect this codebase (search for the APIs that changed) and estimate the effort.

4. Execute (only after the user confirms)

  • Upgrade one batch, reinstall, then run the build, type-check and tests. Stop and report at the first failure.
  • Always update the lockfile through the package manager. Never hand-edit lockfiles.
  • Never use --force or --legacy-peer-deps, and never ignore audit findings, without explaining the trade-off.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.