migrate-to-app-router
CommunityMigrate Next.js Routes to App Router effortlessly
AuthorPeterCowling
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps teams migrate Next.js Pages Router routes to the App Router, unifying routing patterns and improving data fetching discipline across the app.
Core Features & Use Cases
- Guided migration: step-by-step conversion of routes from pages to app structure, including page.tsx, loading.tsx, and error.tsx.
- Data fetching modernization: move data fetches into server components and adopt file-based routing conventions with layout and route-level components.
- Auth and navigation updates: update guards and navigations to use next/navigation for client/server boundaries.
- Use Case: retrofit a large Next.js application to App Router to enable server components and reduce client-side code.
Quick Start
Begin by creating apps/<app>/src/app/<route>/page.tsx (server component) and move relevant data fetching, then implement loading.tsx and error.tsx for UX resilience.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: migrate-to-app-router Download link: https://github.com/PeterCowling/base-shop/archive/main.zip#migrate-to-app-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.