internal/skills/content/dependency-update/SKILL.md
Safe dependency update workflow. Use when upgrading packages, resolving vulnerability alerts, updating major versions, or auditing dependency health across project ecosystems.
npx skillsauth add ar4mirez/samuel dependency-updateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Safe and systematic dependency updates with vulnerability management, license checking, and rollback planning.
| Trigger | Priority | Description | |---------|----------|-------------| | Security Vulnerability | Critical | Known CVE in dependency | | Monthly Maintenance | High | Regular update cycle | | Major Version | Medium | New major version available | | Pre-Release | High | Before production deployments | | Breaking Bug | Critical | Bug in current dependency |
| Type | Risk | Frequency | Testing | |------|------|-----------|---------| | Patch (x.x.1) | Low | Weekly/Auto | Basic | | Minor (x.1.0) | Low-Medium | Monthly | Standard | | Major (1.0.0) | High | Quarterly | Comprehensive |
MAJOR.MINOR.PATCH
│ │ │
│ │ └── Bug fixes (backward compatible)
│ └──────── New features (backward compatible)
└────────────── Breaking changes
Before starting:
Phase 1: Audit Dependencies
↓
Phase 2: Check Vulnerabilities
↓
Phase 3: Check License Compatibility
↓
Phase 4: Plan Updates
↓
Phase 5: Execute Updates
↓
Phase 6: Test & Validate
↓
Phase 7: Document & Deploy
List outdated dependencies using ecosystem-specific tools:
# Node.js
npm outdated
# Python
pip list --outdated
# Go
go list -u -m all
# Rust
cargo outdated
# Ruby
bundle outdated
Create update inventory prioritizing direct dependencies over transitive ones.
Run security audits:
# Node.js: npm audit
# Python: pip-audit or safety check
# Go: govulncheck ./...
# Rust: cargo audit
# Ruby: bundle audit check
Prioritize by severity: Critical (hours) → High (days) → Moderate (weeks) → Low (monthly).
Check licenses before adding dependencies:
# Node.js: npx license-checker --summary
# Python: pip-licenses
Avoid: GPL-3.0, AGPL-3.0, SSPL, Unlicensed (require legal review). Safe: MIT, Apache-2.0, BSD, ISC.
Priority: Security → Patches → Minor → Major
Update strategies:
Create update plan grouping by priority and risk level.
Create branch: git checkout -b chore/dependency-updates-YYYY-MM
Update commands by ecosystem:
# Individual: npm install pkg@ver | pip install pkg==ver | go get pkg@ver
# Batch: npm update | pip install -U pkg1 pkg2 | go get -u ./... | cargo update
Verify lock files updated. Commit with descriptive messages following conventional commits.
Run comprehensive validation:
# Tests: npm test | pytest | go test ./... | cargo test
# Types: npm run typecheck | mypy . | cargo check
# Lint: npm run lint | ruff check . | golangci-lint run | cargo clippy
# Build: npm run build | go build ./... | cargo build --release
For major updates, verify critical paths manually.
Create PR documenting:
Deploy: Dev → Staging → Production (with validation at each stage).
# Reset to before updates
git checkout package.json package-lock.json
npm install
# Revert the commit
git revert <update-commit-hash>
npm install
# Deploy revert
// package.json
{
"dependencies": {
"problematic-package": "1.2.3" // Pin to working version
},
"resolutions": {
"problematic-package": "1.2.3" // Force transitive deps
}
}
| Task | Node.js | Python | Go | Rust |
|------|---------|--------|----|------|
| List outdated | npm outdated | pip list --outdated | go list -u -m all | cargo outdated |
| Security audit | npm audit | pip-audit | govulncheck ./... | cargo audit |
| Update all | npm update | pip install -U | go get -u ./... | cargo update |
| Update one | npm install pkg@ver | pip install pkg==ver | go get pkg@ver | cargo update -p pkg |
For detailed per-ecosystem commands, verbose examples, and automation configuration, see:
development
Zig language guardrails, patterns, and best practices for AI-assisted development. Use when working with Zig files (.zig), build.zig, or when the user mentions Zig. Provides comptime patterns, allocator conventions, C interop guidelines, and testing standards specific to this project's coding standards.
tools
WordPress framework guardrails, patterns, and best practices for AI-assisted development. Use when working with WordPress projects, or when the user mentions WordPress. Provides theme development, plugin architecture, REST API, blocks, and security guidelines.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs. Use when testing web apps, automating browser interactions, or debugging frontend issues.
tools
Suite of tools for creating elaborate, multi-component web applications using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Use for complex projects requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX pages.