What problem does it solve?
This Skill provides comprehensive guidance and rules to ensure Next.js code is written efficiently, maintainably, and according to modern best practices, preventing common pitfalls.
Core Features & Use Cases
- File Conventions: Understand project structure, route segments, and special files.
- RSC Boundaries: Detect and fix invalid patterns when crossing Server/Client component boundaries.
- Async Patterns: Implement Next.js 15+ async API changes correctly.
- Error Handling: Gracefully manage errors with
error.tsx, global-error.tsx, and navigation APIs.
- Data Patterns: Choose the right pattern (Server Components, Server Actions, Route Handlers) for data fetching and mutations.
- Image & Font Optimization: Leverage
next/image and next/font for performance.
- Use Case: A developer is unsure about the correct way to fetch data in a new Next.js 15+ project and wants to ensure they are following the latest recommendations for performance and maintainability.
Quick Start
Review the file conventions for organizing your Next.js project structure.