nextjs-app-router-patterns

Implement Next.js 14+ App Router patterns with Server Components and streaming.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/nonputtipong/Oryn --skill nextjs-app-router-patterns-nonputtipong
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nextjs-app-router-patterns
Source: https://github.com/nonputtipong/Oryn/tree/main/.agent/skills/nextjs-app-router-patterns
Command: npx skills add https://github.com/nonputtipong/Oryn --skill nextjs-app-router-patterns-nonputtipong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for building modern Next.js applications using the App Router, enabling efficient Server Component implementation and advanced data fetching strategies.

Core Features & Use Cases

  • App Router Architecture: Understand file conventions, rendering modes (Server/Client Components), and layout structures.
  • Data Fetching & Caching: Implement effective data fetching with Server Components, streaming, and various caching strategies (ISR, tag-based).
  • Advanced Patterns: Utilize parallel routes, intercepting routes (modals), and Server Actions for dynamic features.
  • Use Case: When starting a new Next.js 14+ project, use this Skill to set up the foundational App Router structure, implement dynamic data loading with streaming, and define API endpoints using Route Handlers.

Quick Start

Use the nextjs-app-router-patterns skill to implement a Server Component that fetches and displays a list of products, including a loading state using Suspense.

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 fetch data in Next.js App Router Server Components?▼

Next.js App Router data fetching uses Server Components to retrieve data directly on the server. You can implement effective data loading with streaming and various caching strategies like ISR and tag-based caching to optimize rendering performance.

What is the best way to structure layouts and Server Components in Next.js 14+?▼

Structuring layouts in Next.js 14+ involves understanding file conventions and rendering modes for Server and Client Components. You use layout structures to define shared UI and optimize full-stack React features within the App Router paradigm.

How do parallel routes and intercepting routes work in the Next.js App Router?▼

Parallel routes and intercepting routes in the Next.js App Router enable advanced UI patterns like modals and dynamic features. They allow simultaneous rendering of multiple pages and interception of navigation states for interactive user interfaces.

Can I use streaming and Suspense for loading states in Next.js Server Components?▼

Yes, streaming with Suspense is supported in Next.js Server Components. You implement a loading state using Suspense to wrap Server Components that fetch data, allowing the UI to stream progressively while asynchronous data resolves.

Does this Next.js App Router guidance cover Server Actions and Route Handlers?▼

Yes, this Next.js App Router guidance covers Server Actions for mutations and Route Handlers for defining API endpoints. These advanced patterns facilitate dynamic features and full-stack data management within the App Router architecture.

When should I use tag-based caching and ISR with Next.js App Router data fetching?▼

Tag-based caching and ISR should be used with Next.js App Router data fetching when optimizing data management and rendering efficiency. These strategies ensure cached data updates incrementally or on-demand for full-stack React applications.