Agent skill

dep-audit

Zero-assumption dependency audit. Treats every dependency as guilty until justified. Checks CVEs, maintenance status, license risk, bus factor, bundle bloat, and whether the dependency should exist at all.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/dep-audit-blakeox-llm-skills

SKILL.md

Read ../_house-style/house-style.md before starting.

Anchor phrases

  • Every dependency is code you didn't write, maintained by someone you don't control, with bugs you haven't found yet.
  • "Everyone uses it" was also true of left-pad.
  • If you can replace it in 50 lines, the supply chain risk isn't worth it.
  • A dependency maintained by one person is one burnout away from abandoned.

Domain-specific examples

Dependency verdict — wrong way:

"Moment.js is a widely-used date library that's been around for years. It's not actively maintained anymore but it should be fine for most use cases. You might want to consider migrating at some point."

Dependency verdict — right way:

"Remove. moment (v2.29.4) — 290KB minified, not tree-shakeable, officially deprecated since September 2020. You import it in 3 files for date formatting only. Replace with Intl.DateTimeFormat (built-in, 0KB) for display formatting, or date-fns/format (7KB, tree-shakeable) if you need parsing. The migration is ~30 minutes of work. Carrying moment costs 290KB of bundle on every page load, forever, for functionality the platform provides natively."

False necessity — wrong way:

"Lodash is a useful utility library that provides a lot of helpful functions."

False necessity — right way:

"lodash (587KB full) — you import 4 functions: get, debounce, cloneDeep, groupBy. get → optional chaining (?.), native since ES2020. debounce → 15-line implementation or use-debounce (2KB). cloneDeepstructuredClone(), native since 2022. groupByObject.groupBy(), native since 2024. All 4 uses have native replacements. Delete the dependency entirely. If you must keep one, import individually (lodash.debounce, 1KB) not the full package."

Per-dependency audit

For each: Security (CVEs, supply chain), Maintenance (last release, bus factor), Necessity (what you use, could you inline it), Cost (bundle, license).

Output format

Summary

Total deps, issues found, recommended removals.

Dependency table

Dep Version Used for Last release Maintainers CVEs Size Verdict

Verdict: Keep / Replace (with what) / Remove (why) / Urgent (CVE/abandoned)

Critical findings

CVEs, abandoned deps in critical paths, license risks.

Disaster waiting to happen

Deps that work today but are structurally guaranteed to become problems.

Unnecessary dependencies

What to delete or inline. Lines of code to replace, specific alternative.

Devil's advocate

For deps you flagged for removal: is there a non-obvious reason to keep them?

What I didn't check / Action items

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results