next-upgrade

Automate Next.js version migrations with official guides and codemods.

9|2|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/FindMalek/dukkani --skill next-upgrade-findmalek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/FindMalek/dukkani/tree/main/.cursor/skills/next-upgrade
Command: npx skills add https://github.com/FindMalek/dukkani --skill next-upgrade-findmalek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers upgrade Next.js versions safely and efficiently by following official migration guides and codemods, reducing manual trial-and-error and potential breakages.

Core Features & Use Cases

  • Detects the current Next.js version from package.json and evaluates related dependencies.
  • Fetches official upgrade guides and codemods to guide incremental migrations.
  • Applies codemods and manual steps to migrate breaking changes and update dependencies.
  • Validates the upgrade by building and running the app to ensure functionality across environments.

Quick Start

Check the current Next.js version in package.json and follow the codemod and dependency-upgrade steps described above.

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 a new major version safely?

Upgrading Next.js involves detecting the current version in package.json, fetching official upgrade guides, applying codemods for breaking changes, updating related dependencies, and validating the build. This reduces manual trial-and-error and prevents breakages.

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

Codemods are automated code transformations that apply breaking changes required by official Next.js upgrade guides. They automate manual migration steps to match new version requirements, ensuring incremental upgrades follow official documentation accurately.

Can I use this to incrementally upgrade Next.js dependencies?

Yes, you can incrementally upgrade Next.js dependencies. The process evaluates related dependencies from package.json, fetches official upgrade documentation, and applies codemods and dependency updates for both major version jumps and incremental upgrades.

What is the best way to validate a Next.js build after a version upgrade?

The best way to validate a Next.js build after upgrading is to build and run the application to ensure functionality across environments. This confirms that dependency updates and codemod migrations did not introduce breaking changes or errors.

Do I need to manually check package.json before starting a Next.js migration?

You do not need to manually check package.json before starting a Next.js migration. The process automatically detects the current Next.js version and evaluates related dependencies to determine the correct upgrade path and required codemods.