vercel-react-best-practices

Apply rule-based React/Next.js performance patterns to codebases.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/loagma/LoagmaPMS --skill vercel-react-best-practices-loagma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/loagma/LoagmaPMS/tree/main/.claude/skills/vercel-react-best-practices
Command: npx skills add https://github.com/loagma/LoagmaPMS --skill vercel-react-best-practices-loagma

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often suffer from performance pitfalls such as long render times, large bundles, and inefficient data-fetching patterns. This guide provides a structured set of proven optimization patterns to improve load times, interactivity, and resource efficiency.

Core Features & Use Cases

  • 8 categories of rules covering waterfalls, bundle size, server-side, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns.
  • Useful for writing new components, reviewing code, and refactoring existing Next.js apps to meet performance targets.
  • Real-world scenarios include reducing bundle size in large Next.js apps, eliminating waterfalls in data fetching, and speeding server actions and rendering.

Quick Start

Audit a React/Next.js project against the guide and implement applicable rules to improve performance.

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 when refactoring an existing codebase?

To optimize React and Next.js performance, apply rule-based patterns across eight categories including data fetching, bundle size, and rendering. You audit existing components against structured guidelines to eliminate waterfalls and reduce load times.

What's the best way to reduce bundle size in a large Next.js application?

To reduce bundle size in Next.js, apply best-practice guidelines targeting client-side JavaScript performance and server-side data fetching. Structured refactoring patterns help identify inefficient imports and optimize resource loading for better interactivity.

How do I eliminate data fetching waterfalls in React components?

Eliminate data fetching waterfalls by applying structured server-side and client-side optimization patterns. These rules guide you in restructuring asynchronous fetches to prevent sequential blocking, improving overall load and render times.

Can I use these optimization rules to review and generate new React code?

Yes, you can use these best-practice rules for writing new components, reviewing code, and refactoring Next.js pages. The structured patterns with priorities and examples enable automated refactoring and code generation for performance targets.

What are the limitations of rule-based patterns for React performance optimization?

Rule-based React performance optimization patterns focus on known scenarios like re-rendering and bundle size but may not cover highly custom architectures. They provide structured guidelines for common pitfalls rather than dynamic runtime profiling.

Why does my Next.js app suffer from long render times and how can I fix it?

Long render times in Next.js often stem from inefficient server-side rendering and re-rendering patterns. Fix them by applying structured best-practice rules for rendering performance and advanced data fetching optimizations.