nextjs-upgrade
Installation
SKILL.md
Next.js Upgrade Protocol
Automated and manual migration steps for Next.js version upgrades (e.g., v14 to v15).
Priority: P1 (OPERATIONAL)
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/codemod@latest <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