react-best-practices-build

react-best-practices-build

🔗 View on GitHub: vercel-labs/agent-skills/packages/react-best-practices-build

🚀 Quick Installation

React and Next.js performance optimization guidelines from Vercel Engineering.

npx

npx skills add vercel-labs/agent-skills --skill react-best-practices-build

What It Does

Provides 40+ performance rules across 8 categories, prioritized by impact. Use this skill when:

  • Writing new React components or Next.js pages
  • Implementing data fetching (client or server-side)
  • Reviewing code for performance issues
  • Optimizing bundle size or load times

Performance Categories

Category Priority Focus
Eliminating Waterfalls 🔴 Critical Parallel data fetching, avoiding request chains
Bundle Size 🔴 Critical Code splitting, tree shaking, dependency optimization
Server-Side Performance 🟠 High SSR, streaming, edge caching
Client-Side Fetching 🟡 Medium-High SWR, React Query patterns, caching strategies
Re-render Optimization 🟡 Medium memo, useMemo, useCallback best practices
Rendering Performance 🟡 Medium Virtualization, list optimization
JS Micro-optimizations 🟢 Low-Medium Small runtime optimizations

Example Use Cases

"Review this React component for performance issues"
"Help me optimize this Next.js page"
"Check if I'm fetching data efficiently"
"Optimize my bundle size"

Part of Vercel Agent Skills

This skill is part of the vercel-labs/agent-skills collection — Vercel's official agent skills for AI coding assistants.

📚 Browse all skills | 🎓 Agent Skills Spec

About the author
Subin Park

Subin Park

Principal Designer | Ai-Driven UX Strategy Helping product teams deliver real impact through evidence-led design, design systems, and scalable AI workflows.

Ai for Pro

Curated AI workflows, prompts, and playbooks—for product designers who build smarter, faster, and with impact.

Ai for Pro - Curated AI workflows and Product Design guides—built for Product Designers, PMs, and design leaders.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Ai for Pro - Curated AI workflows and Product Design guides—built for Product Designers, PMs, and design leaders..

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.