Next.js 16 App Router performance optimization guidelines (formerly nextjs-16-app-router). This skill should be used when writing Next.js 16 code, configuring caching, implementing Server Components in Next.js, setting up App Router routing, or configuring next.config.js. This skill does NOT cover generic React 19 patterns (use react-19 skill) or non-Next.js server rendering.
Comprehensive performance optimization guide for Next.js 16 App Router applications.
This skill contains 40+ rules across 8 categories for optimizing Next.js 16 App Router applications. Rules are prioritized by impact from CRITICAL to LOW-MEDIUM.
nextjs-16-app-router/
├── SKILL.md # Entry point with quick reference
├── AGENTS.md # Compiled comprehensive guide
├── metadata.json # Version and references
├── README.md # This file
└── rules/
├── _sections.md # Category definitions
└── {prefix}-{slug}.md # Individual rules
# Install dependencies (if using build scripts)
pnpm install
# Build the compiled AGENTS.md
pnpm build
# Validate the skill
pnpm validate
_sections.mdrules/{prefix}-{descriptive-name}.md| Category | Prefix | Impact |
|----------|--------|--------|
| Build & Bundle Optimization | build- | CRITICAL |
| Caching Strategy | cache- | CRITICAL |
| Server Components & Data Fetching | server- | HIGH |
| Routing & Navigation | route- | HIGH |
| Server Actions & Mutations | action- | MEDIUM-HIGH |
| Streaming & Loading States | stream- | MEDIUM |
| Metadata & SEO | meta- | MEDIUM |
| Client Components | client- | LOW-MEDIUM |
---
title: Rule Title Here
impact: CRITICAL|HIGH|MEDIUM-HIGH|MEDIUM|LOW-MEDIUM|LOW
impactDescription: Quantified impact (e.g., "2-10× improvement")
tags: prefix, technique, tool
---
## Rule Title Here
Brief explanation of WHY this matters (1-3 sentences).
**Incorrect (description of problem):**
\`\`\`typescript
// Bad code example
\`\`\`
**Correct (description of solution):**
\`\`\`typescript
// Good code example
\`\`\`
Reference: [Link](https://example.com)
Rule files follow the pattern: {prefix}-{descriptive-slug}.md
Examples:
build-dynamic-imports.mdcache-use-cache-directive.mdserver-parallel-fetching.md| Level | Description | |-------|-------------| | CRITICAL | Fundamental issues that cause major performance problems | | HIGH | Significant optimizations with measurable impact | | MEDIUM-HIGH | Important patterns for common scenarios | | MEDIUM | Useful optimizations for specific cases | | LOW-MEDIUM | Minor improvements and best practices | | LOW | Edge cases and advanced patterns |
# Validate skill structure and content
node scripts/validate-skill.js ./skills/nextjs-16-app-router
# Build AGENTS.md from rules
node scripts/build-agents-md.js ./skills/nextjs-16-app-router
Based on official Next.js documentation and Vercel engineering best practices.
npx skills add pproenca/Next.js 16 App Router 优化下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer