vercel-labs avatar

React Best Practices

Triggers automatically after you edit TSX files to run through a quality checklist covering component structure, hooks usage, accessibility, and performance patterns. Built around Vercel's 64-rule React guide, organized by impact from critical (eliminating waterfalls, bundle optimization) down to micro-optimizations. The validation layer is smart enough to flag legacy CSS-in-JS libraries like styled-components or MUI and suggest migrating to shadcn with Tailwind. Honestly most useful for catching the medium-priority stuff you know you should do but forget in the moment, like hoisting static props or using functional setState. References the official React docs and supports common component directory structures out of the box.

skills.sh installs
721
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel-labs/vercel-plugin --skill react-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Vercel React Best Practices

Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 70 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new React components or Next.js pages
  • Implementing data fetching (client or server-side)
  • Reviewing code for performance issues
  • Refactoring existing React/Next.js code
  • Optimizing bundle size or load times

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Eliminating WaterfallsCRITICALasync-
2Bundle Size OptimizationCRITICALbundle-
3Server-Side PerformanceHIGHserver-
4Client-Side Data FetchingMEDIUM-HIGHclient-
5Re-render OptimizationMEDIUMrerender-
6Rendering PerformanceMEDIUMrendering-
7JavaScript PerformanceLOW-MEDIUMjs-
8Advanced PatternsLOWadvanced-

Quick Reference

1. Eliminating Waterfalls (CRITICAL)

Sponsors

Details

Repository
github.com/vercel-labs/vercel-plugin
Categories
Frontend Development, Cloud & Infrastructure
First seen
May 16, 2026

More from vercel-labs/vercel-plugin

All 32
1alinaqi avatarsupabase-nextjsalinaqi/claude-bootstrapsupabase nextjs651skills.sh installs
2vercel avatarnextjsvercel/vercel-pluginnextjs629skills.sh installs
3dylantarre avatarfrontend-developerdylantarre/animation-principlesUse when implementing animations in code, building UI transitions, or when a developer needs practical animation guidance for web/mobile applications.605skills.sh installs
4auth0 avatarauth0-nuxtauth0/agent-skillsUse when adding Auth0 login, logout, session management, or protected routes to a Nuxt 3 or Nuxt 4 application. Integrates @auth0/auth0-nuxt — use even if the u594skills.sh installs
5claude-skills avatarsveltekit-svelte5-tailwind-skillclaude-skills/sveltekit-svelte5-tailwind-skillsveltekit svelte5 tailwind skill586skills.sh installs
6sickn33 avatarfrontend-slidessickn33/antigravity-awesome-skillsfrontend slides553skills.sh installs