name: next-upgrade
description: Upgrade Next.js to the latest version following official migration guides and codemods
argument-hint: "[target-version]"
Upgrade Next.js
Upgrade the current project to the latest Next.js version following official migration guides.
Instructions
Detect current version: Read package.json to identify the current Next.js version and related dependencies (React, React DOM, etc.)
Fetch the latest upgrade guide: Use WebFetch to get the official upgrade documentation:
Determine upgrade path: Based on current version, identify which migration steps apply. For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15).
Run codemods first: Next.js provides codemods to automate breaking changes:
1---2name: modbender-skill-library-mcp-next-upgrade3description: ---4---5---6name: next-upgrade7description: Upgrade Next.js to the latest version following official migration guides and codemods8argument-hint: "[target-version]"9---1011# Upgrade Next.js1213Upgrade the current project to the latest Next.js version following official migration guides.1415## Instructions16171. **Detect current version**: Read `package.json` to identify the current Next.js version and related dependencies (React, React DOM, etc.)18192. **Fetch the latest upgrade guide**: Use WebFetch to get the official upgrade documentation:20 - Codemods: https://nextjs.org/docs/app/guides/upgrading/codemods21 - Version-specific guides (adjust version as needed):22 - https://nextjs.org/docs/app/guides/upgrading/version-16 23 - https://nextjs.org/docs/app/guides/upgrading/version-1524 - https://nextjs.org/docs/app/guides/upgrading/version-1425263. **Determine upgrade path**: Based on current version, identify which migration steps apply. For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15).27284. **Run codemods first**: Next.js provides codemods to automate breaking changes:29 ```bash30 npx @next/codemod@latest <transform> <path>31 ```32 Common transforms:33 - `next-async-request-api` - Updates async Request APIs (v15)34 - `next-request-geo-ip` - Migrates geo/ip properties (v15)35 - `next-dynamic-access-named-export` - Transforms dynamic imports (v15)36375. **Update dependencies**: Upgrade Next.js and peer dependencies together:38 ```bash39 npm install next@latest react@latest react-dom@latest40 ```41426. **Review breaking changes**: Check the upgrade guide for manual changes needed:43 - API changes (e.g., async params in v15)44 - Configuration changes in `next.config.js`45 - Deprecated features being removed46477. **Update TypeScript types** (if applicable):48 ```bash49 npm install @types/react@latest @types/react-dom@latest50 ```51528. **Test the upgrade**:53 - Run `npm run build` to check for build errors54 - Run `npm run dev` and test key functionality5556---57> Source: [modbender/skill-library-mcp](https://github.com/modbender/skill-library-mcp) — distributed by [TomeVault](https://tomevault.io).58<!-- tomevault:4.0:skill_md:2026-06-15 -->
Run npx skillmds@latest add tomevault-io/modbender-skill-library-mcp-next-upgrade in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
--- It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.