next-upgrade

Upgrades a Next.js project to the latest stable version using official migration guides and codemods.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/salafidurus/salafi-audios --skill next-upgrade-salafidurus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/salafidurus/salafi-audios/tree/main/apps/web/.opencode/skills/next-upgrade
Command: npx skills add https://github.com/salafidurus/salafi-audios --skill next-upgrade-salafidurus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the complex process of upgrading a Next.js project to the latest version, ensuring compatibility and leveraging new features with minimal manual intervention.

Core Features & Use Cases

  • Version Detection: Automatically identifies the current Next.js version.
  • Automated Codemods: Executes official Next.js codemods to refactor code for breaking changes.
  • Dependency Management: Updates Next.js and related peer dependencies.
  • Use Case: You need to upgrade your Next.js application from version 14 to 15. This Skill will analyze your project, apply the necessary codemods, update your package.json, and guide you through any remaining manual steps.

Quick Start

Run the next-upgrade skill to upgrade your project to the latest Next.js version.

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?

To upgrade Next.js, this Skill applies official migration guides and codemods to refactor code for breaking changes, updates dependencies in package.json, and guides you through any remaining manual steps for the latest stable release.

What are codemods and how do they work for Next.js migration?

Codemods are automated code transformation tools that refactor your existing Next.js codebase to handle breaking changes between major releases, ensuring compatibility when you transition to a newer version.

Can I use automated codemods to migrate Next.js from version 14 to 15?

Yes, you can use this Skill to migrate Next.js from version 14 to 15 by automatically detecting your current version, executing official codemods, updating peer dependencies, and highlighting necessary manual updates.

Does upgrading Next.js automatically update related peer dependencies?

Yes, upgrading Next.js with this Skill includes dependency management, which executes npm install commands to update the core framework alongside related peer dependencies specified in your project.

What is the best way to handle breaking changes during a Next.js migration?

The best way to handle breaking changes is applying official Next.js codemods, which automatically refactor incompatible code patterns across your project before you manually verify the remaining updates.

Are there manual steps required after running Next.js codemods?

Yes, while Next.js codemods automatically refactor code for breaking changes and update dependencies, this Skill will guide you through any remaining manual steps required to complete the version transition.