React best practices

From tdimino/claude-code-minoan · View interactive version

React best practices is an AI agent skill from the GitHub repository tdimino/claude-code-minoan. Apply React and Next.js performance optimization guidelines from Vercel Engineering — 40+ rules covering components, data fetching, bundle optimization, and rendering. Triggers on React components, Next.js pages, bundle optimization, performance improvements, refactoring React code.

How to use this skill

Skill file

React Best Practices

Overview

Comprehensive performance optimization guide for React and Next.js applications, containing 40+ rules across 8 categories. Rules are prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

Priority-Ordered Guidelines

Rules are prioritized by impact:

| Priority | Category | Impact |

|----------|----------|--------|

| 1 | Eliminating Waterfalls | CRITICAL |

| 2 | Bundle Size Optimization | CRITICAL |

| 3 | Server-Side Performance | HIGH |

| 4 | Client-Side Data Fetching | MEDIUM-HIGH |

| 5 | Re-render Optimization | MEDIUM |

| 6 | Rendering Performance | MEDIUM |

| 7 | JavaScript Performance | LOW-MEDIUM |

| 8 | Advanced Patterns | LOW |

Quick Reference

Critical Patterns (Apply First)

Eliminate Waterfalls:

Reduce Bundle Size:

High-Impact Server Patterns

Medium-Impact Client Patterns

Rendering Patterns

JavaScript Patterns

References

Full documentation with code examples is available in:

To look up a specific pattern, grep the references:

grep -l "suspense" references/
grep -l "barrel" references/
grep -l "swr" references/
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.