nextjs-upgrade
БесплатноБез исполняемых скриптовНе проверенNext.js version migrations using official guides and codemods. Use when migrating a Next.js project to a new major version using codemods.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Next.js Upgrade Protocol
Automated and manual migration steps for Next.js version upgrades (e.g., v14 to v15).
Priority: P1 (HIGH)
Workflow: Upgrade Next.js to New Major Version
- Check current versions of
next,react,react-dominpackage.json - Plan incremental path (e.g., v13 -> v14 -> v15; never skip majors)
- Run codemods:
npx @next/[email protected] <transform> <path> - Update dependencies: See implementation examples
- Verify async APIs: ensure
cookies(),headers(),paramsawaited (v15+) - Audit
fetchcaching: v15 defaults tono-store; addforce-cachewhere needed - Run
next buildand fix hydration or Turbopack errors - Report codemod failures or manual fixes to team
Implementation Guidelines
- Upgrade Detection: Always check
package.jsonfor versions ofnext,react, andreact-dom. - Planning: For major version jumps (v13 to v15), perform incremental upgrade (v13 -> v14, then v14 -> v15). Follow official Next.js Migration Guides.
- Automated Codemods: Use
npx @next/[email protected] <transform> <path>to automate syntax migration. - Codemod Version Pin: Every invocation is pinned to
@next/[email protected]for verified Next.js 15 migration transforms (such asnext-async-request-api); updating the pin requires fixture qualification of the retained commands. The pin covers this CLI only:upgradeoffers optional React 19 codemod prompts that execute floatingcodemod@latestandtypes-react-codemod@latestsubprocesses, so decline both and migrate React manually. Exact targets in the examples are fixture-qualified migration hops, not production or security recommendations; verify a real project's supported security fixes before choosing targets. - Breaking Changes (v15): Respond to
next-async-request-apitransform by ensuringparams,searchParams,cookies(), andheaders()awaited. - React Parity: Upgrade
reactandreact-domto match Next.js peer dependencies (e.g., React 19 for Next.js 15). - Validation: Run
next devandnext buildafter each incremental step. Check console errors for hydration warnings.
Anti-Patterns
- No major version skipping: Upgrade one major version at time (13 -> 14, then 14 -> 15).
- No manual breaking-change fixes: Always run
npx @next/[email protected]transforms first. - No floating codemod versions: Never run
@next/codemod@latest; execute the pinned@next/[email protected]release. - No assumed caching behavior post-upgrade: v15 defaults to
no-store; audit allfetchcalls. - No async page functions in Pages Router:
export default async function Page()fatal.
Установить nextjs-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nextjs-upgrade?
Next.js version migrations using official guides and codemods. Use when migrating a Next.js project to a new major version using codemods.
Как установить скилл nextjs-upgrade?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nextjs-upgrade запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic