next-best-practices

Guide Next.js development with file conventions, RSC boundaries, and data patterns.

6|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/alonronin/mishmarbechirot --skill next-best-practices-alonronin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/alonronin/mishmarbechirot/tree/main/.claude/skills/next-best-practices
Command: npx skills add https://github.com/alonronin/mishmarbechirot --skill next-best-practices-alonronin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures developers adhere to optimal patterns and conventions within the Next.js framework, leading to more robust, maintainable, and performant applications.

Core Features & Use Cases

  • File Conventions: Understand project structure, route segments, and special files.
  • RSC Boundaries: Detect and prevent invalid Server Component patterns and non-serializable props.
  • Data Patterns: Choose the right pattern (Server Components, Server Actions, Route Handlers) for data fetching and mutations.
  • Error Handling: Implement effective error boundaries and navigation error handling.
  • Optimization: Apply best practices for image, font, and script optimization.
  • Use Case: A developer is unsure about the correct way to pass data between Server and Client Components or how to handle API routes. This Skill provides clear guidelines and examples to resolve these ambiguities.

Quick Start

Review the file conventions for Next.js applications.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
What's the best way to pass data between React Server Components and Client Components in Next.js?

The best way to pass data across RSC boundaries in Next.js is to ensure props are serializable. This Skill detects invalid Server Component patterns and non-serializable props, providing clear guidelines to prevent common boundary errors.

How do I choose between Server Components, Server Actions, and Route Handlers for data fetching?

Choosing the right data fetching pattern in Next.js depends on your mutation needs. This Skill outlines when to use Server Components, Server Actions, or Route Handlers to handle data fetching and mutations optimally.

How do I handle errors and navigation errors in Next.js applications?

Handling Next.js errors requires effective error boundaries and navigation error strategies. This Skill provides structured guidance on implementing these patterns to improve application robustness and maintainability.

When do I need specific file conventions and route segments in Next.js?

You need Next.js file conventions to structure project directories, route segments, and special files correctly. This Skill helps you understand and apply these structural standards for better developer efficiency.

How do I apply image, font, and script optimization techniques in Next.js?

Applying Next.js optimization involves following specific best practices for images, fonts, and scripts. This Skill enforces these modern standards to help you achieve improved application performance and quality.