What problem does it solve?
Modern Next.js applications require coordinating server and client components, streaming, parallel and intercepting routes, advanced data fetching, and cache invalidation patterns; this Skill condenses those complexities into practical, actionable patterns so teams can build performant, maintainable App Router apps and migrate from the Pages Router with confidence.
Core Features & Use Cases
- Rendering & File Conventions: Clear guidance on when to use Server Components, Client Components, layouts, pages, loading, error, and template files to structure routes.
- Data Fetching & Caching: Patterns for ISR, tag-based invalidation, revalidate options, and colocated fetching to optimize performance and cache consistency.
- Streaming & Suspense: Techniques for progressive hydration using Suspense boundaries to stream slow data like reviews or recommendations.
- Routing Patterns: Examples for parallel routes, intercepting/modal routes, and route handlers (API endpoints) to build complex UIs such as dashboards and modals.
- Server Actions & Best Practices: Server Action examples for mutations with revalidation and redirect logic, plus do's and don'ts to avoid common pitfalls.
- Use Case: Build an e-commerce product page that renders core product content immediately, streams reviews and recommendations, supports add-to-cart Server Actions, and uses tag-based caching to invalidate product lists.
Quick Start
Use the nextjs-app-router-patterns skill to generate an App Router layout with server components, Suspense boundaries for streaming, route handlers for products, and tag-based caching strategies.