/codebase-maintenance:dependency-cleanupfrom codebase-maintenance
Audits package manifests against actual imports to find unused or redundant dependencies. Removes them via the package manager and validates with build/test.
Ships in codebase-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bloated dependencies slow down builds, increase security surface area, and complicate updates. Audit manifests against actual imports, remove unused packages via the package manager (so lockfiles stay correct), and validate with the build.
Audit the manifest. List declared dependencies:
npm ls --depth=0 # JavaScript/TypeScript
pip list --not-required # Python: packages nothing else depends on
Verify usage — manifest vs imports. For any suspect dependency, perform a global search across the codebase:
grep -rn "from ['\"]lodash\|require(['\"]lodash" .
grep -rn "^import requests\|^from requests" . # Python import forms
npx depcheck # JS/TS: automated manifest-vs-import report, if available
Search build scripts, configs, and CI files too — not just src/.
Remove with the package manager. If there are zero usages, use the native command (e.g., npm uninstall lodash or pip uninstall ...). Do not just manually edit the manifest unless absolutely necessary, to ensure lockfiles are updated correctly.
Consolidate duplicates. 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.
Validate. Run the build and test suite to ensure the removed dependency wasn't implicitly required by a build script or runtime environment.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-maintenance9 skills in this plugin
/ai-slop-cleanerUse when a working code path feels bloated, noisy, or over-abstracted, when asked to clean up or deslop AI-generated code, or when a reviewer-only anti-slop pass is requested./architecture-simplificationUse when a codebase carries over-engineered abstractions, unnecessary layers, or redundant logic that should be collapsed without changing behavior./context-retrieval-loopUse when about to refactor, rename, or remove code, assessing dead code before deletion, or unsure of the blast radius of a change.Other plugins' skills for the same job