vercel-react-best-practices

Provide 57 performance optimization rules for React and Next.js applications.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/rchiarino/AgentHarmony --skill vercel-react-best-practices-rchiarino
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/rchiarino/AgentHarmony/tree/main/.opencode/skills/vercel-react-best-practices
Command: npx skills add https://github.com/rchiarino/AgentHarmony --skill vercel-react-best-practices-rchiarino

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother user experiences, and more efficient code.

Core Features & Use Cases

  • Performance Optimization: Provides 57 rules across 8 categories, from critical waterfall elimination to advanced patterns.
  • Code Refactoring Guidance: Offers concrete examples of incorrect vs. correct implementations for AI agents and developers.
  • Bundle Size Reduction: Details strategies for minimizing JavaScript bundle size.
  • Server-Side Efficiency: Covers techniques for optimizing data fetching and rendering on the server.
  • Use Case: When developing a new feature in a Next.js app, use this Skill to ensure all data fetching is parallelized and that components are optimized to prevent unnecessary re-renders.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component code for optimal performance.

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 application performance?

Optimize React and Next.js performance by applying 57 prioritized rules across 8 categories, including waterfall elimination, bundle size reduction, and server-side rendering. These guidelines provide concrete incorrect versus correct code examples for automated refactoring.

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

Reduce JavaScript bundle size in Next.js by applying targeted optimization rules that provide specific strategies for minimizing code. The guidelines offer concrete code refactoring examples to help developers and AI agents implement efficient bundle reduction patterns.

How do I eliminate data fetching waterfalls in React?

Eliminate data fetching waterfalls in React by parallelizing data requests using the optimization guidelines provided. The rules detail how to structure client-side and server-side fetching to prevent sequential loading bottlenecks and improve load times.

Why does my React component re-render unnecessarily and how do I fix it?

React components re-render unnecessarily due to unoptimized state and prop management. Fix this by applying the re-render optimization rules, which provide incorrect versus correct code examples to help structure components for efficient rendering performance.

Does this React optimization skill work with existing Next.js codebases?

Yes, the skill works with existing Next.js codebases by providing automated refactoring guidance for AI agents. It includes over 50 rules with detailed explanations and code examples designed to analyze and improve current implementations without requiring a rewrite.

When should I not use server-side rendering for data fetching?

You should evaluate server-side rendering limitations when client-side data fetching would provide smoother user experiences. The skill's 8 categories cover both server-side and client-side data fetching patterns, detailing when each approach best optimizes performance.