nextjs-app-router-patterns

Provide patterns for Next.js 14+ App Router components and routing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/oscartejera/josephine-app --skill nextjs-app-router-patterns-oscartejera
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router-patterns
Source: https://github.com/oscartejera/josephine-app/tree/main/.agents/skills/nextjs-app-router-patterns
Command: npx skills add https://github.com/oscartejera/josephine-app --skill nextjs-app-router-patterns-oscartejera

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and practical examples for building modern, efficient web applications using the Next.js 14+ App Router architecture.

Core Features & Use Cases

  • Server Components: Understand and implement Server Components for optimized data fetching and rendering.
  • Client Components: Learn when and how to use Client Components for interactivity.
  • Advanced Routing: Master parallel routes, intercepting routes, and dynamic routing.
  • Data Fetching & Caching: Implement effective data fetching strategies with caching and revalidation.
  • Server Actions: Utilize Server Actions for secure and efficient data mutations.
  • Streaming: Enhance user experience with streaming for faster perceived load times.
  • SEO: Configure metadata and SEO for optimal search engine visibility.

Quick Start

Use the nextjs-app-router-patterns skill to generate a basic layout.tsx file for a new Next.js application.

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 use Server Components and Client Components in Next.js App Router?

Next.js App Router uses Server Components by default for optimized data fetching and rendering. You implement Client Components by adding the use client directive specifically when your UI requires interactivity, ensuring efficient data handling across your full-stack React application.

What is the best way to handle data mutations in Next.js 14?

The best way to handle data mutations in Next.js 14 is by utilizing Server Actions. Server Actions provide a secure and efficient method to mutate data directly from your React components without needing to manually build separate API endpoints.

How do parallel routes and intercepting routes work in Next.js?

Parallel routes and intercepting routes enable advanced routing in Next.js. Parallel routes render multiple pages simultaneously within a single layout, while intercepting routes load a route within the current UI context to enable patterns like modals without full page transitions.

How do I improve perceived load times with streaming in Next.js?

You improve perceived load times in Next.js by implementing streaming. Streaming sends UI components to the client as they become ready rather than waiting for the entire page, significantly enhancing user experience with faster initial rendering for full-stack React applications.

Can I configure SEO metadata dynamically in a Next.js App Router layout?

Yes, you can configure SEO metadata dynamically in a Next.js App Router layout. By defining and optimizing metadata within your layout files, you achieve optimal search engine visibility and ensure accurate rendering of page information for modern web applications.