next-upgrade

Upgrade a Next.js project to the latest version with codemods and dependency updates.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/lexand-dev/subtrack-monorepo --skill next-upgrade-lexand-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/lexand-dev/subtrack-monorepo/tree/main/.agents/skills/next-upgrade
Command: npx skills add https://github.com/lexand-dev/subtrack-monorepo --skill next-upgrade-lexand-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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 code transformations.

Core Features & Use Cases

  • Version Detection: Automatically identifies the current Next.js version.
  • Codemod Execution: Runs official Next.js codemods to refactor code for breaking changes.
  • Dependency Management: Updates Next.js, React, and related packages to their latest versions.
  • Use Case: Ensure your Next.js application is always up-to-date with the latest features and security patches by running this upgrade skill.

Quick Start

Use the next-upgrade skill to upgrade the project to the latest 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 Next.js to the latest version automatically?

To upgrade Next.js automatically, the Skill identifies your current version, fetches official migration guides, runs automated codemods for breaking changes, updates dependencies, and verifies the upgrade through build and test commands.

What are Next.js codemods and when do I need them for a migration?

Next.js codemods are automated code transformation tools needed during a migration to refactor code for breaking changes. The Skill executes these official codemods to update your codebase to match the latest Next.js version requirements.

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

Yes, the Next.js upgrade process includes dependency management to update Next.js, React, and related packages to their latest versions, ensuring your entire web development stack remains compatible and secure.

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

The best way to handle breaking changes when updating Next.js is to run official codemods. This Skill fetches official migration guides and executes automated codemods to refactor code, minimizing manual updates.

How do I verify my Next.js project after running a version upgrade?

To verify your Next.js project after an upgrade, the Skill runs build and test commands automatically. This ensures the dependency updates and codemod transformations did not introduce errors into your web application.