Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Check current versions of next, react, react-dom in package.json
  2. Plan incremental path (e.g., v13 -> v14 -> v15; never skip majors)
  3. Run codemods: npx @next/[email protected] <transform> <path>
  4. Update dependencies: See implementation examples
  5. Verify async APIs: ensure cookies(), headers(), params awaited (v15+)
  6. Audit fetch caching: v15 defaults to no-store; add force-cache where needed
  7. Run next build and fix hydration or Turbopack errors
  8. Report codemod failures or manual fixes to team

Implementation Guidelines

  • Upgrade Detection: Always check package.json for versions of next, react, and react-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 as next-async-request-api); updating the pin requires fixture qualification of the retained commands. The pin covers this CLI only: upgrade offers optional React 19 codemod prompts that execute floating codemod@latest and types-react-codemod@latest subprocesses, 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-api transform by ensuring params, searchParams, cookies(), and headers() awaited.
  • React Parity: Upgrade react and react-dom to match Next.js peer dependencies (e.g., React 19 for Next.js 15).
  • Validation: Run next dev and next build after 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 all fetch calls.
  • No async page functions in Pages Router: export default async function Page() fatal.
Полный SKILL.md на GitHub

Установить nextjs-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonreferences/example.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить nextjs-upgrade с