What problem does it solve?
This Skill provides guidelines and best practices to improve the development, performance, and maintainability of Next.js applications.
Core Features & Use Cases
- File Conventions: Establishes best practices for project structure and file naming.
- RSC Boundaries: Identifies patterns that can lead to errors in Server and Client component interactions.
- Async Patterns: Outlines best practices for handling asynchronous requests and responses in Next.js.
- Runtime Selection: Offers guidance on when to use the Node.js or Edge runtime.
- Directives: Explains how to use Next.js and React directives for better code organization and performance.
- Error Handling: Provides strategies for handling errors gracefully in Next.js applications.
- Data Patterns: Offers advice on choosing the right data fetching pattern for each use case.
- Route Handlers: Describes how to create API endpoints using
route.ts files.
- Image Optimization: Details best practices for optimizing images in Next.js.
- Font Optimization: Outlines methods for optimizing font loading and rendering.
- Bundling: Discusses techniques for optimizing JavaScript bundle size and performance.
- Hydration Errors: Diagnoses and fixes common issues that occur during the React hydration process.
- Suspense Boundaries: Offers guidance on when and how to use Suspense boundaries for efficient client-side rendering.
- Parallel & Intercepting Routes: Describes how to implement modal patterns using parallel and intercepting routes.
- Self-Hosting: Provides instructions for self-hosting Next.js applications.
- Debug Tricks: Shares advanced debugging techniques for Next.js applications.
- Functions: Documents the Next.js function APIs for server-side and client-side functionality.
- Metadata: Explains how to add SEO metadata to Next.js pages using the Metadata API.
Quick Start
To get started with Next.js best practices, run the skill to review the file-conventions guide.