next-best-practices

Guide Next.js development with file conventions, RSC boundaries, and data fetching patterns.

2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/metaloozee/geoveda --skill next-best-practices-metaloozee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/metaloozee/geoveda/tree/main/.cursor/skills/next-best-practices
Command: npx skills add https://github.com/metaloozee/geoveda --skill next-best-practices-metaloozee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers adhere to and implement the latest best practices in Next.js development, ensuring code quality, performance, and maintainability.

Core Features & Use Cases

  • File Conventions: Understand project structure, route segments, and special files.
  • RSC Boundaries: Detect and prevent invalid React Server Component patterns.
  • Data Patterns: Choose the right data fetching strategy (Server Components, Server Actions, Route Handlers).
  • Error Handling: Implement robust error handling with error.tsx and global-error.tsx.
  • Optimization: Optimize images, fonts, and bundling for performance.

Quick Start

Review the file conventions for organizing your Next.js project.

Frequently Asked Questions about next-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to structure file conventions and route segments in Next.js?

The best way to structure Next.js file conventions is by organizing project structure around route segments and special files to ensure code quality and maintainability. This approach uses specific file naming patterns to define routing and layout behaviors.

How do I prevent invalid React Server Component boundaries in Next.js?

To prevent invalid React Server Component boundaries, you must detect and avoid patterns that break RSC rules. This involves properly managing directives and ensuring server-only logic does not leak into client components.

How do I choose the right data fetching pattern for Next.js App Router?

Choosing the right data fetching pattern depends on selecting between Server Components, Server Actions, and Route Handlers. You should match the strategy to your rendering needs to optimize performance and maintain robust application development.

How do I fix hydration errors and manage suspense boundaries in Next.js?

To fix hydration errors and manage suspense boundaries, implement robust error handling using error.tsx and global-error.tsx files. Properly structuring these boundaries ensures efficient rendering and robust error recovery.

How do I optimize images, fonts, and bundling for Next.js performance?

To optimize Next.js performance, apply built-in image and font optimization features alongside strategic bundling. These optimizations improve loading times and overall application performance efficiency.

When should I use parallel and intercepting routes in Next.js?

You should use parallel and intercepting routes when you need advanced routing layouts for efficient and robust application development. These patterns allow simultaneous rendering of multiple route segments within a single view.