Skip to content
Back to skills

Deps Unused

ASecurity

Finds packages in package.json that are not actually used in the codebase

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
ai-agentstypescriptbash

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill deps-unused --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deps Unused?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deps Unused
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-deps-unused/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-deps-unused)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deps-unused
description: Finds packages in package.json that are not actually used in the codebase
user-invocable: true
allowed-tools: Bash Read Edit
effort: low
---

## Find Unused Dependencies

1. Run automated analysis:
```bash
npx depcheck 2>/dev/null | head -40
npx unimported 2>/dev/null | head -40
```

2. For each flagged package, manually verify:
```bash
grep -r "require\|from\|import" src/ --include="*.ts" --include="*.js" | grep "package-name" | head -5
```

3. Watch for false positives:
   - Packages used in config files (`.eslintrc`, `jest.config`)
   - `@types/*` packages (used by TypeScript compiler)
   - Peer dependencies (required by other packages)
   - Dev tools used in scripts

4. Classify each:
   - **Safe to remove**: confirmed unused, no config reference
   - **Keep**: used in config or indirectly
   - **Investigate**: uncertain

5. For safe removals, show the `npm uninstall` commands. Ask for confirmation before running.

6. Estimate bundle size savings.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…