next-best-practices

Review Next.js applications for App Router and Server Component best practices.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/j19800824/miliguan --skill next-best-practices-j19800824
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/j19800824/miliguan/tree/main/apps/admin/.agents/skills/next-best-practices
Command: npx skills add https://github.com/j19800824/miliguan --skill next-best-practices-j19800824

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid common Next.js implementation mistakes by providing practical guidance for architecture, rendering patterns, routing, performance optimization, and error handling.

Core Features & Use Cases

  • Next.js Architecture Guidance: Applies best practices for App Router structure, Server Components, Client Components, route handlers, and runtime selection.
  • Performance and Reliability Patterns: Improves applications through optimized images, fonts, bundling, caching, Suspense boundaries, and deployment strategies.
  • Use Case: Review a Next.js application, identify invalid React Server Component patterns, fix routing conventions, and improve production readiness using established patterns.

Quick Start

Use the next-best-practices skill to review my Next.js codebase 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
How do I fix invalid React Server Component patterns in Next.js?

To fix invalid React Server Component patterns, you must correctly establish server boundaries and apply async APIs according to Next.js conventions. This ensures proper rendering and prevents client-side data fetching errors.

What is the best way to structure App Router routes in Next.js?

The best way to structure App Router routes is by following established Next.js architecture guidance for route handlers and runtime selection. This improves code organization and aligns with production deployment requirements.

How do I optimize Next.js application performance for production?

Optimize Next.js application performance by applying best practices for images, fonts, bundling, caching, and Suspense boundaries. These techniques enhance reliability and ensure applications meet production deployment requirements.

When do I need to use Client Components instead of Server Components?

You need to use Client Components instead of Server Components when your rendering patterns require client-side interactivity or browser-specific APIs. Establishing the correct React server boundaries ensures valid Next.js implementation.

How do I review my Next.js codebase for best practice violations?

Review your Next.js codebase by analyzing code structure, rendering patterns, and routing conventions against current best practices. This identifies implementation mistakes and suggests improvements for production readiness.