next-upgrade

Automate Next.js upgrades with codemods, dependency updates, and build validation.

4|3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/valuedriven/devai --skill next-upgrade-valuedriven
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/valuedriven/devai/tree/main/.agents/skills/next-upgrade
Command: npx skills add https://github.com/valuedriven/devai --skill next-upgrade-valuedriven

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrading Next.js can be risky and time-consuming due to breaking changes, missing compatibility notes, and scattered migration steps. This skill provides a structured, codemod-assisted workflow to ensure smooth, reliable upgrades to the latest Next.js version.

Core Features & Use Cases

  • Detect current version and related dependencies from package.json.
  • Run official codemods to automate breaking changes and API migrations.
  • Upgrade dependencies and test to ensure a successful build and runtime.

Quick Start

Identify your project's current Next.js version and orchestrate an upgrade using the provided codemod workflow to apply changes and validate the build.

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?

You can automate a Next.js upgrade by applying official codemods that handle breaking API changes, bumping dependencies, adjusting configuration files, and running build and test validation to ensure a smooth migration.

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

Codemods are automated code transformation scripts that rewrite deprecated APIs and breaking changes in your Next.js project, ensuring your codebase aligns with the latest framework standards without manual refactoring.

Can I jump multiple major versions when upgrading Next.js?

Yes, you can upgrade Next.js across major version jumps, such as migrating from 13 to 14, 15, or 16, by sequentially applying the necessary codemods and dependency adjustments for each breaking change.

Does the Next.js upgrade process work with TypeScript and React?

Yes, the upgrade workflow supports Next.js projects built with TypeScript and React, automatically adjusting dependencies and applying codemods to maintain compatibility with your existing stack.

How do I validate my Next.js build after applying migration codemods?

After applying migration codemods and bumping dependencies, the workflow validates your Next.js build and runs tests to ensure the upgraded application compiles successfully and maintains runtime stability.

What happens if my Next.js dependencies are outdated before an upgrade?

The workflow detects your current Next.js version and related dependencies directly from package.json, automatically bumping them to the required versions to satisfy compatibility requirements before applying codemods.