nextjs-app-router-patterns

Structure Next.js 14+ apps with App Router patterns for SSR, SSG, and Server Actions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured blueprint for building and refactoring Next.js 14+ apps using App Router patterns to improve architecture, performance, and maintainability.

Core Features & Use Cases

  • Patterns for App Router architecture, Server Components, streaming, and parallel routes.
  • Useful for building new Next.js applications, migrating from Pages Router, and implementing advanced data fetching and caching.
  • Example use case: migrate an existing Next.js app to App Router with SSR/SSG, Server Actions, and streaming for large pages.

Quick Start

Start by reading the patterns and begin applying them to a Next.js 14+ App Router 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 migrate a Next.js app from the Pages Router to the App Router?

Migrate Next.js Pages Router to App Router by applying structured file convention blueprints to refactor routing, data fetching, and SSR/SSG logic into Server Components for improved architecture and performance.

What are the best patterns for data fetching in Next.js Server Components?

Next.js Server Components data fetching patterns involve implementing direct async data requests within the component tree, leveraging streaming to progressively render large pages and optimizing caching for performance.

How does streaming work with Next.js App Router routing patterns?

Streaming in Next.js App Router routing patterns works by progressively sending Server Component HTML chunks to the client, allowing large pages to render incrementally and improving perceived loading performance using parallel routes.

Can I use Server Actions and SSG together in a Next.js 14+ application?

Yes, you can use Server Actions and SSG together in a Next.js 14+ application. The App Router architecture supports integrating static site generation with Server Actions for mutations and data modifications within the same component tree.

When should I use parallel routes in Next.js App Router?

Use parallel routes in Next.js App Router when you need to render multiple independent route segments simultaneously in a single layout, often paired with streaming to load page sections asynchronously and handle loading states.

What are the limitations of using Server Components for data fetching in Next.js?

Next.js Server Components limitations for data fetching include constraints on client-side interactivity, requiring careful separation of server and client component boundaries to prevent excessive data serialization and maintain streaming performance.