What problem does it solve?
This Skill helps prevent common Next.js App Router mistakes by enforcing best practices across routing, Server Components vs Client Components, async APIs, and production-ready patterns.
Core Features & Use Cases
- File conventions & routing correctness: Clarifies special files and route segment behaviors to avoid misstructured apps.
- RSC boundary validation: Flags invalid async Client Components and non-serializable server-to-client props.
- Modern async and data patterns: Covers Next.js 15+ async params/searchParams and server-side data fetching approaches (Server Components, Server Actions, Route Handlers).
- Production-grade error handling & navigation: Guides the correct use of error boundaries and Next.js navigation/error utilities without breaking behavior.
- Performance and platform specifics: Recommends metadata/OG conventions, image and font optimization, bundling hygiene, and runtime selection (Node vs Edge).
- Route handler safety and API design: Avoids route conflicts and describes correct environment expectations for route.ts handlers.
- Parallel routes (modal patterns) and debug tactics: Explains required default.tsx behavior and provides practical debugging/build strategies.
Quick Start
Apply these rules to a Next.js App Router change by asking the AI: Review my route structure and RSC boundaries for a Next.js 15/16 project and list the specific fixes needed.