Skip to content
Back to skills

Dependency Cleanup

ASecurity

Use to audit and remove unused or redundant third-party dependencies from package manifests.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 29, 2026
ai-agentsgosecurity

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill dependency-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Cleanup?

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

Security grade badge for Dependency Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-dependency-cleanup/badge)](https://www.skillsdirectory.com/skills/yeaight7-dependency-cleanup)

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: dependency-cleanup
description: "Use to audit and remove unused or redundant third-party dependencies from package manifests."
---

# Dependency Cleanup

Bloated dependencies slow down builds, increase security surface area, and complicate updates.

## Cleanup Protocol

1. **Audit**: Review `package.json`, `requirements.txt`, or `Cargo.toml`.
2. **Verify Usage**: For any suspect dependency, perform a global search across the codebase (e.g., `import .* from 'lodash'`).
3. **Remove**: If there are zero usages, use the native package manager command to remove it (e.g., `npm uninstall lodash` or `pip uninstall ...`). Do not just manually edit the manifest unless absolutely necessary, to ensure lockfiles are updated correctly.
4. **Consolidate**: If multiple libraries serve the exact same purpose (e.g., `moment` and `date-fns`), flag it to the user for future consolidation. Do not attempt a massive library migration autonomously.
5. **Validate**: Run the build and test suite to ensure the removed dependency wasn't implicitly required by a build script or runtime environment.

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…