nextjs-app-router-patterns

Implement Next.js App Router patterns for server components, streaming, and SEO.

2|Updated Sep 11, 2025
One-click install
npx skills add https://github.com/kinneyyan/prompts --skill nextjs-app-router-patterns-kinneyyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router-patterns
Source: https://github.com/kinneyyan/prompts/tree/main/claude-code/plugins/frontend-big-brother/skills/nextjs-app-router-patterns
Command: npx skills add https://github.com/kinneyyan/prompts --skill nextjs-app-router-patterns-kinneyyan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers master Next.js App Router patterns to build scalable, high-performance React applications using SSR/SSG, streaming, and Server Components.

Core Features & Use Cases

  • Server Components & Client Components patterns: guidelines to structure components for performance and UX.
  • Streaming and Suspense: techniques to progressively render content and improve perceived performance.
  • Parallel Routes and Intercepting Routes: strategies to compose multi-section layouts and modal-like flows.
  • Routing, Metadata, and SEO: best practices for route handlers, dynamic metadata, and SEO readiness.

Use cases include building dashboards with parallel routes, implementing streaming product pages, and migrating from Pages Router to App Router.

Quick Start

  • Install Next.js with App Router enabled.
  • Create a sample app/ structure and copy pattern templates from this skill to scaffold common patterns.
  • Run the app in development to explore patterns and adapt to your project.

Frequently Asked Questions about nextjs-app-router-patterns

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

FAQPage Schema
How do I implement streaming and Suspense in Next.js App Router?

Next.js App Router streaming uses Suspense boundaries to progressively render server components, sending HTML chunks as data resolves to improve perceived performance. You wrap dynamic data-fetching components in Suspense to enable streaming.

What is the best way to structure server and client components in Next.js?

Structuring server and client components in Next.js involves keeping data fetching and static logic in server components, while isolating interactivity in client components using the 'use client' directive to optimize performance and UX.

When should I use parallel routes and intercepting routes in Next.js?

Use parallel routes to compose multi-section layouts like dashboards with independent data streams, and use intercepting routes for modal-like flows such as dynamically displaying product details or authentication modals without full page navigation.

How do I handle dynamic SEO metadata for SSR and SSG in Next.js?

Dynamic SEO metadata in Next.js App Router is handled by exporting a generateMetadata function from your server components, allowing you to fetch data and inject dynamic title and meta tags for SSR and SSG pages.

How do I migrate a Pages Router project to the Next.js App Router?

Migrating from Pages Router to App Router requires restructuring your project directory into the app/ folder, mapping pages to server components, and adapting data fetching logic to the new server-side patterns.

Do I need Server Actions to build full-stack applications with Next.js App Router?

Server Actions are not strictly required but are highly recommended for full-stack Next.js App Router use cases, allowing you to write server-side data mutations directly within client components without creating separate API endpoints.