nextjs-app-router-patterns

Design Next.js App Router architecture with server components and data fetching patterns.

Updated May 16, 2026
One-click install
npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill nextjs-app-router-patterns-p-o-ke-nae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router-patterns
Source: https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory/tree/main/.github/skills/nextjs-app-router-patterns
Command: npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill nextjs-app-router-patterns-p-o-ke-nae

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and implement modern Next.js applications that use the App Router correctly, avoiding confusion around rendering modes, routing structure, and data fetching behavior.

Core Features & Use Cases

  • Server Components and Client Boundaries: Decide what should render on the server versus in the browser for performance and maintainability.
  • Streaming and Suspense: Split slow UI into progressive sections so pages load faster and feel responsive.
  • Advanced Routing Patterns: Implement parallel routes, intercepting routes, loading states, and route handlers for full-stack experiences.
  • Caching and Revalidation: Apply fetch caching, ISR-style revalidation, and tag or path invalidation for reliable data freshness.
  • SEO and Metadata: Generate metadata, static params, and route-aware page structures for discoverability.
  • Use Case: Build a product dashboard with server-fetched lists, modal detail views, action-based mutations, and optimized loading states.

Quick Start

Ask for a Next.js App Router implementation plan for your page or feature, and the Skill will produce a server-first architecture with routing, data fetching, and caching guidance.

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 structure server and client components in the Next.js App Router?

Structuring server and client components in the Next.js App Router requires defining clear server-client boundaries to optimize rendering and maintainability. This approach dictates what renders on the server versus the browser for maximum performance.

How do I implement streaming and Suspense for slow loading UI sections?

Implementing streaming and Suspense for slow UI sections involves splitting your page into progressive chunks. This rendering pattern allows pages to load faster and feel responsive by progressively streaming data-fetched sections to the browser.

What is the best way to manage fetch caching and data revalidation in Next.js?

Managing fetch caching and revalidation in Next.js involves applying fetch caching controls, ISR-style revalidation, and tag or path invalidation. This strategy ensures reliable data freshness across your server components and route handlers.

How do I use parallel and intercepting routes for modal views in Next.js?

Using parallel and intercepting routes for modal views in Next.js enables advanced routing patterns within your App Router architecture. This technique allows you to build full-stack experiences with simultaneous route rendering and intercepted navigation states.

Does this approach support generating SEO metadata and static params for discoverability?

Yes, this approach fully supports generating SEO metadata and static params for route discoverability. It applies route-aware page structures and metadata generation practices specifically designed for Next.js 14+ app directory conventions.

When should I use server actions for data mutations instead of route handlers?

Use server actions for data mutations when you need direct form submissions and client-to-server communication without creating dedicated API endpoints. Route handlers are better suited for exposing standalone HTTP endpoints within your Next.js App Router architecture.