vercel-react-best-practices

Applies Vercel performance optimization rules when writing and refactoring React and Next.js code.

482|31|Updated Jul 9, 2026
One-click install
npx skills add https://github.com/appica-dev/appica-ui --skill vercel-react-best-practices-appica-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/appica-dev/appica-ui/tree/main/.claude/skills/react-best-practices
Command: npx skills add https://github.com/appica-dev/appica-ui --skill vercel-react-best-practices-appica-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? React and Next.js codebases often suffer from performance issues like async waterfalls, bloated bundles, unnecessary re-renders, and inefficient data fetching. This Skill provides 70 prioritized, impact-rated rules from Vercel Engineering so AI agents and developers consistently apply proven optimization patterns when writing, reviewing, or refactoring code. ## Core Features & Use Cases - Prioritized Rule Set: 70 rules across 8 categories ranked by impact, from CRITICAL (eliminating waterfalls, bundle size) to LOW (advanced patterns), each with incorrect vs. correct code examples. - Structured Rule Files: Individual rule files under rules/ with frontmatter metadata (title, impact, tags), plus a compiled AGENTS.md containing the full guide. - Use Case: When refactoring a Next.js page that fetches user, posts, and comments sequentially, apply the async-parallel rule to convert the awaits into a single Promise.all(), cutting three round trips down to one. ## Quick Start Ask the agent to review your React component or Next.js page for performance issues using the Vercel React best practices rules.

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 with these rules?

Reference the rules when writing, reviewing, or refactoring React components and Next.js pages. Start with CRITICAL categories like eliminating waterfalls with Promise.all() and avoiding barrel file imports, then apply lower-priority rules for re-renders and rendering.

What performance areas do the Vercel React best practices cover?

The guide covers 8 categories: eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns. Each rule includes incorrect and correct code examples.

Does this work with Next.js Server Actions and React Server Components?

Yes, several rules target Next.js specifically, including authenticating Server Actions like API routes, avoiding duplicate serialization in RSC props, per-request deduplication with React.cache(), and using next/dynamic for heavy components.

When should I not use Suspense boundaries for data fetching?

Avoid Suspense boundaries for critical data needed for layout decisions, SEO-critical above-the-fold content, small fast queries where overhead is not worth it, or when you want to prevent layout shift between loading and loaded states.

Why do barrel file imports slow down React apps?

Barrel files re-export thousands of modules, so importing from libraries like lucide-react or @mui/material can load over 1,500 modules and cost 200-800ms per cold start. Next.js 13.5+ optimizePackageImports or direct path imports eliminate this cost.