next-upgrade

Automates Next.js upgrades by checking versions, applying codemods, and updating dependencies.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrading Next.js projects to the latest version can be complex due to breaking changes and toolchain migrations; this Skill orchestrates detection, guidance, and automated steps to streamline the process.

Core Features & Use Cases

  • Detects current Next.js version from package.json and related React/React-DOM peers.
  • Fetches official upgrade guides and codemods to automate breaking changes.
  • Applies incremental migrations for major version jumps, updates dependencies and TypeScript types, and verifies builds.

Quick Start

Upgrade a Next.js project to the latest version by following official migration guides and applying 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 major version safely?

Safely upgrading Next.js involves orchestration: reading package.json to detect current versions, fetching official codemods, applying them to fix breaking changes, and validating builds. This Skill automates that entire process stepwise.

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

Codemods are automated code transformation tools used during a Next.js migration to fix breaking changes. This Skill fetches and runs official codemods to update your codebase automatically, reducing manual refactoring when jumping between major versions.

Can I use this to upgrade Next.js across multiple major versions at once?

Upgrading Next.js across multiple major versions is supported through incremental migrations. The Skill reads package.json, determines the current version, and guides stepwise migrations to ensure React and related tooling compatibility.

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

The Next.js upgrade process updates React, React-DOM peers, and TypeScript types. It reads package.json to determine current versions and updates dependencies to ensure compatibility with the target Next.js release.

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

The best way to automate Next.js dependency updates is using a tool that orchestrates package.json updates, runs codemods, and validates builds. This Skill fetches official guides, updates dependencies, and runs tests to verify the migration succeeded.