nextjs-react-expert
Installation
SKILL.md
Next.js 15+ App Router — Dense Reference
Mandatory Pre-Flight Context Inspection
Before engineering Next.js 15+ App Router code, you MUST inspect:
- Next.js 15 Async Dynamic APIs →
cookies(),headers(), and routeparams/searchParamsare now async Promises (await params) - Server Components by Default → Keep data fetching on the server; add
"use client"only for user interactions or hooks - Server Action Validation & Taint → Always declare
"use server", validate inputs with Zod (schema.safeParse), and useexperimental_taintUniqueValuefor secrets - Caching Semantics →
fetch()is UNCACHED by default in Next.js 15; explicitly specify{ cache: 'force-cache' }orrevalidateTag()when static caching is intended
Activation Boundaries
- Activate when: Building Next.js 15 App Router applications, Server Actions, route handlers, middleware, and configuring Partial Prerendering (PPR).
- DO NOT activate when: Building pure client-only Vite/SPA applications or Express/Fastify standalone backend servers.