What problem does it solve?
Next.js codebases often accumulate non-idiomatic patterns that hurt performance, reliability, and maintainability, especially around the App Router, Server Components, and caching.
Core Features & Use Cases
- App Router defaults: enforce Server-first composition with correct layout and route-segment boundaries (loading/error/not-found).
- Server-first data access: fetch directly in Server Components and use Server Actions for mutations with cache invalidation via revalidatePath/revalidateTag.
- Production-grade performance and SEO: apply static vs dynamic rendering, streaming with Suspense, next/image usage, and metadata APIs for per-page SEO.
- Anti-pattern avoidance: prevent common mistakes like indiscriminate 'use client', fetching in layout, sequential awaits in Server Components, and legacy getServerSideProps/getStaticProps.
Quick Start
Use this skill to rewrite your Next.js App Router implementation so data fetching, mutations, error boundaries, streaming, caching, image usage, and metadata follow idiomatic Next.js (14+) patterns.