vercel-labs avatar

Cra To Next Migration

Moving from Create React App to Next.js means rewiring your entire mental model, from client-side routing to server components, and this guide gives you 148 prioritized rules to do it systematically. It covers the critical path first (project setup, routing conversion, data fetching patterns) before diving into fonts and deployment minutiae. The gotchas section alone has 24 rules, which tells you this migration has sharp edges. One thing worth noting: it enforces Next.js 16.x or later and explicitly forbids 14.x or 15.x, so you're working with the latest patterns. If you're staring down a CRA codebase that needs SSR or better performance, this is basically a migration checklist with opinions baked in.

skills.sh installs
929
GitHub stars
14
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/migration-skills --skill cra-to-next-migration --agent claude-code

Installs into .claude/skills of the current project.

Files

CRA to Next.js Migration Guide

Comprehensive migration guide for converting Create React App projects to Next.js, covering routing, data fetching, components, styling, and deployment. Contains 148 rules across 17 categories, prioritized by migration impact. After a successful migration the application should work the same as it did before the migration.

When to Apply

Reference these guidelines when:

  • Migrating an existing CRA application to Next.js
  • Converting React Router routes to file-based routing
  • Adopting Server Components in a client-heavy app
  • Moving from client-side rendering to SSR/SSG
  • Updating environment variables for Next.js
  • Optimizing images and fonts with Next.js built-ins

Version Policy

Use Next.js 16.x or later. Do NOT use Next.js 14.x or 15.x.

Before starting migration, check the current latest version:

npm info next version

Use the latest version in your package.json with a caret for minor/patch updates. The minimum supported version for this migration guide is ^16.0.0.

Rule Categories by Priority

Sponsors

Details

Repository
github.com/vercel-labs/migration-skills
Categories
Frontend Development, Backend & APIs, Documentation, Cloud & Infrastructure
First seen
Jun 3, 2026
1liveblocks avatarliveblocks-best-practicesliveblocks/skillsUse this skill when building, debugging, or answering questions about Liveblocks. Liveblocks gives you the building blocks and infrastructure to enable people a923skills.sh installs
2tencentcloudbase avatarai-model-webtencentcloudbase/skillsUse this skill when a browser/Web app (React, Vue, Angular, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI) needs AI models via @cloudbase/js-sdk. Defau918skills.sh installs
3bobmatnyc avatardaisyuibobmatnyc/claude-mpm-skillsTailwind CSS component library providing semantic class names for 50+ components with built-in themes, dark mode, and customization for rapid UI development.915skills.sh installs
4cap-go avatarframework-to-capacitorcap-go/capgo-skillsGuide for integrating modern web frameworks with Capacitor. Covers Next.js static export, React, Vue, Angular, Svelte, and others. Use this skill when convertin912skills.sh installs
5vtex avatarsales-app-extensibilityvtex/skillsApply when building, customizing, or deploying extensions for VTEX Sales App. Covers the complete 7-step workflow from prerequisite checks through code generati909skills.sh installs
6mindrally avatarbeautifulsoup-parsingmindrally/skillsExpert guidance for HTML/XML parsing using BeautifulSoup in Python with best practices for DOM navigation, data extraction, and efficient scraping workflows.905skills.sh installs