next-upgrade

Upgrade Next.js projects to the latest stable version with codemods.

Updated Aug 6, 2025
One-click install
npx skills add https://github.com/flosrn/.claude --skill next-upgrade-flosrn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/flosrn/.claude/tree/main/skills/next-upgrade
Command: npx skills add https://github.com/flosrn/.claude --skill next-upgrade-flosrn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of upgrading a Next.js project to the latest version, handling dependency updates and applying necessary codemods to ensure a smooth transition.

Core Features & Use Cases

  • Version Detection: Automatically identifies the current Next.js version.
  • Codemod Application: Executes official Next.js codemods to refactor code for breaking changes.
  • Dependency Management: Updates Next.js and related peer dependencies to their latest versions.
  • Use Case: Effortlessly upgrade your Next.js application from version 14 to 15 by running this skill, which will manage the codemods and dependency updates for you.

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 my Next.js project to the latest version?

To upgrade Next.js, this skill detects your current version, fetches official migration guides and codemods, and automatically executes dependency updates and code transformations for a seamless transition.

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

Next.js codemods are automated code transformations that refactor your codebase to handle breaking changes. This skill fetches and applies these official codemods during the version migration process.

What is the best way to automate Next.js dependency updates?

Automating Next.js dependency updates is best handled by detecting the current version and executing automated updates for Next.js and its related peer dependencies to their latest stable releases.

Can I upgrade Next.js from version 14 to 15 automatically?

Yes, you can upgrade from Next.js 14 to 15 automatically by running this skill, which manages the necessary codemods and dependency updates to handle breaking changes.

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

Yes, the Next.js upgrade process updates related peer dependencies alongside the core framework, fetching official migration guides to ensure all connected packages reach their latest compatible versions.

Why do I need codemods when upgrading Next.js?

You need codemods when upgrading Next.js because they automatically refactor your code to resolve breaking changes, ensuring a smooth and reliable version migration without manual code edits.