next-best-practices

Apply Next.js best practices to file conventions, data fetching, routing, and error handling.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/eKoh951/hytale-gg --skill next-best-practices-ekoh951
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/eKoh951/hytale-gg/tree/main/.windsurf/skills/next-best-practices
Command: npx skills add https://github.com/eKoh951/hytale-gg --skill next-best-practices-ekoh951

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates Next.js best-practice guidance into a single reference, enabling teams to consistently apply modern patterns across projects.

Core Features & Use Cases

  • Covers file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling, scripts, hydration errors, suspense boundaries, parallel routes, self-hosting, and debugging tricks.
  • Useful for onboarding, code reviews, and architectural decisions to ensure scalable, reliable Next.js applications.

Quick Start

Consult this guide to align every Next.js project with proven best practices.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
What are the best practices for Next.js server and client component boundaries?

Next.js best practices dictate clearly separating server and client component boundaries to optimize data fetching and rendering. This Skill identifies standard RSC patterns to improve application reliability, performance, and maintainability across your projects.

How do I optimize images and fonts in my Next.js project?

To optimize images and fonts in Next.js, apply standard guidance for asset handling and bundling. This Skill provides centralized reference patterns for image and font optimization to ensure scalable application performance.

What is the best way to handle routing and metadata in Next.js?

The best way to handle Next.js routing and metadata is by following established file conventions and route handler patterns. This Skill guides routing decisions and metadata application to standardize architectural choices and improve project maintainability.

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

Fixing Next.js hydration errors and managing suspense boundaries requires applying specific debugging tricks and standard error handling patterns. This Skill offers guidance on resolving hydration issues and correctly placing suspense boundaries for reliable rendering.

Does this Next.js best practices guide support self-hosting and onboarding?

Yes, this Next.js best practices guide supports self-hosting configurations and team onboarding by providing a centralized reference for standard patterns and anti-patterns. It helps new members align with proven architectural decisions quickly.

When should I use parallel routes in Next.js?

You should use parallel routes in Next.js when handling complex routing decisions that require independent simultaneous rendering. This Skill helps identify when to apply parallel routes and other file conventions to ensure scalable application architecture.