vercel-react-best-practices

Identify React/Next.js performance bottlenecks and propose concrete improvements.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mohamed-g-shoaib/rootly --skill vercel-react-best-practices-mohamed-g-shoaib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/mohamed-g-shoaib/rootly/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/mohamed-g-shoaib/rootly --skill vercel-react-best-practices-mohamed-g-shoaib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides centralized, actionable guidelines to improve React and Next.js performance, reducing runtime latency, bundle size, and re-renders across production apps.

Core Features & Use Cases

  • Comprehensive rules across 8 categories (Eliminating Waterfalls, Bundle Size, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, Advanced Patterns) to guide engineers and automation.
  • Practical examples, trade-offs, and safe defaults for common patterns like pages, components, server actions, and data-fetching strategies.
  • Supports code review, refactoring, and automated generation of high-performance code consistent with modern Next.js patterns.

Quick Start

Ask it to generate a concrete refactor plan for a React/Next.js project using these 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 identify React performance bottlenecks in a Next.js project?

To identify React performance bottlenecks, evaluate server and client data fetching, rendering optimizations, and bundle-size reductions across pages, components, routes, and API handlers to pinpoint runtime latency and re-render issues.

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

The best way to reduce bundle size involves analyzing your pages and components to apply safe refactoring with concrete improvements, eliminating unnecessary code waterfalls while preserving existing behavior and enforcing validation.

How do I optimize server-side data fetching in Next.js without breaking existing behavior?

Optimizing server-side data fetching requires enforcing safe refactoring with validation and testable steps, eliminating waterfalls across pages, routes, and API handlers while preserving existing behavior in your Next.js project.

Does this approach to React optimization work for both client-side and server-side rendering?

Yes, this optimization approach covers both client-side data fetching and server-side performance, providing practical examples and trade-offs for common patterns like pages, components, and server actions in Next.js.

What are the limitations of refactoring React components for re-render optimization?

The limitation of refactoring for re-render optimization is that changes must preserve existing behavior through validation and testable steps, ensuring safe refactoring without introducing runtime latency or breaking component functionality.

Can I generate a concrete refactor plan for my React and Next.js project?

Yes, you can generate a concrete refactor plan for your React and Next.js project by applying comprehensive rules across 8 categories, including rendering performance, bundle size, and advanced patterns, to guide code review and refactoring.