next-best-practices

Provide best practices for building Next.js applications.

Updated May 31, 2026
One-click install
npx skills add https://github.com/vinhnguyenn020325-cmd/dinzkorea --skill next-best-practices-vinhnguyenn020325-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/vinhnguyenn020325-cmd/dinzkorea/tree/main/.test-vercel-plugin/skills/nextjs/upstream
Command: npx skills add https://github.com/vinhnguyenn020325-cmd/dinzkorea --skill next-best-practices-vinhnguyenn020325-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides guidance and best practices for building Next.js applications, helping developers optimize performance, maintainability, and developer experience.

Core Features & Use Cases

  • File Conventions: Offers guidelines on project structure and file naming conventions.
  • RSC Boundaries: Helps identify and correct invalid React Server Component patterns.
  • Async Patterns: Walks through Next.js 15+ async API changes and best practices.
  • Runtime Selection: Explains when to use Node.js or Edge runtime.
  • Directives: Describes how to use React and Next.js directives effectively.
  • Functions: Details navigation hooks, server functions, and generate functions.
  • Error Handling: Provides best practices for error handling and redirecting.
  • Data Patterns: Offers guidelines on data fetching patterns and best practices.
  • Route Handlers: Explains how to create API endpoints with route.ts files.
  • Bundling: Provides information on fixing common bundling issues with third-party packages.
  • Scripts: Offers best practices for loading third-party scripts in Next.js.
  • Self-Hosting: Guides on deploying Next.js outside of Vercel.
  • Hydration Errors: Diagnoses and fixes React hydration mismatch errors.
  • Suspense Boundaries: Explains the use of Suspense boundaries in static routes.
  • Parallel & Intercepting Routes: Offers guidance on implementing modal patterns with parallel and intercepting routes.

Quick Start

Use the next-best-practices skill to review the best practices for your Next.js application.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
How do I fix React hydration mismatch errors in Next.js?

To fix React hydration errors, you diagnose and correct mismatches between server-rendered and client-rendered markup. This Skill provides specific guidelines for identifying and resolving these hydration mismatches in Next.js applications.

What are the best practices for Next.js 15 async API changes?

Next.js 15 async API best practices involve walking through the updated async patterns and API changes. This Skill guides you through correctly implementing these async APIs to ensure optimal performance and maintainability.

When should I use Node.js vs Edge runtime in Next.js?

Choosing between Node.js and Edge runtime depends on your specific use case requirements. This Skill explains the criteria for runtime selection to help you determine when to use Node.js or the Edge runtime effectively.

How do I implement parallel and intercepting routes for modals in Next.js?

Implementing parallel and intercepting routes for modals requires specific file conventions and routing logic. This Skill offers guidance on correctly setting up these advanced routing patterns to build modal interfaces.

What are the guidelines for self-hosting a Next.js application outside of Vercel?

Self-hosting a Next.js application outside of Vercel requires specific deployment configurations. This Skill provides guidelines for self-hosting to ensure your application runs correctly in custom environments.

Do I need prior React knowledge to use Next.js file conventions and RSC boundaries?

You need prior knowledge of Next.js and React to effectively use file conventions and RSC boundaries. This Skill requires this prerequisite understanding to help you identify and correct invalid React Server Component patterns.