vercel-react-best-practices

Codify React and Next.js performance optimization rules for code review and generation.

1|Updated Feb 13, 2025
One-click install
npx skills add https://github.com/Aniket-a14/Wizard-w1 --skill vercel-react-best-practices-aniket-a14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Aniket-a14/Wizard-w1/tree/main/.gemini/skills/vercel-react-best-practices
Command: npx skills add https://github.com/Aniket-a14/Wizard-w1 --skill vercel-react-best-practices-aniket-a14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates proven performance optimization practices for React and Next.js, helping teams avoid common bottlenecks and runtime regressions by following standardized guidelines.

Core Features & Use Cases

  • Comprehensive rules-based guidance covering 57 optimization rules across 8 categories.
  • Applies to writing new React components, reviewing/refactoring code, and troubleshooting performance issues in production.
  • Use cases include reducing waterfalls, cutting bundle size, improving SSR/CSR patterns, and accelerating data-fetching.

Quick Start

Identify a page or component, then apply the guidelines to reduce render time and bundle size, such as optimizing data fetching, Suspense boundaries, and server/client caching.

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 to reduce runtime bottlenecks?

To optimize React and Next.js performance, apply standardized coding patterns for data-fetching, server/client boundaries, and Suspense to reduce waterfalls and runtime bottlenecks. This involves following specific rules to improve SSR/CSR patterns and accelerate data fetching.

What are the best practices for reducing bundle size in Next.js?

Best practices for reducing bundle size involve applying component and route-level guidelines to optimize server/client boundaries and data-fetching strategies. This minimizes client-side JavaScript and improves overall SSR/CSR performance.

How does Suspense work for data fetching optimization in React?

Suspense optimizes data fetching in React by establishing boundaries that prevent waterfalls and streamline SSR/CSR patterns. Implementing these boundaries correctly reduces render time and improves data-fetching acceleration across components.

Can I use these React performance guidelines for automated code review?

Yes, you can use these React performance guidelines for automated code review. The skill codifies 57 optimization rules across 8 categories specifically to satisfy requirements for automated code review and code generation.

Do I need to configure server-actions to improve React performance?

Configuring server-actions is part of improving React performance when optimizing data-fetching and server/client boundaries. Proper implementation of server-actions helps reduce waterfalls and accelerate data fetching in Next.js.