What problem does it solve?
This Skill helps developers optimize their Next.js applications, improving performance, maintainability, and developer productivity.
Core Features & Use Cases
- File Conventions: Adhere to best practices for file and directory organization.
- RSC Boundaries: Detect invalid React Server Component patterns and correct them.
- Async Patterns: Apply best practices for handling asynchronous code in Next.js.
- Data Patterns: Choose the right data fetching pattern for each use case.
- Route Handlers: Create efficient and secure API endpoints using route handlers.
- Error Handling: Gracefully handle errors and improve user experience.
- Image Optimization: Optimize images for the web using Next.js features.
- Font Optimization: Implement web fonts efficiently with Next.js and Tailwind CSS.
- Bundling: Manage and optimize third-party package bundling.
- Self-Hosting: Deploy Next.js applications independently of Vercel.
- Debugging: Provide debugging tips and tricks for Next.js apps.
- Hydration Errors: Identify and fix hydration mismatch errors in Next.js.
- Suspense Boundaries: Understand and apply Suspense boundaries for efficient client-side rendering.
- Parallel & Intercepting Routes: Implement modal patterns with parallel and intercepting routes.
- Server Actions: Handle data mutations efficiently with Server Actions.
- Route Handlers: Provide guidelines for creating APIs with route handlers.
- RSC Boundaries: Detect invalid React Server Component patterns.
- Runtime Selection: Choose the appropriate runtime for your Next.js application.
- Scripts: Load third-party scripts securely using Next.js components.
- Self-Hosting: Deploy Next.js applications independently of Vercel.
Quick Start
Use the 'next-best-practices' skill to review your Next.js codebase and optimize it according to best practices.