Setup & Installation
What This Skill Does
Upgrades a Next.js project to a newer version by reading the current package.json, fetching the official migration guides, running the appropriate codemods, and updating dependencies. Handles incremental upgrades across major versions and flags any manual changes required by breaking API or config changes.
Instead of manually cross-referencing multiple version-specific migration docs and running codemods in the right order, this skill fetches the relevant guides and handles the sequencing for you.
When to use it
- Upgrading a Next.js 13 app to version 15 without missing breaking changes
- Running next-async-request-api codemod after a version bump causes build failures
- Checking which peer dependency versions React and React DOM need after a Next.js upgrade
- Migrating next.config.js options that were removed or renamed in a new release
- Auditing TypeScript type packages after upgrading to a new Next.js major version