next-upgrade
Skill185 starsChanged 2 months agoMITView on GitHub
Upgrade Next.js to the latest version following official migration guides and codemods
- Installs packages
We split this skill into the rules it gives an agent
4 rules. 1 is common, 0 are distinctive, and 3 are very specific to this project.
1
Common
Most of the 13 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 41
Review breaking changes: Check the upgrade guide for manual changes needed:
- Very specific: line 53
Run npm run build to check for build errors
- Very specific: line 54
Run npm run dev and test key functionality
“Common” is measured: kept by at least 6 in 10 of the 13 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 requested 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: Fetch the official upgrade documentation from these URLs:
- 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).
Run codemods first: Next.js provides codemods to automate breaking changes:
npx @next/codemod@latest <transform> <path>Common transforms:
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)
Update dependencies: Upgrade Next.js and peer dependencies together, using the exact
[target-version]passed by the user for the current step. If no target version was provided, use the next incremental version identified in Step 3 instead of jumping straight tolatest. Determine<supported-react-version>from the official upgrade guide for that target Next.js version, since React and React DOM peer requirements can change between releases:npm install next@<target-version> react@<supported-react-version> react-dom@<supported-react-version>- 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:
- Run
npm run buildto check for build errors - Run
npm run devand test key functionality
- Run
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 13
- midudev/preguntas-entrevista-react★ 7.8k88% same
- openai/plugins★ 7.4k63% same
- TheEdoRan/next-safe-action★ 3.1k88% same
- kokonut-labs/kokonutui★ 2.3k88% same
- vercel-labs/openreview★ 1.7k88% same
- legions-developer/invoicely★ 92388% same
- ever-works/ever-works★ 18588% same
- georgekhananaev/claude-skills-vault★ 2856% same
- zebbern/termstack★ 481% same
- patinaproject/skills★ 188% same
3 more not listed
Wrote their own version · 0
None found.
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.
Used alongsideProjects with it also use tailwind-css-patterns, nodejs-best-practices and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
midudevSkilltailwind-css-patterns
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
Also in 3 projects that use this
xenitV1Skillnodejs-best-practices
Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.
Also in 3 projects that use this
xfstudioSkillnodejs-backend-patterns
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
Also in 3 projects that use this
VercelSkillturborepo
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries.
Also in 3 projects that use this
xfstudioSkilltypescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.
Also in 3 projects that use this
ElasticSkillaccessibility
Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.
Also in 4 projects that use this
In this repository27 other files it gives its agents.
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/vercel-optimize/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-view-transitions/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/frontend-rules.mdcCursor rule
- .cursor/rules/sanity-rules.mdcCursor rule
- .cursor/rules/ultracite.mdcCursor rule
- .cursor/rules/ultracite-migration.mdcCursor rule
- new-blockSkill
- next-best-practicesSkill
- next-cache-componentsSkill
- vercel-cli-with-tokensSkill
- vercel-composition-patternsSkill
- vercel-optimizeSkill
- vercel-react-best-practicesSkill
- vercel-react-view-transitionsSkill
- web-design-guidelinesSkill
- writing-guidelinesSkill
- content-experimentation-best-practicesSkill
- content-modeling-best-practicesSkill
- generate-thumbnails-agenticSkill
- portable-text-conversionSkill
- portable-text-serializationSkill
- sanity-best-practicesSkill
- sanity-live-cache-componentsSkill
- seo-aeo-best-practicesSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

