What problem does it solve?
This Skill provides comprehensive guidance and rules to ensure Next.js code adheres to best practices, improving maintainability, performance, and developer experience.
Core Features & Use Cases
- File Conventions: Understand project structure, route segments, and special files.
- RSC Boundaries: Detect and prevent invalid React Server Component patterns and non-serializable props.
- Data Patterns: Choose the right pattern for fetching and mutating data (Server Components, Server Actions, Route Handlers).
- Error Handling: Implement robust error handling with
error.tsx, global-error.tsx, and navigation API best practices.
- Optimization: Learn about image, font, and bundling optimizations.
- Use Case: A developer can use this Skill to review their Next.js codebase, ensuring it follows established patterns for routing, data fetching, and component architecture, leading to a more stable and performant application.
Quick Start
Review the current project's Next.js code against the best practices outlined in the file conventions section.