vercel-react-best-practices

Identify and apply React/Next.js performance best practices for rendering, data fetching, and bundle size.

Updated Jun 15, 2025
One-click install
npx skills add https://github.com/patrickhaahr/dotfiles --skill vercel-react-best-practices-patrickhaahr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/patrickhaahr/dotfiles/tree/main/opencode/.config/opencode/skills/vercel-react-best-practices
Command: npx skills add https://github.com/patrickhaahr/dotfiles --skill vercel-react-best-practices-patrickhaahr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React/Next.js projects often suffer from performance regressions due to suboptimal data fetching, rendering, and bundle patterns. This Skill codifies best practices to optimize startup time, hydration, and runtime performance, guiding both code writers and reviewers.

Core Features & Use Cases

  • Guided patterns for eliminating waterfalls, reducing bundle size, and parallel data fetching in React Server Components and Client components.
  • Code review and refactoring prompts to spot anti-patterns in pages, routes, and components.
  • Automation-friendly rules that can be translated into actionable tasks for AI agents to implement in codebases.

Quick Start

Use the skill to audit a React/Next.js page and generate a prioritized improvement plan describing needed changes and where to apply them.

Frequently Asked Questions about vercel-react-best-practices

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

FAQPage Schema
How do I optimize React and Next.js performance for server components and client boundaries?

To optimize React and Next.js performance, apply best practices like eliminating data waterfalls, parallel fetching, and code-splitting across server and client components to reduce bundle size and hydration time. This involves auditing pages and refactoring routes to minimize serialization.

What is the best way to reduce bundle size in a Next.js application?

The best way to reduce Next.js bundle size is through code-splitting and applying refactoring patterns that minimize serialization. Auditing your React components and routes helps identify anti-patterns, allowing you to generate a prioritized improvement plan for smaller bundles.

How do I eliminate data waterfalls when fetching data in React Server Components?

To eliminate data waterfalls in React Server Components, implement parallel data fetching patterns. Refactoring your data fetching logic prevents sequential blocking, improving startup time and overall runtime performance across your Next.js pages and API routes.

Can I use automated refactoring prompts to fix React rendering anti-patterns?

Yes, you can use automation-friendly rules and refactoring prompts to spot and fix React rendering anti-patterns. These rules translate into actionable tasks for AI agents to implement codebase changes, targeting components, pages, and API routes directly.

Why does my Next.js page suffer from slow hydration and rendering performance?

Slow Next.js hydration and rendering often stem from suboptimal data fetching, large bundle sizes, and heavy serialization. Auditing your React components for anti-patterns and applying code-splitting alongside parallel data fetching resolves these performance regressions.