Instructions
When to Use
- Use for ordered major upgrades (React/Next/toolchain) with rollback.
- Prefer
secure-dependenciesfor audit/lockfile policy alone. - Prefer
testing-agentto define regression gates before bumping.
Plan major upgrades (Next, React, TypeScript, ESLint flat config, Vitest) with small steps.
- Baseline security: run
pnpm audit(or org equivalent); resolve or document allowlisted CVEs before bumping majors - pair withsecure-dependencies. - Inventory current versions from lockfile and
package.json. - Order upgrades: tooling that does not change runtime first, then framework, then breaking libs.
- For each step: codemod link or manual file list; tests to run (
pnpm test,pnpm lint,pnpm build). - Next major: read official upgrade guide for that jump only - do not merge multiple majors blindly.
- Rollback: git branch or tag before step; document
pnpm installrestore.
Outcomes
- Markdown checklist with gates; no 500-line single PR unless user insists.
Output Rules
Numbered phases; each phase ends with verification commands.
Scope and boundaries
- In scope: JS/TS dependency upgrades in one repo.
- Out of scope: database migrations, production cutover scheduling.
Safety
- suggest-shell: user runs commands; warn on peer dependency overrides.
Troubleshooting
- Peer dependency hell: prefer
pnpm.overridesonly with comment and owner approval. - Type explosion: enable
skipLibChecktemporarily only as documented bridge.
Related skills
secure-dependencies- audit policy during upgradesgithub-actions-ci- CI gates for majorstesting-agent- regression tests before bump
GitHub: https://github.com/bh611627/skillcodex/tree/main/skills/dependency-migrations/SKILL.md
npm: https://www.npmjs.com/package/@skillcodex/skills