What problem does it solve?
This Skill provides comprehensive guidelines and best practices for Next.js development, ensuring code quality, performance, and maintainability.
Core Features & Use Cases
- File Conventions: Defines the project structure and file naming conventions for Next.js applications.
- RSC Boundaries: Identifies and prevents common mistakes in React Server Components.
- Async Patterns: Offers guidance on using Next.js 15+ async APIs and patterns.
- Runtime Selection: Explains the use of Node.js and Edge runtime in Next.js.
- Directives: Describes the usage of React and Next.js directives for server and client components.
- Error Handling: Details error handling strategies in Next.js, including error boundaries and navigation APIs.
- Data Patterns: Discusses best practices for data fetching and handling in Next.js.
- Route Handlers: Explains how to create API endpoints with
route.ts files.
- Bundling: Covers common bundling issues and solutions in Next.js.
- Hydration Errors: Diagnoses and fixes React hydration mismatch errors.
- Suspense Boundaries: Identifies when and how to use Suspense boundaries in Next.js.
- Parallel & Intercepting Routes: Describes the use of parallel and intercepting routes for modal patterns.
- Self-Hosting: Provides instructions for self-hosting Next.js applications.
- Debug Tricks: Offers debugging tips and tricks for Next.js applications.
Quick Start
Use the next-best-practices skill to learn about Next.js best practices.