What problem does it solve?
Next.js 16 App Router codebases often suffer from slow builds, inefficient caching, and suboptimal rendering patterns that increase latency and hurt UX; this skill provides a structured set of best practices to prevent those issues.
Core Features & Use Cases
- Build & bundle optimization: improve dev startup and bundle size by avoiding slow import patterns and enabling framework-specific optimizations like Turbopack caching and dynamic imports.
- Caching strategy guidance: choose the right caching mode (force-cache, no-store, revalidation, tags, and the use cache directive) and invalidate correctly after mutations.
- Server-first architecture for performance: apply Server Components patterns such as parallel fetching, streaming with Suspense, server data colocation, and resilient error handling.
- Routing & navigation performance: design App Router structures using parallel routes, intercepting routes, prefetching strategy, notFound handling, and proxy.ts network boundaries.
- Production-grade metadata and UX loading states: implement route-level loading.tsx and error.tsx behaviors and generate dynamic SEO metadata.
Quick Start
Apply the nextjs skill to my Next.js 16 App Router code by reviewing caching, rendering, routing, and streaming choices and rewriting the relevant sections to follow the highest-impact rules in AGENTS.md.