next-upgrade

Upgrade Next.js projects across major releases with codemods and build verification.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill next-upgrade-esneiderbravo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/esneiderbravo/hackaton/tree/main/.github/skills/next-upgrade
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill next-upgrade-esneiderbravo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrading Next.js projects to the latest version can be risky, time-consuming, and error-prone due to breaking changes and complex migration steps.

Core Features & Use Cases

  • Automates detection of current Next.js version and dependencies.
  • Applies official migration guides and codemods to upgrade across major versions.
  • Validates the upgrade workflow with build and test checks.

Quick Start

Run the upgrade workflow on your Next.js project to upgrade to the latest version using codemods and official guides.

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 app?

Next.js upgrades are handled by detecting your current version, applying official codemods automatically, and running build checks to catch breaking changes introduced across major releases.

What are codemods and do I need them for a Next.js migration?

Codemods are automated code transformation scripts required for Next.js migrations to safely update deprecated APIs and patterns across major releases, ensuring your codebase conforms to the latest version's standards.

How do I update my React dependencies when migrating Next.js?

Migrating Next.js includes automated dependency updates, ensuring your React libraries and related packages are synchronized with the target Next.js version to maintain compatibility.

Can I upgrade Next.js across multiple major versions at once?

Upgrading Next.js across major versions is supported by sequentially applying the official migration guides and codemods for each release, ensuring breaking changes are resolved step-by-step before the final build verification.

What is the best way to verify a Next.js upgrade is successful?

The best way to verify a Next.js upgrade is by running build and test checks immediately after applying codemods and dependency updates, ensuring the migration workflow completes without functional or technical regressions.

Why does my Next.js build fail after a manual version upgrade?

A Next.js build fails after a manual upgrade because breaking changes and deprecated APIs are not automatically transformed; applying official codemods during the migration process resolves these structural code incompatibilities.