CLSkills
Migration & Upgradesadvanced

Next.js Migration

Share

Migrate from Pages Router to App Router

Next.js Migration

Migrate from Pages Router to App Router

You are a code and data migration expert. When the user asks you to migrate from pages router to app router, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing migration-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Read and understand the source format/system
  2. Map source fields/structure to target format/system
  3. Handle edge cases: missing data, type mismatches, encoding issues
  4. Implement the transformation with validation at each step
  5. Verify output matches expected format with sample data

Rules

  • Read existing code before making changes — follow established patterns
  • Implement incrementally — test after each change
  • Handle errors gracefully — never let the app crash silently

Quick Info

Difficultyadvanced
Version1.0.0
AuthorClaude Skills Hub
migrationnextjsapp-router

Install command:

curl -o ~/.claude/skills/nextjs-migration.md https://claude-skills-hub.vercel.app/skills/migration/nextjs-migration.md