next-best-practices

Apply Next.js best practices for file conventions, RSC boundaries, and routing.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/0bkevin/aethertable --skill next-best-practices-0bkevin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/0bkevin/aethertable/tree/main/.agents/skills/next-best-practices
Command: npx skills add https://github.com/0bkevin/aethertable --skill next-best-practices-0bkevin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Next.js projects often drift into inconsistent conventions and patterns, creating maintenance burdens and reduced performance across teams.

Core Features & Use Cases

  • File conventions: Standardized project layout and file naming.
  • RSC boundaries: Detect and avoid unsafe Server Components patterns.
  • Data patterns: Clear guidance on Server Components vs Server Actions vs Route Handlers.
  • Async APIs: Modern patterns for async data fetching and caching.
  • Metadata & error handling: Best practices for dynamic metadata and robust error pages.
  • Route handlers & bundling: API routes, bundling considerations, and optimization tips.
  • Image/Font optimization: Guidance on using Next.js image/font optimization effectively.
  • Use case: Apply these practices to improve consistency and performance across a Next.js codebase.

Quick Start

Review the included best-practice docs and start applying these patterns to a sample Next.js project.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
How do I structure Next.js Server Components and avoid unsafe RSC patterns?

To structure Next.js Server Components safely, you must enforce clear RSC boundaries and detect unsafe patterns. This guide provides standardized file conventions and production-ready examples to maintain secure component boundaries across your project.

When should I use Server Components vs Server Actions vs Route Handlers for data patterns?

Choosing between Server Components, Server Actions, and Route Handlers depends on your data pattern requirements. This framework provides clear guidance on selecting the correct async API approach for fetching, caching, and mutating data in Next.js.

What's the best way to handle dynamic metadata and robust error pages in Next.js?

The best way to handle dynamic metadata and robust error pages in Next.js is following standardized best practices. This guide covers modern patterns for dynamic metadata generation and robust error handling file conventions to improve maintainability.

How to optimize Next.js bundling, images, and fonts for production performance?

To optimize Next.js bundling, images, and fonts for production performance, apply specific optimization techniques. This guide provides actionable tips on bundling considerations and effective utilization of Next.js image and font optimization features.

Does this Next.js best practices guide require any specific dependencies or components?

No dependencies or specific components are required to apply these Next.js best practices. The guide serves as a standalone reference providing a production-ready framework to enforce consistent implementation without external library requirements.

Why does my Next.js project drift into inconsistent conventions and reduced performance?

Next.js projects drift into inconsistent conventions due to lacking standardized patterns across teams. Applying this guide's best practices for file conventions, routing, and data patterns improves maintainability and resolves performance burdens in typical Next.js applications.