About dependency-management
A dependency-management skill for software developers, outlining practices for audits, version updates, lockfiles, and minimizing dependencies. It includes common checks and file examples for Node.js, Python, Go, and Rust.
Key features
- 01Dependency vulnerability audits
- 02Dependency version management
- 03Lockfiles for reproducible builds
- 04Removing unused dependencies
- 05Testing after updates
Use cases
- 01Check project dependencies for known vulnerabilities
- 02Use lockfiles to make builds reproducible
- 03Remove unused packages
- 04Run the test suite after dependency updates
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dralgorhythm/ claude-agentic-framework --skill dependency-managementAfter installing, type/dependency-managementin Claude Code to confirm it loaded.
Details
From the project READMEDependency Management
Workflows
- Audit: Check for known vulnerabilities
- Update: Keep dependencies reasonably current
- Lock: Ensure reproducible builds
- Minimize: Remove unused dependencies
Security Scanning
# Node.js
npm audit
pnpm audit
# Python
pip-audit
safety check
# Go
govulncheck ./...
# Rust
cargo audit
Version Management
Semantic Versioning
- Major (1.0.0): Breaking changes
- Minor (0.1.0): New features, backward compatible
- Patch (0.0.1): Bug fixes, backward compatible
Version Constraints
// package.json
{
"dependencies": {
"exact": "1.2.3", // Exactly 1.2.3
"patch": "~1.2.3", // 1.2.x (patch updates)
"minor": "^1.2.3", // 1.x.x (minor updates)
"range": ">=1.2.3 <2.0.0" // Range
}
}
Lockfiles
Always commit lockfiles for reproducible builds:
package-lock.jsonorpnpm-lock.yaml(Node.js)poetry.lockoruv.lock(Python)go.sum(Go)Cargo.lock(Rust)
Best Practices
- Pin Versions in Production: Use exact versions or lockfiles
- Update Regularly: Don't let dependencies get too stale
- Review Changelogs: Check breaking changes before major updates
- Test After Updates: Run full test suite after dependency changes
- Minimize Dependencies: Each dependency is a liability
Removing Unused Dependencies
# Node.js
npx depcheck
# Python
pip-autoremove
# Go
go mod tidy
Comments
Markdown supported