home / skills / sickn33 / antigravity-awesome-skills / nextjs-app-router-patterns
This skill helps you master Next.js 14+ App Router patterns, Server Components, and data fetching to build scalable full-stack apps.
npx playbooks add skill sickn33/antigravity-awesome-skills --skill nextjs-app-router-patternsReview the files below or copy the command above to add this skill to your agents.
---
name: nextjs-app-router-patterns
description: Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.
---
# Next.js App Router Patterns
Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.
## Use this skill when
- Building new Next.js applications with App Router
- Migrating from Pages Router to App Router
- Implementing Server Components and streaming
- Setting up parallel and intercepting routes
- Optimizing data fetching and caching
- Building full-stack features with Server Actions
## Do not use this skill when
- The task is unrelated to next.js app router patterns
- You need a different domain or tool outside this scope
## Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.
## Resources
- `resources/implementation-playbook.md` for detailed patterns and examples.
This skill masterfully encapsulates patterns and practices for Next.js 14+ App Router, focusing on Server Components, streaming, parallel routes, and advanced data fetching. It helps teams design scalable, fast full-stack React apps and migrate from the Pages Router to the App Router with confidence. The content is outcome-driven and geared toward production-ready implementations.
The skill inspects your app architecture goals, constraints, and inputs, then recommends concrete App Router patterns: Server vs Client Component boundaries, streaming strategies, parallel/intercepting route layouts, and caching rules. It provides step-by-step actions, code organization guidance, and verification steps to validate SSR/SSG behavior, streaming performance, and data consistency. When deeper examples are required, it points to a detailed implementation playbook for reproducible code snippets and deployment checks.
Does the skill cover both Server and Client Components?
Yes. It explains when to use Server Components for data-heavy rendering and when to add Client Components for interactive UI.
Will it help with migrating an existing Pages Router app?
Yes. It provides migration steps, layout refactors, and strategies to preserve SEO and SSR behavior during the transition.