Individual skill
react-best-practices
CRITICAL: You MUST invoke this skill and read its contents BEFORE writing, modifying, or debugging ANY React.js or Next.js code. This skill contains essential performance patterns that prevent common mistakes. Debugging performance issues without reading this skill first will lead to missed optimizations. Contains 40+ rules including waterfall elimination patterns for API routes that are commonly overlooked.
tasks/react-performance-debugging/environment/skills/react-best-practices/SKILL.md
Source commit f860ecf02ef53412a030f8661c83d644b739ff01
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,914
- Repository last updated
- Nov 4, 2026
- License
- Apache-2.0
Observed agent integration: codex
- benchmark Repository topic
- skillsbench Repository topic
- writing Derived category
- testing Derived category
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 60,535 bytesREADME.mddoc · 3,360 bytesSKILL.mdcore · 5,364 bytesmetadata.jsonasset · 921 bytesrules/_sections.mddoc · 1,554 bytesrules/_template.mddoc · 631 bytesrules/advanced-event-handler-refs.mddoc · 1,478 bytesrules/advanced-use-latest.mddoc · 1,191 bytesrules/async-api-routes.mddoc · 1,125 bytesrules/async-defer-await.mddoc · 2,028 bytesrules/async-dependencies.mddoc · 942 bytesrules/async-parallel.mddoc · 654 bytesrules/async-suspense-boundaries.mddoc · 2,510 bytesrules/bundle-barrel-imports.mddoc · 2,370 bytesrules/bundle-conditional.mddoc · 866 bytesrules/bundle-defer-third-party.mddoc · 920 bytesrules/bundle-dynamic-imports.mddoc · 791 bytesrules/bundle-preload.mddoc · 1,149 bytesrules/client-event-listeners.mddoc · 1,969 bytesrules/client-swr-dedup.mddoc · 1,159 bytesrules/js-batch-dom-css.mddoc · 1,902 bytesrules/js-cache-function-results.mddoc · 1,949 bytesrules/js-cache-property-access.mddoc · 532 bytesrules/js-cache-storage.mddoc · 1,651 bytesrules/js-combine-iterations.mddoc · 753 bytesrules/js-early-exit.mddoc · 1,133 bytesrules/js-hoist-regexp.mddoc · 1,028 bytesrules/js-index-maps.mddoc · 837 bytesrules/js-length-check-first.mddoc · 1,752 bytesrules/js-min-max-loop.mddoc · 2,105 bytesrules/js-set-map-lookups.mddoc · 532 bytesrules/js-tosorted-immutable.mddoc · 1,782 bytesrules/rendering-activity.mddoc · 564 bytesrules/rendering-animate-svg-wrapper.mddoc · 1,185 bytesrules/rendering-conditional-render.mddoc · 980 bytesrules/rendering-content-visibility.mddoc · 815 bytesrules/rendering-hoist-jsx.mddoc · 1,039 bytesrules/rendering-hydration-no-flicker.mddoc · 2,308 bytesrules/rendering-svg-precision.mddoc · 588 bytesrules/rerender-defer-reads.mddoc · 973 bytesrules/rerender-dependencies.mddoc · 824 bytesrules/rerender-derived-state.mddoc · 724 bytesrules/rerender-functional-setstate.mddoc · 2,968 bytesrules/rerender-lazy-state-init.mddoc · 2,016 bytesrules/rerender-memo.mddoc · 1,148 bytesrules/rerender-transitions.mddoc · 1,055 bytesrules/server-after-nonblocking.mddoc · 2,012 bytesrules/server-cache-lru.mddoc · 1,353 bytesrules/server-cache-react.mddoc · 681 bytesrules/server-parallel-fetching.mddoc · 1,515 bytesrules/server-serialization.mddoc · 996 bytes
Read excerpt
# Vercel React Best Practices
Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 45 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