dependency-upgrade
Installation
SKILL.md
Dependency Upgrade
Overview
Upgrade in small, verified steps. Read what changed before changing code, keep the app working after each step, and never mix an upgrade with unrelated changes.
Method
- Inventory. List outdated and vulnerable packages:
npm outdated/npm audit,pip list --outdated/pip-audit,mvn versions:display-dependency-updates,go list -u -m all. Note current and target versions. - Plan the order:
- Patch and minor updates first, in one batch.
- Then each major upgrade on its own, starting with the runtime and framework, then libraries that depend on them.
- Security fixes before feature upgrades.
- Read before changing. For each major upgrade: official migration guide, changelog "Breaking changes" section, deprecation notices from the current version. Check peer dependency requirements.
- Run official codemods when available (for example
npx @next/codemod,npx react-codemod, Angularng update, OpenRewrite for Spring). - Upgrade, fix, verify: update the version and lockfile, fix compile and type errors, run lint, tests and build, start the app and check the main flows.
- Commit per step with the versions in the message.