vercel-react-best-practices

Optimize React and Next.js code for performance best practices.

3|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/keystone-ui/react --skill vercel-react-best-practices-keystone-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/keystone-ui/react/tree/main/.cursor/skills/vercel-react-best-practices
Command: npx skills add https://github.com/keystone-ui/react --skill vercel-react-best-practices-keystone-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write, review, and refactor React and Next.js code for better performance, cleaner data flow, and more reliable agent-driven implementation. It focuses on preventing waterfalls, reducing bundle bloat, improving rendering efficiency, and avoiding common re-render and hydration pitfalls.

Core Features & Use Cases

  • Waterfall elimination: Reorder async work, parallelize independent fetches, and add Suspense boundaries to speed up initial paint.
  • Bundle optimization: Prefer direct imports, code splitting, deferred third-party loading, and user-intent preloading to reduce initial load costs.
  • Server and client performance: Apply caching, serialization minimization, SWR deduplication, and non-blocking server patterns to keep apps responsive.
  • React rendering best practices: Improve memoization, state updates, effect dependencies, and conditional rendering for smoother UI behavior.
  • Use case: Review a Next.js page that feels slow, identify the hidden sequential awaits and oversized imports, and rewrite it into a faster, production-ready version.

Quick Start

Ask me to audit a React or Next.js component for performance issues and suggest safe, best-practice refactors.

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 React data fetching waterfalls and speed up initial page paint?

To fix React data fetching waterfalls, reorder asynchronous work, parallelize independent fetches, and add Suspense boundaries to speed up initial paint and eliminate sequential loading delays.

What is the best way to reduce React bundle size and optimize third-party imports?

The best way to reduce React bundle size is to prefer direct tree-shakeable imports, apply code splitting, defer third-party loading, and use user-intent preloading to reduce initial load costs.

How do I optimize Next.js server rendering and avoid client-side fetching bottlenecks?

Optimize Next.js server rendering by applying caching, minimizing serialization, using SWR deduplication, and implementing non-blocking server patterns to keep applications responsive and fast.

Why does my React component re-render excessively and how can I improve memoization?

Excessive React component re-rendering is improved by applying better memoization, optimizing state updates, refining effect dependencies, and adjusting conditional rendering for smoother UI behavior.

Can I use this to audit an existing React or Next.js repository for performance issues?

Yes, you can audit an existing React or Next.js repository to identify hidden sequential awaits, oversized imports, and re-render pitfalls, then rewrite them into production-ready code.