What problem does it solve?
This skill provides production-ready guidance for architecting Next.js 14/15 applications with the App Router, eliminating common mistakes around server/client boundaries, incorrect 'use client' usage, broken caching/revalidation, and fragile routing layouts.
Core Features & Use Cases
- Server-first architecture: recommendations for making Server Components the default and minimizing client bundles.
- Routing & Layouts: patterns for page, layout, dynamic, parallel, and intercepting routes.
- Data fetching & caching: guidance on async params, fetch caching, revalidatePath, revalidateTag, and streaming with Suspense.
- Server Actions & Route Handlers: secure patterns for server actions, form handling, and API route handlers including streaming/SSE.
- Error/loading boundaries & auth: conventions for loading.tsx, error.tsx, not-found, middleware protection, and integrating Auth.js/NextAuth.
- Use Case: Turn a legacy Next.js pages-router codebase into a typed, App Router-based architecture with correct data fetching, revalidation, and minimal client-side JavaScript.
Quick Start
Ask the nextjs-expert to review an App Router route or layout and provide a concise TypeScript implementation plan with recommended file structure and key code snippets.