# Packages nobody uses, or that work by luck

Prompt · Infrastructure and environment · I06

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

## Prompt

```text
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.

**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.

**Changes:** Changes nothing

**Sessions:** One session

## Related

- [Risk from outside packages](https://www.atlasscope.dev/prompts/risk-from-outside-packages): Checks what a harmful outside package or pull request could reach.

Source: https://www.atlasscope.dev/prompts/packages-nobody-uses-or-that-work-by-luck
