next-upgrade

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

1|Updated Sep 30, 2025
One-click install
npx skills add https://github.com/lukemcdonald/gettreadtalks --skill next-upgrade-lukemcdonald
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/lukemcdonald/gettreadtalks/tree/main/.agents/skills/next-upgrade
Command: npx skills add https://github.com/lukemcdonald/gettreadtalks --skill next-upgrade-lukemcdonald

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 to minimize manual effort.

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 and related peer dependencies to the latest versions.
  • Use Case: You need to upgrade your Next.js application from version 14 to 15. This Skill will guide you through fetching the correct migration steps, running the necessary codemods, and updating your package.json.

Quick Start

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

To upgrade Next.js, this skill detects your current version, updates Next.js, React, and React DOM dependencies, and executes official codemods to refactor breaking changes automatically.

How do Next.js codemods handle breaking changes during a migration?

Next.js codemods handle breaking changes by fetching official migration guides and executing automated code transformations, minimizing manual refactoring effort for your project.

Can I use this to upgrade React and React DOM dependencies together?

Yes, you can upgrade React and React DOM dependencies together. The skill manages peer dependency updates alongside Next.js to ensure version compatibility across your project.

What is the best way to migrate a Next.js project to a specific version?

The best way to migrate a Next.js project is to specify your target version. The skill fetches the correct migration steps, runs necessary codemods, and updates your package.json accordingly.

Do I need to manually review breaking changes after a Next.js upgrade?

Yes, you need to manually review breaking changes. While the skill executes codemods and updates dependencies, it guides you through manual review of remaining breaking changes.