Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

react-best-practices

Skill by sickn33

React Best Practices is a performance guide for React and Next.js applications, with 45 rules across 8 categories. It is for developers writing components or pages, implementing data fetching, or reviewing code for performance issues.

  • Score 93
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install react-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/plugins/agentic-bundle-web-app/skills/react-best-practices ~/.claude/skills/react-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install react-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

React Best Practices is a skill that gives an AI assistant a performance optimization guide for React and Next.js applications. It is adapted from Vercel's published guidance and contains 45 rules across 8 categories, ordered by impact. The rules cover waterfalls, bundle size, server-side performance, client data fetching, re-renders, rendering, JavaScript and advanced patterns.

Each rule has its own file with an explanation, an incorrect code example and a correct one. The skill is meant for writing new components or pages, implementing data fetching, reviewing code for performance issues, and refactoring. Its guidance says to profile a concrete bottleneck and validate one change at a time.

Written from the project's SKILL.md and checked against it.

What it can do

  • Eliminating waterfallsCovers Promise.all for independent operations, deferred awaits, and Suspense to stream content.
  • Bundle size optimizationCovers direct imports instead of barrel files, next/dynamic, and deferring third-party scripts.
  • Server-side performanceCovers React.cache, LRU caching, minimizing data sent to client components, and after().
  • Client-side data fetchingCovers SWR request deduplication and deduplicating global event listeners.
  • Re-render optimizationCovers memoization, primitive effect dependencies, functional setState, and startTransition.
  • Rendering performanceCovers content-visibility for long lists, hoisting static JSX, and avoiding theme flicker on hydration.
  • JavaScript performanceCovers Set and Map lookups, cached storage reads, combined iterations, and toSorted().
  • Advanced patternsCovers storing event handlers in refs and useLatest for stable callback refs.

What you need

  • A React or Next.js codebase to review or edit

Try asking

  • Review this Next.js page for data fetching waterfalls
  • Find unnecessary re-renders in this React component
  • Suggest bundle size fixes for heavy imports in this app

Good to know

  • Use only when the task clearly matches the scope of the guide.
  • Not a substitute for environment-specific validation, testing, or expert review.
  • Impact levels and historical timing numbers are priorities, not guaranteed measurements.
  • No deployments or analytics transmission are authorized by this guide.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/agentic-bundle-web-app/skills/react-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AGENTS.md56 KB
  • README.md1 KB
  • SKILL.md6 KB
  • metadata.json641 B
  • rules/_sections.md2 KB
Show all 51 files
  • rules/_template.md631 B
  • rules/advanced-event-handler-refs.md2 KB
  • rules/advanced-use-latest.md1 KB
  • rules/async-api-routes.md1 KB
  • rules/async-defer-await.md2 KB
  • rules/async-dependencies.md1 KB
  • rules/async-parallel.md874 B
  • rules/async-suspense-boundaries.md3 KB
  • rules/bundle-barrel-imports.md1012 B
  • rules/bundle-conditional.md1014 B
  • rules/bundle-defer-third-party.md1 KB
  • rules/bundle-dynamic-imports.md1 KB
  • rules/bundle-preload.md1 KB
  • rules/client-event-listeners.md2 KB
  • rules/client-swr-dedup.md1 KB
  • rules/js-batch-dom-css.md2 KB
  • rules/js-cache-function-results.md2 KB
  • rules/js-cache-property-access.md638 B
  • rules/js-cache-storage.md2 KB
  • rules/js-combine-iterations.md753 B
  • rules/js-early-exit.md1 KB
  • rules/js-hoist-regexp.md1 KB
  • rules/js-index-maps.md1 KB
  • rules/js-length-check-first.md2 KB
  • rules/js-min-max-loop.md2 KB

And 21 more files on GitHub.

Alternatives to react-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

react-best-practices: common questions

What does the React Best Practices skill cover?

It covers performance optimization for React and Next.js, grouped into 8 categories with 45 rules. The categories range from eliminating waterfalls and bundle size to JavaScript performance and advanced patterns.

Is the guidance from Vercel?

The guide is described as adapted from Vercel's published guidance. The source labels it a catalog adaptation.

Should I apply every rule without testing?

No. The source says to identify installed React, Next.js and SWR versions, profile a concrete bottleneck, and validate one change with the application's checks before broad refactoring.

How do I install react-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is react-best-practices free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is react-best-practices safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to react-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

react-best-practices Install

Add to stack

Loading.