next-best-practices

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

13|2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/RipeSeed/rs-tunnel --skill next-best-practices-ripeseed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/RipeSeed/rs-tunnel/tree/main/.agents/skills/next-best-practices
Command: npx skills add https://github.com/RipeSeed/rs-tunnel --skill next-best-practices-ripeseed

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on implementing Next.js best practices, ensuring efficient, maintainable, and performant web applications.

Core Features & Use Cases

  • File Conventions: Understand project structure, routing, and special file roles.
  • RSC Boundaries: Detect and prevent invalid patterns across Server and Client Components.
  • Data Patterns: Choose the right data fetching strategy (Server Components, Server Actions, Route Handlers).
  • Optimization: Learn best practices for image, font, and bundling.
  • Use Case: A developer is unsure about the correct way to fetch data in a new Next.js 15+ application and wants to ensure they are following modern conventions for performance and maintainability.

Quick Start

Review the best practices for handling data fetching in Next.js.

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 fetch data in Next.js Server Components?

The best way to fetch data in Next.js Server Components is using async server components to ensure efficient, maintainable, and performant web applications. You can also leverage Server Actions or Route Handlers depending on the specific data mutation or fetching pattern required.

How do React Server Component boundaries affect project structure?

React Server Component boundaries define where server and client code executes. Understanding these boundaries helps detect and prevent invalid patterns across components, ensuring correct routing and adherence to special file role conventions within your application.

When should I use Server Actions vs Route Handlers in Next.js?

Use Server Actions for mutations and data submission directly tied to UI components, while Route Handlers handle API endpoints. Choosing the right data pattern ensures efficient, maintainable, and performant application development in Next.js.

How do I optimize images and fonts for Next.js bundling?

Optimize images and fonts for Next.js bundling by following specific optimization techniques. These best practices ensure your web application remains efficient and performant across different runtime selections and file conventions.

Can I use async server components with Next.js 15 features?

Yes, you can use async server components with Next.js 15 features. This Skill provides expert guidance on modern Next.js capabilities, including async server components, Server Actions, and route handlers for maintainable application development.