next-best-practices

Guide Next.js development with best practices for file conventions and data fetching.

Updated Sep 8, 2025
One-click install
npx skills add https://github.com/FernaandoJr/oikwee --skill next-best-practices-fernaandojr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-best-practices
Source: https://github.com/FernaandoJr/oikwee/tree/main/.agents/skills/next-best-practices
Command: npx skills add https://github.com/FernaandoJr/oikwee --skill next-best-practices-fernaandojr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing robust and efficient Next.js applications, covering everything from file conventions to advanced deployment strategies.

Core Features & Use Cases

  • Code Quality: Enforces React Server Component boundaries, optimal data fetching patterns, and error handling.
  • Performance Optimization: Guides on image and font optimization, bundling, and runtime selection.
  • Development Workflow: Offers debugging tricks and insights into routing and directives.
  • Use Case: A developer is unsure about the correct way to handle data fetching in a new Next.js project, or how to optimize image loading for better performance. This Skill provides clear, actionable advice.

Quick Start

Review the best practices for Next.js image optimization.

Frequently Asked Questions about next-best-practices

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

FAQPage Schema
What is the best way to handle data fetching in Next.js?

The best way to handle data fetching in Next.js involves using optimal data fetching patterns that respect React Server Component boundaries. This Skill provides actionable advice on fetching data efficiently within your application architecture.

How do I optimize images and fonts in Next.js?

To optimize images and fonts in Next.js, you should follow specific performance best practices for asset loading. This Skill guides you through proper image and font optimization techniques to ensure efficient bundling and delivery.

How do I manage React Server Component boundaries in Next.js?

Managing React Server Component boundaries in Next.js requires understanding component directives and runtime selection. This Skill enforces code quality by clarifying these boundaries and offering clear structural guidance.

When do I need suspense boundaries and error handling in Next.js routing?

You need suspense boundaries and error handling in Next.js routing to manage loading states and unexpected failures gracefully. This Skill covers these patterns alongside parallel and intercepting routes to ensure robust application behavior.

Does this Next.js guide cover self-hosting and debugging tricks?

Yes, this Next.js guide covers self-hosting strategies and debugging tricks. It provides comprehensive best practices for deployment and troubleshooting hydration errors to streamline your development workflow.

What are the limitations when using parallel and intercepting routes in Next.js?

When using parallel and intercepting routes in Next.js, limitations often arise from complex routing conventions and hydration errors. This Skill helps navigate these constraints by explaining route handlers and file conventions clearly.