Dependency Manager
Analyze, audit, and manage project dependencies.
Workflow
Detect the package ecosystem:
package.json→ npm/yarn/pnpmpyproject.toml/requirements.txt→ pip/poetry/uvCargo.toml→ cargogo.mod→ Go modulesGemfile→ bundlerpom.xml/build.gradle→ Maven/Gradle
Run the requested analysis:
Outdated Dependencies
npm outdated/yarn outdated/pnpm outdatedpip list --outdatedcargo outdated(if installed)go list -u -m all- Present as a table: package, current, wanted, latest, type (major/minor/patch).
Security Audit
npm audit/yarn audit/pnpm auditpip audit/safety checkcargo auditgovulncheck ./...- Categorize findings by severity (critical, high, medium, low).
- For each vulnerability, show: package, severity, description, fix available.
Unused Dependencies
- Cross-reference declared dependencies against actual imports in the codebase.
- Check
devDependenciesvs runtime usage. - Flag dependencies that are declared but never imported.
Dependency Tree Analysis
npm ls --all/yarn why <pkg>/pnpm why <pkg>pipdeptree- Identify duplicate packages at different versions.
- Find heavy transitive dependencies.
Upgrade Plan
For major upgrades, generate a plan:
1. Upgrade <package> from v2.x to v3.x
- Breaking changes: <list from changelog>
- Required code changes: <files affected>
- Risk: <low/medium/high>
- Present findings with actionable recommendations.
Guidelines
- Always show the impact before suggesting upgrades (breaking changes, migration effort).
- For security vulnerabilities, prioritize by exploitability and exposure, not just CVSS score.
- Suggest pinning strategies: exact versions for apps, ranges for libraries.
- Warn about packages that are unmaintained (no commits in >1 year, deprecated).
- Don't auto-upgrade — always present the plan and get user confirmation.
- Check license compatibility if the user asks or if the project has a LICENSE file.