nextjs-15-pro
Installation
SKILL.md
Next.js 15 Pro
Boundary
This skill is strictly limited to Next.js 15 App Router (app/ directory) and React 19 features. It does NOT cover the legacy Pages Router (pages/) or older React versions.
When to use
- Building fullstack web applications using Next.js 15.
- Implementing React 19 Server Actions for data mutations.
- Configuring Partial Prerendering (PPR) or streaming UI.
- Upgrading a Next.js 14 project to Next.js 15.
Workflow
- Analyze Requirements: Determine if the feature requires Server Components (default), Client Components (
"use client"), or a mix. - Data Fetching: Use standard
fetchwith caching configurations (force-cache,no-store) or the newuse cachedirective. - Data Mutation: Create Server Actions for form submissions.
- Optimistic UI: Use
useOptimistichook for immediate feedback during Server Actions. - Streaming: Wrap slow components in React
<Suspense>boundaries to enable streaming and PPR.