Back to Skills

next-upgrade

Upgrade Next.js to the latest version following official migration guides and codemods

813stars56forksUpdated 4/14/2026

Security Assessment

Safe(100/100)
Security Score100/100

About next-upgrade

next-upgrade is a reusable AI skill focused on a specific workflow. description: Upgrade Next.js to the latest version following official migration guides and codemods

The skill packages instructions, conventions, and task-specific guidance so an agent can execute the job more consistently. argument-hint: "[target-version]" Upgrade the current project to the latest Next.js version following official migration guides. 1. **Detect current version**: Read `package.json` to identify the current Next.js version and related dependencies (React, React DOM, etc.)

In practice, this skill is best suited for users who need repeatable execution with fewer setup steps and less ambiguity. 2. **Fetch the latest upgrade guide**: Use WebFetch to get the official upgrade documentation: - Codemods: https://nextjs.org/docs/app/guides/upgrading/codemods - Version-specific guides (adjust version as needed): - https://nextjs.org/docs/app/guides/upgrading/version-16

FAQ

What does next-upgrade help with?

next-upgrade helps agents follow a focused workflow described in the source documentation, reducing ambiguity and keeping execution aligned with the intended task.

When should this skill be used?

Use it when the task matches the workflow, domain, or operating rules described in the skill documentation, especially when consistent execution matters.

What are the main limitations?

The skill is constrained by the quality and scope of its source instructions. If the underlying documentation is incomplete, the agent may still need extra context or manual validation.

Install next-upgrade

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill