next-upgrade
Skill28 starsChanged 6 months agoMITView on GitHub
Upgrade Next.js to the latest version following official migration guides and codemods
- Installs packages
7 other projects use a version of this, 6 of them edited.
Adopted by
Most recently taken up by
- STIFLEUR390/kwiktalk-docsedited, first seen Oct 3, 2026
- dorian-akhs/skillsedited, first seen Sep 1, 2026
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- ever-works/ever-worksedited, first seen Jul 19, 2026
- openai/pluginsedited, first seen May 13, 2026
- zebbern/termstackedited, first seen Apr 16, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- openai/plugins★ 7.3k60% same
- vercel-labs/openreview★ 1.7k84% same
- ever-works/ever-works★ 15784% same
- zebbern/termstack★ 477% same
- dorian-akhs/skills★ 084% same
- STIFLEUR390/kwiktalk-docs★ 084% same
Wrote their own version · 1
- Leo-Atienza/atlas-claude★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- .claude/skills/composition-patterns/AGENTS.mdAGENTS.md
- .claude/skills/react-best-practices/AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- agy-cliSkill
- aws-cliSkill
- better-authSkill
- brainstormSkill
- claude-seoSkill
- code-qualitySkill
- codex-cliSkill
- color-accessibility-auditSkill
- vercel-composition-patternsSkill
- data-wranglerSkill
- doc-navigatorSkill
- domain-checkerSkill
- fastapi-senior-devSkill
- file-converterSkill
- firebase-cliSkill
- firecrawlSkill
- frontend-designSkill
- gemini-cliSkill
- github-cliSkill
- materialreacttable-masterySkill
- mcp-builderSkill
- mermaid-diagramSkill
- monday-comSkill
- mongodb-atlas-cliSkill
- multi-agent-patternsSkill
- n8n-cliSkill
- natural-languageSkill
- neon-postgres-agent-platformsSkill
- next-cache-componentsSkill
- nextjs-senior-devSkill
- notebooklmSkill
- obsidian-skillsSkill
- owasp-securitySkill
- parallel-agentsSkill
- planning-with-filesSkill
- plan-to-tddSkill
- project-change-logSkill
- pydantic-modelSkill
- react-best-practicesSkill
- salesforce-cliSkill
- semantic-codingSkill
- senior-backendSkill
- skill-creatorSkill
- stripe-best-practicesSkill
- supabase-cliSkill
- swift-concurrency-6-2Skill
- swiftui-patternsSkill
- system-architectSkill
- terraformSkill
- testing-automation-expertSkill
- test-levelsSkill
- token-optimizerSkill
- trailofbits-securitySkill
- ui-ux-pro-maxSkill
- uiux-toolkitSkill
- upgrade-packages-jsSkill
- vercel-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 2 are common, 0 are distinctive, and 3 are very specific to this project.
2
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Detect current version: Read package.json to identify the current Next.js version and related dependencies (React, React DOM, etc.)
- Common: line 15
Fetch the latest upgrade guide: Use WebFetch to get the official upgrade documentation:
- Common: line 45
Review breaking changes: Check the upgrade guide for manual changes needed:
- Very specific: line 56
ASK the user before running npm run build (builds are slow.
- Very specific: line 57
Run npm run dev and test key functionality
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Upgrade Next.js
Upgrade the current project to the latest Next.js version following official migration guides.
Instructions
- Detect current version: Read
package.jsonto 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:
- Codemods: https://nextjs.org/docs/app/guides/upgrading/codemods
- Version-specific guides (adjust version as needed):
- Determine upgrade path: Based on current version, identify which migration steps apply. For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15 → 16).
- Prefer the automated path first: the official upgrade codemod bumps deps AND runs the right transforms interactively:
Fall back to individual codemods when the automated path can't run:npx @next/codemod@latest upgrade latest # or: upgrade patch|minor|major|<version> next upgrade # built-in self-upgrade command (Next 16.1+)
Common transforms:npx @next/codemod@latest <transform> <path>next-async-request-api- Updates async Request APIs (v15)next-request-geo-ip- Migrates geo/ip properties (v15)next-dynamic-access-named-export- Transforms dynamic imports (v15)remove-experimental-ppr/remove-unstable-prefix- PPR & unstable_* cleanup (v16)middleware-to-proxy- middleware.ts → proxy.ts (v16)next-lint-to-eslint-cli- migrate offnext lint(v16)
- Update dependencies: Upgrade Next.js and peer dependencies together:
npm install next@latest react@latest react-dom@latest - Review breaking changes: Check the upgrade guide for manual changes needed:
- API changes (e.g., async params in v15)
- Configuration changes in
next.config.js - Deprecated features being removed
- Update TypeScript types (if applicable):
npm install @types/react@latest @types/react-dom@latest - Test the upgrade:
- ASK the user before running
npm run build(builds are slow; some users forbid unprompted builds) - Run
npm run devand test key functionality
- ASK the user before running
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

