vercel-react-best-practices

Optimize React and Next.js data fetching and bundle size in code reviews.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/BEIRUX/agent-skills --skill vercel-react-best-practices-beirux
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/BEIRUX/agent-skills/tree/main/vercel-react-best-practices
Command: npx skills add https://github.com/BEIRUX/agent-skills --skill vercel-react-best-practices-beirux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, agent-friendly rulebook to identify and fix common performance regressions in React and Next.js codebases, including waterfalls, excessive serialization, and oversized bundles.

Core Features & Use Cases

  • Prioritized Rules: 58 actionable rules across 8 categories (eliminating waterfalls, bundle size, server performance, client data, re-renders, rendering, JavaScript, advanced patterns) with impact ratings.
  • Concrete Examples: Clear incorrect vs correct patterns and practical refactor guidance designed for automated code review and programmatic refactoring by LLMs and agents.
  • Operational Guidance: Applies to code reviews, automated refactors, component/page generation, server action security, caching strategies, and bundle import optimization for production apps.

Quick Start

Ask the skill to audit a Next.js page and return a prioritized list of fixes to reduce bundle size, eliminate waterfalls, and improve server/client data fetching.

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 fix data fetching waterfalls in Next.js and React?▼

To fix data fetching waterfalls in Next.js and React, apply concrete rules for async parallelization and server/client fetching strategies. This eliminates sequential data dependencies and reduces payload size and time-to-interactive in production applications.

What is the best way to reduce bundle size in a React application?▼

The best way to reduce bundle size in a React application is to apply targeted bundle import strategies and optimize server/client data fetching. Utilizing concrete examples of incorrect versus correct patterns helps eliminate oversized bundles and improve rendering performance.

How do I audit my Next.js codebase for performance regressions?▼

You audit a Next.js codebase for performance regressions by running a structured rulebook against your code. This generates a prioritized list of 58 actionable fixes across 8 categories, including bundle size, server performance, and rendering optimizations.

Does this approach work for optimizing server actions and caching strategies?▼

Yes, this approach works for optimizing server actions and caching strategies. It provides operational guidance for server action security, caching mechanisms, and serialization to prevent excessive data transfer and improve server-side rendering performance.

Can I use these rules for automated programmatic refactoring by LLMs?▼

Yes, you can use these rules for automated programmatic refactoring by LLMs. The rules are designed as an agent-friendly rulebook with clear incorrect versus correct patterns, specifically structured for automated code review and programmatic refactoring tasks.

When should I not use client-side data fetching in Next.js?▼

You should avoid client-side data fetching in Next.js when it causes excessive serialization, oversized bundles, or rendering waterfalls. Transitioning to server-side fetching and caching strategies reduces payload size and improves time-to-interactive metrics.