What problem does it solve?
This Skill provides a deep dive into the best practices for Next.js development, covering everything from file conventions to performance optimizations, helping developers write clean, efficient, and maintainable code.
Core Features & Use Cases
- File Conventions: Defines standard file and directory structures for Next.js projects.
- RSC Boundaries: Ensures proper usage of Server and Client Components.
- Async Patterns: Guides on using Next.js 15+ async API changes.
- Runtime Selection: Helps decide between Node.js and Edge runtime.
- Directives: Explains how to use React directives for client-side and server-side logic.
- Error Handling: Shows how to handle errors gracefully in Next.js applications.
- Data Patterns: Offers guidance on choosing the right data fetching pattern.
- Route Handlers: Describes how to create API endpoints with
route.ts files.
- RSC Boundaries: Detects and prevents invalid patterns when crossing Server/Client component boundaries.
- Parallel & Intercepting Routes: Enables modal patterns with parallel and intercepting routes.
- Self-Hosting: Provides steps for deploying Next.js outside of Vercel.
- Debug Tricks: Offers advanced debugging techniques for Next.js applications.
Quick Start
Run the skill with npx next-best-practices to access the comprehensive guide on Next.js best practices.