npm-deps-cleanup

Installation
SKILL.md

npm Dependency Cleanup

Reduce JavaScript dependency footprint. Preserve the existing package manager, lockfile, workspace layout, and dependency range style unless there is a concrete reason to change them.

Workflow

  1. Establish the baseline.
  2. Remove unused direct dependencies.
  3. Deduplicate direct dependency versions in monorepos.
  4. Rank direct dependencies by transitive lockfile closure.
  5. Use closure data to find low-risk minor/patch upgrades.
  6. Use closure data to find trivial dependencies worth inlining.
  7. Check e18e recommendations for replacements/removals.
  8. Reinstall, verify, and report measured impact.

Package Manager Detection

Use the repo's existing package manager. Prefer explicit package metadata before lockfiles:

Installs
30
GitHub Stars
33
First Seen
10 days ago