vercel-react-best-practices

Analyze React and Next.js codebases against Vercel performance guidelines.

7|4|Updated Jun 7, 2025
One-click install
npx skills add https://github.com/lootlog/monorepo --skill vercel-react-best-practices-lootlog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/lootlog/monorepo/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/lootlog/monorepo --skill vercel-react-best-practices-lootlog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide provides a comprehensive set of React and Next.js performance optimization guidelines maintained by Vercel Engineering, to help teams write, review, and refactor code for superior performance.

Core Features & Use Cases

  • Broad coverage across waterfall elimination, bundle size, server-side performance, client data fetching, re-render optimization, rendering performance, JavaScript efficiency, and advanced patterns.
  • Practical rules and examples for real-world projects, enabling safer, faster code changes and maintainable improvements.
  • Guidance for both daily development tasks and automated refactoring prompts to sustain performance as apps grow.

Quick Start

Analyze a React/Next.js codebase and generate actionable performance improvements following the guidelines.

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 prevent data fetching waterfalls?

To optimize React and Next.js performance and prevent data fetching waterfalls, apply Vercel's best-practice guidelines covering server-side rendering, client data fetching, and bundle size reduction. These rules provide guardrails and validation to ensure safe, scalable improvements across your codebase.

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

The best way to reduce bundle size in a Next.js application is to apply targeted optimization rules that enforce concrete guardrails across JavaScript efficiency and bundle optimization. This approach prevents bloat and ensures scalable performance as your project grows.

How do I eliminate unnecessary re-renders in React components?

To eliminate unnecessary re-renders in React components, follow specific optimization patterns that enforce rules for rendering performance and client-side data fetching. These guidelines provide validation and error handling to maintain optimal component rendering behavior.

Does this approach support both server-side and client-side rendering optimization?

Yes, this approach supports both server-side and client-side rendering optimization by enforcing concrete rules across eight priority areas. It covers Next.js pages, React components, and data fetching to safely balance server and client rendering workloads.

Can I use these best practices to refactor an existing React codebase for performance?

Yes, you can use these best practices to refactor an existing React codebase by applying automated refactoring prompts and practical rules. The guidelines include guardrails and error handling to ensure maintainable, safe performance improvements for real-world projects.

What are the limitations of applying Vercel's best-practice guidelines to React projects?

The guidelines focus specifically on React and Next.js environments, applying concrete rules across eight priority areas like waterfall elimination and bundle size. Limitations arise when adapting these specialized patterns to non-React frameworks or unsupported rendering environments.