Prompt·Infrastructure and environment·I06

Packages nobody uses, or that work by luck

Finds packages nobody uses and packages that work only by accident.

Markdown
Prompt
Audit dependencies for packages declared but unused, imports satisfied only through transitive dependencies, and heavyweight libraries used for trivial behavior. Check build-time and runtime use, dynamic imports, tooling and security advisories before recommending removal or replacement.
What it returns
Each package with every import site (including config files and scripts) and the bundle or install cost.
Skip it when
Right after a package cleanup.
Changes
Changes nothing
Sessions
One session
Tools
Repository; a package checker such as knip or depcheck if already present.
Watch for
Static scans flag packages as unused when they load from PostCSS, Vite or Next config, CLI scripts or file-based routing.
Also called
Ghost and phantom dependencies

Related prompts

More in Infrastructure and environment.