next-best-practices

Guide Next.js development with best practices for file conventions, RSC boundaries, and data patterns.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/jeniferGoncalvesDaSilvaDev/ISO-AI --skill next-best-practices-jenifergoncalvesdasilvadev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/jeniferGoncalvesDaSilvaDev/ISO-AI/tree/main/.agents/skills/next-best-practices
Command: npx skills add https://github.com/jeniferGoncalvesDaSilvaDev/ISO-AI --skill next-best-practices-jenifergoncalvesdasilvadev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive guide to implementing best practices in Next.js development, ensuring efficient performance and robust error handling.

Core Features & Use Cases

  • File Conventions: Learn about file structure, route segments, middleware, and proxy configurations for optimal Next.js projects.
  • RSC Boundaries: Identify and prevent invalid patterns when working with Server/Client components in Next.js.
  • Async Patterns: Explore the changes in Next.js 15+ regarding asynchronous APIs and how to handle them correctly.
  • Data Patterns: Understand the best data fetching patterns for server and client components.
  • Error Handling: Implement effective error handling strategies in your Next.js applications.
  • Image Optimization: Leverage next/image for efficient image loading and optimization.
  • Font Optimization: Optimize font delivery for faster loading times and better user experience.
  • Bundling: Manage package bundling to reduce load times and improve performance.
  • Scripts: Integrate third-party scripts with next/script for better performance.
  • Self-Hosting: Deploy Next.js applications independently of Vercel.
  • Hydration Errors: Debug and resolve common hydration issues in Next.js.
  • Suspense Boundaries: Learn how to use Suspense boundaries for CSR bailout and data fetching in Next.js.
  • Parallel & Intercepting Routes: Implement modal patterns and other advanced routing techniques in your Next.js apps.
  • Self-Hosting: Understand the process of self-hosting Next.js applications.

Quick Start

Use the next-best-practices skill to learn how to optimize your Next.js application by following the guidelines provided in the SKILL.md file.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
How do I optimize images and fonts in Next.js for faster loading?

Next.js performance optimization leverages `next/image` for efficient image loading and delivery. Font optimization techniques reduce loading times by streamlining how font assets are fetched and rendered.

What are the best practices for error handling and resolving hydration errors in Next.js?

Error handling in Next.js requires implementing specific strategies to catch and manage application failures robustly. Debugging hydration errors involves identifying mismatches between server and client rendered content.

How do I manage Server and Client component boundaries in Next.js RSC?

Next.js RSC boundaries define what renders on the server versus the client. Identifying and preventing invalid patterns when working with Server and Client components ensures optimal data fetching and application architecture.

What is the best way to self-host a Next.js application independently of Vercel?

Self-hosting Next.js applications independently of Vercel requires understanding specific deployment configurations. Proper bundling and script management ensure the application maintains performance outside its native platform.

How do I handle asynchronous APIs and data fetching patterns in Next.js 15+?

Next.js 15+ introduces changes to asynchronous APIs that require specific handling patterns. Correct data fetching patterns for server and client components ensure data is retrieved efficiently across RSC boundaries.

Can I use Suspense boundaries for data fetching and CSR bailout in Next.js?

Yes, Next.js Suspense boundaries can be used for client-side rendering bailout and data fetching. Implementing Suspense correctly allows for better loading states when handling parallel and intercepting route patterns.