What problem does it solve?
Upgrading Next.js to newer major or minor releases can introduce breaking changes, compatibility issues with React/TypeScript, and potential upgrade-path gaps. This skill provides a structured, codemod-driven workflow to move projects forward while preserving functionality and stability.
Core Features & Use Cases
- Incremental upgrade planning: detects current Next.js version, React/React DOM versions, and maps an upgrade path (e.g., 13 → 14 → 15 → 16).
- Codemod automation: applies official Next.js codemods to automate breaking changes and reduce manual edits.
- Dependency alignment & validation: updates next, react, and react-dom to latest compatible versions and verifies TypeScript typings if present.
- Build and test validation: runs build and dev checks to validate the upgrade impact and catch issues early.
Quick Start
Upgrade Next.js to the latest version by following the official guides and applying codemods automatically.