react-best-practices
Skill by benjaminasterA
Gives an AI assistant Vercel's React and Next.js performance guidelines, with 45 rules for writing, reviewing, and refactoring code. Built for developers working on React or Next.js applications.
Install react-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-awesome-skills/skills/react-best-practices ~/.claude/skills/react-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-awesome-skills/skills/react-best-practices ~/.gemini/antigravity-cli/skills/react-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install react-best-practices in Antigravity CLI
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 performance optimization guidelines for React and Next.js. The guide contains 45 rules across 8 categories, ordered by impact. The categories run from eliminating waterfalls and bundle size optimization to server-side performance, data fetching, re-renders, rendering, JavaScript performance, and advanced patterns. Each rule has its own file with an explanation, an incorrect code example, and a correct one.
The skill is meant to guide automated refactoring and code generation. The assistant can use it when writing components or pages, implementing data fetching, reviewing code, or optimizing bundle size and load times. A compiled AGENTS.md file holds the full guide. The source says the guidelines are maintained by Vercel and the listing is published by benjaminasterA. It suits developers who want performance-focused guidance on React or Next.js code.
Written from the project's SKILL.md and checked against it.
What it can do
- Eliminating waterfallsRules for starting promises early and running independent operations in parallel.
- Bundle size optimizationRules for direct imports, dynamic imports, and deferring third-party scripts.
- Server-side performanceRules for caching, minimizing data sent to client components, and non-blocking work.
- Client-side data fetchingRules for request deduplication with SWR and deduplicating global event listeners.
- Re-render optimizationRules for memoization, primitive effect dependencies, and startTransition usage.
- Rendering performanceRules for hoisting static JSX, content-visibility, and hydration without flicker.
- JavaScript performanceRules for Set and Map lookups, early exits, and combining loop iterations.
- Advanced patternsRules for storing event handlers in refs and using a stable latest-value ref.
Try asking
- Review this React component for performance issues and suggest fixes.
- Refactor this Next.js page to reduce bundle size.
- Find request waterfalls in this data fetching code and remove them.
Good to know
- The source metadata lists the risk level as unknown.
- The source describes guidelines, not a tool that runs code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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.md59 KB -
README.md3 KB -
SKILL.md5 KB -
metadata.json921 B -
rules/_sections.md2 KB
Show all 51 files
-
rules/_template.md631 B -
rules/advanced-event-handler-refs.md1 KB -
rules/advanced-use-latest.md1 KB -
rules/async-api-routes.md1 KB -
rules/async-defer-await.md2 KB -
rules/async-dependencies.md942 B -
rules/async-parallel.md654 B -
rules/async-suspense-boundaries.md2 KB -
rules/bundle-barrel-imports.md2 KB -
rules/bundle-conditional.md866 B -
rules/bundle-defer-third-party.md920 B -
rules/bundle-dynamic-imports.md791 B -
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.md532 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.md837 B -
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 →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
react-best-practices: common questions
Who maintains the React best practices guidelines?
The source says the guidelines are from Vercel Engineering and maintained by Vercel.
Does this skill run code or change my project?
The source describes it as performance guidelines used to guide writing, reviewing, and refactoring code. It does not describe running code itself.
How many rules does the guide include?
The source says it contains 45 rules across 8 categories, prioritized by impact.
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 85 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: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
