next-upgrade

Upgrade a Next.js project by detecting version, running codemods, and updating dependencies.

101|33|Updated Nov 23, 2023
One-click install
npx skills add https://github.com/growupanand/ConvoForm --skill next-upgrade-growupanand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-upgrade
Source: https://github.com/growupanand/ConvoForm/tree/main/.agents/skills/next-upgrade
Command: npx skills add https://github.com/growupanand/ConvoForm --skill next-upgrade-growupanand

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex process of upgrading a Next.js project to the latest version, minimizing manual effort and potential errors.

Core Features & Use Cases

  • Automated Version Detection: Identifies the current Next.js version in your project.
  • Codemod Execution: Runs official Next.js codemods to automatically refactor code for breaking changes.
  • Dependency Management: Updates Next.js and related peer dependencies to their latest compatible versions.
  • Use Case: You need to upgrade your Next.js application from version 14 to 15. This skill will handle running the necessary codemods and updating your package.json.

Quick Start

Run the next-upgrade skill to upgrade your project to the latest stable version of Next.js.

Frequently Asked Questions about next-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade my Next.js project to the latest version?

To upgrade Next.js, this skill detects your current version, fetches official migration guides, and executes automated codemods to refactor breaking changes while updating dependencies in your package.json.

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

Codemods are automated scripts that refactor your codebase to handle breaking changes. This skill fetches and runs official Next.js codemods to seamlessly update your code during a version migration.

Does the Next.js upgrade process automatically update peer dependencies?

Yes, the Next.js upgrade process includes dependency management to automatically update related peer dependencies to their latest compatible versions alongside the core framework.

Can I use this to migrate my web application from Next.js 14 to 15?

Yes, you can use this skill to migrate from Next.js 14 to 15. It handles running the necessary codemods and updating your package.json, then guides you through manual review of remaining breaking changes.

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

The best way to handle breaking changes is using automated codemods for refactoring, followed by a guided manual review. This skill fetches official migration guides to ensure all breaking changes are properly addressed.