clean-unused-deps
Installation
SKILL.md
Clean Unused Dependencies
This skill helps identify and remove unused npm dependencies from a project.
Workflow
- Identify unused dependencies using
depcheck - Remove the unused dependencies with
npm uninstall
Prerequisites
- Node.js and npm installed
depcheckinstalled globally (npm install -g depcheck)
Instructions
- Run
depcheckin the project root to identify unused dependencies - Review the output and identify packages to remove
- Run
npm uninstall <package-name>for each unused package