next-best-practices

Review Next.js applications for architecture, performance, and reliability best practices.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/Omar-Cc/Integrador-II --skill next-best-practices-omar-cc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/Omar-Cc/Integrador-II/tree/main/frontend/.agents/skills/next-best-practices
Command: npx skills add https://github.com/Omar-Cc/Integrador-II --skill next-best-practices-omar-cc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid common Next.js architecture mistakes by applying reliable conventions for routing, rendering, data handling, optimization, and error management.

Core Features & Use Cases

  • Next.js Architecture Guidance: Apply best practices for App Router structure, Server Components, Client Components, route handlers, and runtime selection.
  • Performance and Reliability Improvements: Improve data fetching, image and font optimization, bundling, hydration handling, and deployment patterns.
  • Use Case: Review a Next.js application before production release to identify incorrect component boundaries, inefficient data patterns, missing metadata, and deployment issues.

Quick Start

Use the next-best-practices skill to review my Next.js application and suggest improvements based on current 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 structuring a Next.js App Router architecture?

Next.js App Router best practices involve correctly defining Server and Client Component boundaries, structuring route handlers, and selecting appropriate runtimes. Applying these conventions ensures reliable application architecture and prevents common structural mistakes.

How do I optimize data fetching and performance in Next.js Server Components?

To optimize Next.js data fetching and performance, apply best practices for async APIs in Server Components, image and font optimization, and bundling. These patterns improve hydration handling and overall application reliability.

How do I review a Next.js application before production deployment?

Reviewing a Next.js application before production involves checking for incorrect component boundaries, inefficient data patterns, missing metadata, and error boundary configurations. This process identifies deployment issues and ensures production readiness.

Do I need to understand React Server Components to use Next.js App Router conventions?

Yes, understanding React Server Components is required. Applying Next.js best practices for routing, rendering, and async APIs relies on knowing Server Component conventions, Client Component boundaries, and metadata handling.

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

The best way to handle Next.js error boundaries and metadata is applying App Router conventions for reliable error management and SEO. Correct metadata handling and error boundaries prevent runtime failures and improve application reliability.

Why does my Next.js application have inefficient data patterns and hydration issues?

Inefficient Next.js data patterns and hydration issues often stem from incorrect component boundaries and missing performance optimizations. Applying Server Component best practices for async APIs and bundling resolves these reliability problems.