vercel-react-best-practices

Apply Vercel performance rules to React and Next.js code.

6.8k|508|Updated Apr 26, 2025
One-click install
npx skills add https://github.com/stagewise-io/stagewise --skill vercel-react-best-practices-stagewise-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/stagewise-io/stagewise/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/stagewise-io/stagewise --skill vercel-react-best-practices-stagewise-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common performance pitfalls in React and Next.js development, ensuring applications are fast, efficient, and provide a smooth user experience.

Core Features & Use Cases

  • Performance Optimization: Provides over 50 rules covering waterfalls, bundle size, rendering, and more.
  • Agent-Assisted Refactoring: Guides AI agents in writing, reviewing, and refactoring React/Next.js code for optimal performance.
  • Use Case: When developing a new feature, consult this Skill to ensure data fetching is efficient, component re-renders are minimized, and the initial load time is as fast as possible.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component for improved 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 for data fetching and rendering?

To optimize React and Next.js performance, apply guidelines covering the elimination of data fetching waterfalls, bundle size reduction, and server-side rendering improvements to ensure fast initial load times.

What are the best practices for reducing bundle size and re-renders in Next.js applications?

Best practices for reducing bundle size and re-renders involve following specific rules for JavaScript performance and rendering optimization, minimizing unnecessary component re-renders and shrinking the initial payload.

How do I refactor React components to eliminate data waterfalls and improve load times?

To eliminate data waterfalls and improve load times, refactor React components by applying advanced patterns and client-side data fetching rules that ensure efficient sequential or parallel data retrieval.

Does this React optimization skill work for both writing new features and reviewing existing code?

Yes, this React optimization skill works for both writing new features and reviewing existing code, providing over 50 rules to guide AI agents in refactoring applications for optimal performance patterns.

What is the best way to handle server-side performance optimization in Next.js?

The best way to handle server-side performance optimization in Next.js is to follow dedicated rules for server-side execution and advanced patterns, ensuring efficient data processing and minimal latency.

When should I use advanced patterns for React performance optimization?

Use advanced patterns for React performance optimization when basic rendering and data fetching adjustments are insufficient, requiring deeper structural refactoring to resolve complex waterfalls and JavaScript bottlenecks.