vercel-react-best-practices

Optimize React and Next.js performance with prioritized rules for code generation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires next, react, swr, better-all, lodash, ramda, date-fns, rxjs, react-use, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers optimize React and Next.js applications by providing AI-assisted guidelines for performance best practices.

Core Features & Use Cases

  • Performance Optimization: Offers over 70 rules across 8 categories, prioritized by impact, to guide automated refactoring and code generation.
  • Rule Categorization: Categorizes rules by impact level (CRITICAL, HIGH, MEDIUM, LOW-MEDIUM, LOW) and area (Eliminating Waterfalls, Bundle Size Optimization, etc.).
  • Quick Reference: Provides a quick reference of rules for immediate application.
  • Detailed Explanation: Includes detailed explanations, incorrect vs. correct code examples, and impact metrics.
  • Use Case: Use this Skill when developing new React components or Next.js pages, implementing data fetching, reviewing code for performance issues, refactoring existing code, or optimizing bundle size and load times.

Quick Start

Run the 'build' command in the root directory to generate the 'AGENTS.md' file with all rules.

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 during code generation?

To optimize React and Next.js performance, this Skill provides over 70 AI-assisted guidelines across 8 categories, including eliminating waterfalls, bundle size optimization, and server-side performance, to guide automated refactoring.

What are the best practices for reducing bundle size in Next.js applications?

Best practices for reducing bundle size involve applying categorized performance rules prioritized by impact level, which provide detailed incorrect versus correct code examples to improve load times in Next.js applications.

How do I eliminate data fetching waterfalls in React components?

To eliminate data fetching waterfalls in React, you apply CRITICAL and HIGH impact performance rules that offer specific patterns for client-side data fetching and re-render optimization.

Do I need specific Node.js packages to use these React performance rules?

Yes, you need Node.js installed along with specific dependencies like Next.js, React, SWR, and lodash to build and validate the rule files required for generating the performance guidelines.

How do I generate the quick reference file for React performance rules?

You generate the quick reference file by running the build command in the root directory, which produces an AGENTS.md file containing all the prioritized performance rules for immediate application.