Upgrade Next.js
SkillDocs & knowledgeUpgrade Next.js to a specific target version using safe dependency bumps, codemods, and diff reviews. Use when you need to execute major version bumps, resolve breaking changes, "upgrading Next.js", "migrate to Next.js 15 or 16", or safely "run @next/codemod" against the repository before upgrading.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Upgrade Next.js skill
What this skill tells your AI
The instructions your AI receives, as published by neverinfamous/memory-journal-mcp in skills/next-upgrade/SKILL.md and read by ahel’s review.
Upgrade the current project to a targeted Next.js version following official migration guides.
Instructions
-
Detect current environment:
- Read
package.jsonto identify the current Next.js version, React version, and package manager (npm,pnpm,yarn). - Read the lockfile to ensure you use the correct package manager.
- Read
-
Determine target version:
- Do NOT blindly use
@latest. Always determine the explicit target version (e.g.,15.0.0) based on user request or current LTS. - For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15).
- Do NOT blindly use
-
Consult Upgrade Decision Tree:
- Read references/decision-tree.md to find the correct codemods and checklists for your target version.
-
Security Gate:
- You MUST request explicit user confirmation before running any codemod that modifies source files.
-
Run codemods FIRST (before installing new versions):
- Next.js codemods should often be run against the old codebase before upgrading to automate breaking changes.
- Example:
npx @next/codemod@<target-version> <transform> <path>
-
Pin dependencies:
- Upgrade Next.js and peer dependencies to the specific target version:
- Example:
pnpm install next@15.0.0 react@19.0.0 react-dom@19.0.0
-
Review Diff:
- After running codemods and installing new dependencies, you MUST run
git diffor review the changes. - Do NOT commit or ship without explicit user review of the codemod changes.
- After running codemods and installing new dependencies, you MUST run
-
Test the upgrade:
- Run
npm run build(or equivalent) to check for build errors. - If there are errors in
next.config.jsor routing, resolve them manually.
- Run
Signals
- GitHub stars
- 20
- Forks
- 5
- Last commit
- Jul 2026
Advanced
- Catalog kind
- skill
- Gateway key
next-upgrade-neverinfamous- Source
- github.com/neverinfamous/memory-journal-mcp