next-upgrade

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jasonviipers/okx-trading --skill next-upgrade-jasonviipers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/jasonviipers/okx-trading/tree/main/.trae/skills/next-upgrade
Command: npx skills add https://github.com/jasonviipers/okx-trading --skill next-upgrade-jasonviipers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrade Next.js projects to the latest version securely and efficiently.

Core Features & Use Cases

  • Codemods-driven migration: Apply official Next.js codemods to automate breaking changes.
  • Incremental upgrades: Plan and execute major version jumps (e.g., 13→14→15) with guidance.
  • Dependency alignment: Update Next.js, React, and related peer dependencies cohesively.

Quick Start

Detect the current version from package.json, then follow the upgrade workflow using codemods and dependency updates.

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?

Next.js codemods are official automated transformation scripts that update your codebase to handle breaking changes between major versions. This Skill applies them automatically to ensure a secure and quick migration.

Can I jump directly between major Next.js versions or do I need incremental upgrades?

You should plan incremental upgrades for major version jumps, such as migrating from 13 to 14 then 15. This Skill provides guided steps to execute these version increments safely while aligning React peer dependencies.

How do I align React and peer dependencies when updating Next.js?

To align dependencies when updating Next.js, this Skill cohesively upgrades Next.js, React, and related peer packages. It ensures your package.json versions are compatible across the entire React-based project stack.

What is the best way to apply codemods for a Next.js migration?

The best way to apply codemods for a Next.js migration is through an automated workflow that executes official transformations, updates dependencies, and validates the build. This Skill orchestrates that entire process quickly.

Do I need to manually run tests after a Next.js version upgrade?

Manual testing is reduced because this Skill guides testing and validation steps as part of the upgrade workflow. It ensures your React-based project remains stable after applying codemods and dependency updates.