next-upgrade

Upgrade Next.js projects to the latest version using official migration guides and codemods.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrading Next.js to the latest version is error-prone due to breaking changes, schema migrations, and dependency compatibility. This skill automates the upgrade process by following official migration guides and codemods to minimize manual effort and risk.

Core Features & Use Cases

  • Detects current Next.js version and related dependencies (React, React DOM) in package.json.
  • Applies Next.js codemods and performs incremental upgrades across major versions.
  • Updates dependencies and TypeScript definitions to align with the target Next.js version.
  • Use Case: You are migrating a project from Next.js 13 to 14 and want a guided, codemod-driven upgrade with validation.

Quick Start

Upgrade the current project’s Next.js to the latest version using 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 project?

You can upgrade Next.js across major versions safely by applying official codemods, detecting current dependencies, updating TypeScript definitions, and validating builds to minimize manual effort and breaking changes.

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

Next.js codemods are automated code transformations that update deprecated syntax and APIs. This skill applies them incrementally during migration to ensure compatibility and reduce manual code changes.

Can I migrate my Next.js project from version 13 to 14 automatically?

Yes, you can migrate from Next.js 13 to 14 using this guided, codemod-driven upgrade process. It detects your current environment, updates dependencies, and validates builds to ensure a successful migration.

Does the Next.js upgrade process update TypeScript definitions and React dependencies?

Yes, the Next.js upgrade process updates TypeScript definitions and related dependencies like React and React DOM to align with your target version, ensuring full compatibility across your project.

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

The best way to handle breaking changes is following official migration guides and applying codemods. This skill automates that process by performing incremental upgrades and validating builds to catch compatibility issues early.

Why should I use codemods instead of manually updating my Next.js dependencies?

Using codemods instead of manually updating Next.js dependencies minimizes the risk of missing breaking schema changes. They automatically transform deprecated code patterns to ensure compatibility while reducing manual effort.