next-upgrade

Upgrade a Next.js project to the latest stable version with codemods.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/songyinggoh/renovation-agent-monorepo --skill next-upgrade-songyinggoh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/songyinggoh/renovation-agent-monorepo/tree/main/.claude/skills/next-upgrade
Command: npx skills add https://github.com/songyinggoh/renovation-agent-monorepo --skill next-upgrade-songyinggoh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of upgrading a Next.js project to the latest version, handling complex code transformations and dependency updates.

Core Features & Use Cases

  • Version Detection: Automatically identifies the current Next.js version.
  • Codemod Execution: Applies official Next.js codemods to refactor code for breaking changes.
  • Dependency Management: Updates Next.js and related peer dependencies to the latest versions.
  • Use Case: Streamline the upgrade of a Next.js application from version 14 to 15, ensuring compatibility and leveraging new features with minimal manual intervention.

Quick Start

Run the next-upgrade skill to upgrade the project to the latest stable 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 automatically?

To upgrade Next.js automatically, this Skill detects your current version and applies official codemods alongside dependency updates. It fetches migration guides to refactor code, ensuring compatibility with the latest stable release.

What are Next.js codemods and how do they help with migration?

Next.js codemods are automated code transformations that refactor your codebase for breaking changes during a migration. They modify code syntax to align with new release requirements, minimizing manual intervention.

Can I upgrade my Next.js project from version 14 to 15 without manual code changes?

You can upgrade from Next.js 14 to 15 with minimal manual changes by running this Skill. It automatically executes official codemods and updates dependencies to ensure compatibility and facilitate feature adoption.

Does the Next.js upgrade process update related peer dependencies?

Yes, the Next.js upgrade process includes dependency management to update related peer dependencies alongside the core framework. This ensures your project maintains compatibility with the new Next.js release.

What is the best way to handle breaking changes when upgrading Next.js?

The best way to handle breaking changes is by applying official Next.js codemods. This Skill fetches and executes these transformations automatically, refactoring your code to resolve breaking changes and ensure seamless compatibility.