Next.js App Router best practices covering file conventions, RSC boundaries, async APIs, data patterns, hydration errors, metadata, route handlers, image/font optimization, and bundling. Use when writing or reviewing Next.js code to prevent hydration errors, RSC violations, data waterfalls, and configuration mistakes.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Next.js App Router best practices covering file conventions, RSC boundaries, async APIs, data patterns, hydration errors, metadata, route handlers, image/font optimization, and bundling. Use when writing or reviewing Next.js code to prevent hydration errors, RSC violations, data waterfalls, and configuration mistakes.
argument-hint
[question or file]
Next.js Best Practices
Apply these rules when writing or reviewing Next.js code.
Cache Components patterns: When the project has cacheComponents: true in next.config.ts,
use the separate cache-components skill for 'use cache', cacheLife(), cacheTag(),
updateTag(), and revalidateTag() guidance.