nextjs-app-router-patterns

Implement Next.js 14+ App Router patterns for routing, data fetching, and server components.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to implementing Next.js 14+ App Router patterns to optimize routing, data fetching, and server components.

Core Features & Use Cases

  • Patterns for Server Components, streaming, parallel routes, and advanced data fetching.
  • Guidance for migrating from Pages Router and setting up SSR/SSG with App Router.
  • Use Case: Refactor a monolithic Next.js app to App Router with Server Actions and incremental streaming.

Quick Start

Activate the skill to map out a robust App Router pattern for a new Next.js project, including server components and routing strategies.

Frequently Asked Questions about nextjs-app-router-patterns

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

FAQPage Schema
What are the best patterns for data fetching and server components in Next.js App Router?

Next.js App Router patterns optimize data fetching and server components by leveraging file conventions, streaming, and parallel routes to structure rendering efficiently. This approach enforces best practices for SSR and SSG within Next.js 14+ applications.

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

Migrating from Pages Router to App Router involves adopting new file conventions, refactoring data fetching for server components, and implementing Server Actions. This Skill provides structured guidance to refactor monolithic Next.js apps incrementally.

How do I use parallel and intercepting routes in Next.js 14+?

Parallel and intercepting routes are advanced App Router patterns that allow simultaneous rendering of multiple route segments and interception of navigation. They enable complex UIs like modals and nested layouts within Next.js.

Can I implement Server Actions and streaming with Next.js App Router?

Yes, the Next.js App Router supports Server Actions and incremental streaming to optimize data transmission and UI rendering. These features allow you to refactor monolithic apps by streaming server-rendered content directly to the client.

When do I need server components versus client components in Next.js?

Server components are needed for data fetching and static rendering, reducing client-side JavaScript, while client components handle interactivity. The App Router architecture enforces best practices for deciding when to use each within your Next.js application.