next-best-practices

Applies Next.js App Router conventions for RSC boundaries, data fetching, metadata, and error handling.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Alwahdi/mikrotik-whisperer --skill next-best-practices-alwahdi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/Alwahdi/mikrotik-whisperer/tree/main/.agents/skills/next-best-practices
Command: npx skills add https://github.com/Alwahdi/mikrotik-whisperer --skill next-best-practices-alwahdi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Next.js 15+ introduced breaking changes like async request APIs, stricter Server/Client Component boundaries, and renamed middleware, making it easy to write code that fails at build time, causes hydration errors, or silently degrades performance. ## Core Features & Use Cases - RSC Boundary Validation: Detects invalid patterns like async client components and non-serializable props (Date, Map, class instances) passed across the server/client boundary. - Data Pattern Guidance: Helps choose between Server Components, Server Actions, and Route Handlers, and eliminates data waterfalls with Promise.all, Suspense, and preload patterns. - Optimization Rules: Covers next/image, next/font, next/script, metadata/OG image generation, bundling fixes, and self-hosting with standalone output and cache handlers. - Use Case: When reviewing a Next.js page that fetches data sequentially and passes a Date object to a client component, apply this Skill to refactor it into parallel server-side fetches with serialized props. ## Quick Start Review my Next.js page component and fix any violations of App Router best practices including async params, RSC boundaries, and data fetching patterns.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
Does Next.js middleware still work in version 16?

In Next.js 16, middleware.ts is renamed to proxy.ts with the same capabilities. The exported function becomes proxy() and the config export becomes proxyConfig, and you can migrate automatically with the official codemod.