nextjs-app-router-fundamentals

Migrate Next.js 13+ projects from Pages Router to App Router conventions.

2|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/ByeongminLee/nextjs-claude-code --skill nextjs-app-router-fundamentals-byeongminlee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router-fundamentals
Source: https://github.com/ByeongminLee/nextjs-claude-code/tree/main/template/skills-archive/nextjs-app-router-fundamentals
Command: npx skills add https://github.com/ByeongminLee/nextjs-claude-code --skill nextjs-app-router-fundamentals-byeongminlee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrating from the Pages Router to App Router in Next.js 13+ can be complex. This guide provides clear, actionable instructions for migrating routing, layouts, and metadata to App Router conventions.

Core Features & Use Cases

  • Migration guidance from Pages Router to App Router (layout, routing, and metadata patterns)
  • Patterns for nested layouts, route groups, dynamic routes, and metadata configuration
  • Practical examples for server components, data fetching, and SEO-friendly routing

Quick Start

Install and apply the App Router fundamentals in your Next.js project by following the migration and setup steps.

Frequently Asked Questions about nextjs-app-router-fundamentals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate from Next.js Pages Router to App Router?

Migrating to Next.js App Router involves restructuring your routing, layouts, and metadata handling to match App Router conventions. This guide provides actionable instructions for adopting nested layouts, route groups, and server components in Next.js 13+.

How does metadata configuration work in Next.js App Router?

Metadata in Next.js App Router is configured dynamically within layout and page files rather than statically. This approach ensures SEO-friendly routing by allowing you to define metadata that adapts to server components and data fetching patterns.

Can I use nested layouts and route groups in Next.js 13+?

Yes, Next.js 13+ supports nested layouts and route groups to organize your application's UI without affecting the URL structure. This guide covers practical patterns for implementing these features alongside dynamic routes during your migration.

What is the best way to handle data fetching with server components in Next.js?

The best way to handle data fetching in Next.js is by leveraging server components within the App Router. This guide provides practical examples for fetching data directly in server components to ensure SEO-friendly and performant routing patterns.

Are there limitations when migrating large apps to Next.js App Router?

Migrating large apps to Next.js App Router can be complex due to the need to restructure routing and layout conventions entirely. This guide ensures correct App Router conventions are applied, though careful planning is required for large-scale migrations.