nextjs-app-router-patterns

Consolidate reusable Next.js 14+ App Router patterns for server components and streaming.

4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/allthingslinux/portal --skill nextjs-app-router-patterns-allthingslinux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router-patterns
Source: https://github.com/allthingslinux/portal/tree/main/.cursor/skills/nextjs-app-router-patterns
Command: npx skills add https://github.com/allthingslinux/portal --skill nextjs-app-router-patterns-allthingslinux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates reusable patterns and best practices for Next.js 14+ App Router development, enabling teams to standardize architecture and accelerate delivery.

Core Features & Use Cases

  • Pattern Library: Ready-to-use App Router patterns for layouts, routing, data fetching, streaming, and server actions.
  • Migration Guidance: Templates and guidance for migrating from Pages Router to App Router.
  • Use Case: When starting a new Next.js project, apply these patterns to structure routes, enable streaming, and implement server actions with predictable behavior.

Quick Start

Set up a new Next.js 14+ project with App Router, server components, and a streaming data pattern using the included templates.

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 from Next.js Pages Router to App Router?

Migrating from Pages Router to App Router requires restructuring file layouts and data fetching strategies. This Skill provides templates and guidance to transition your architecture, enforcing conventions for the new App Router file structure.

How does streaming work with Next.js server components?

Streaming with Next.js server components optimizes data loading by sending UI chunks progressively. This Skill provides ready-to-adapt patterns to implement streaming and route-level data fetching for predictable UI composition.

What is the best way to structure parallel routes in Next.js 14+?

Structuring parallel routes in Next.js 14+ uses specific file layout conventions to render multiple pages simultaneously. This Skill enforces pattern-based routing templates to standardize parallel route composition and server actions.

Can I use these App Router patterns for a new Next.js project?

You can use these App Router patterns for new Next.js projects to structure routes, enable streaming, and implement server actions. The Skill applies reusable conventions for layouts and data fetching to accelerate project delivery.

Why use server actions in Next.js App Router?

Server actions in Next.js App Router handle mutations and data submissions directly on the server. This Skill includes pattern-based templates to implement server actions with predictable behavior alongside your streaming components.