route-conversion
Installation
SKILL.md
Route Conversion
Convert a specific page from pages/ directory to app/ directory, handling data fetching migration, metadata extraction, and file structure changes.
Iron Law
ONE ROUTE AT A TIME. VALIDATE BEFORE MOVING ON. DELETE THE OLD FILE.
Every route follows the full cycle: analyze → convert → validate → delete old file → build. Skip a step? You'll ship broken code. "I'll validate later" means "I'll debug for hours later."
Prerequisites:
- REQUIRED: Run
migration-assessmentfirst if this is the start of a migration. No exceptions — even "simple" codebases have hidden blockers. - REQUIRED: Ensure
app/layout.tsxexists before converting any route. If it doesn't, convertpages/_app.tsx+pages/_document.tsxfirst.
Toolkit Setup
Related skills
More from blazity/next-migration-skills
nextjs-migration-toolkit
Required dependency for all next-migration-skills. Provides AST analysis and transform tools powered by ts-morph for analyzing routes, components, dependencies, and generating App Router code.
12component-migration
>
10migration-planning
>
10migration-assessment
>
9dependency-mapping
>
8data-layer-migration
>
8