next-upgrade

Upgrade Next.js projects using official migration guides and codemods.

2|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/Lostovayne/Complete-Cursor-Clone-Next16 --skill next-upgrade-lostovayne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/Lostovayne/Complete-Cursor-Clone-Next16/tree/main/.agents/skills/next-upgrade
Command: npx skills add https://github.com/Lostovayne/Complete-Cursor-Clone-Next16 --skill next-upgrade-lostovayne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrade Next.js to the latest version efficiently by following official migration guides and codemods to minimize breaking changes.

Core Features & Use Cases

  • Detect current Next.js version from package.json
  • Fetch official upgrade guides and codemods
  • Generate an incremental upgrade plan and apply codemods and dependency updates
  • Validate the build and run tests to ensure compatibility
  • Provide rollback guidance in case of failures

Quick Start

Run the next-upgrade skill against your repository to upgrade Next.js to the latest version following official migration guides and codemods.

Frequently Asked Questions about next-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade Next.js to the latest version without breaking my application?

To upgrade Next.js safely, this process follows official migration guides and applies codemods to automate code transformations, update dependencies, and validate the build to minimize breaking changes.

Can I automate Next.js migration for a project using React and TypeScript?

Yes, Next.js migration can be automated for projects using React and TypeScript by detecting the current version, fetching upgrade docs, applying codemods, and running tests to verify compatibility.

What is the best way to handle major version jumps when upgrading Next.js?

Handling major Next.js version jumps involves generating an incremental upgrade plan that applies official codemods and dependency updates step-by-step to ensure a smooth transition.

How do I validate my Next.js build after applying migration codemods?

Validating an upgraded Next.js build involves running the build and test suites immediately after applying codemods and updating dependencies to ensure full compatibility and catch errors.

What should I do if my Next.js build fails after a version upgrade?

If a Next.js build fails after an upgrade, rollback guidance is provided to revert the dependency updates and codemod changes, allowing you to restore your project to its previous working state.

Do I need to manually find Next.js codemods before starting the migration?

No, you do not need to manually find Next.js codemods because the upgrade process automatically detects your current version and fetches the official upgrade guides and required codemods.