vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering.
Skill by vercel
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/elophanto-vercel-react-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, cloud, data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/vercel-react-best-practices
What's inside
- Skill name
vercel-react-best-practices- Description
- React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
- License
- MIT
- Metadata
- author: vercel · version: 1.0.0
- Instructions
- 156 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "vercel-react-best-practices" does not match folder "react-best-practices"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Vercel React Best Practices Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 57 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation. ## Triggers - react - component - hook - useState - useEffect - jsx - tsx - react performance - memo - useMemo - useCallback - react render - virtual dom - react app ## 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 | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Eliminating Waterfalls | CRITICAL | `async-` | | 2 | Bundle Size Optimization | CRITICAL | `bundle-` | | 3 | Server-Side Performance | HIGH | `server-` | | 4 | Client-Side Data Fetching | MEDIUM-HIGH | `client-` | | 5 | Re-render Optimization | MEDIUM | `rerender-` | | 6 | Rendering Performance | MEDIUM | `rendering-` | | 7 | JavaScript Performance | LOW-MEDIUM | `js-` | | 8 | Advanced Patterns | LOW | `advanced-` | ## Quick Reference ### 1. Eliminating Waterfalls (CRITICAL) - `async-defer-await` - Move await into branches where actually used - `async-parallel` - Use Promise.all() for independent operations - `async-dependencies` - Use better-all for partial dependencies - `async-api-routes` - Start promises early, await late in API routes - `async-suspense-boundaries` - Use Suspense to stream content ### 2. Bundle Size Optimization (CRITICAL) - `bundle-barrel-imports` - Import directly, avoid barrel files - `bundle-dynamic-imports` - Use next/dynamic for heavy components - `bundle-defer-third-party` - Load analytics/logging after hydration - `bundle-conditional` - Load modules only when feature is activated - `bundle-preload` - Preload on hover/focus for perceived speed ### 3. Server-Side Performance (HIGH) - `server-auth-actions` - Authenticate server actions like API routes - `server-cache-react` - Use React.cache() for per-request deduplication - `server-cache-lru` - Use LRU cache for cross-request caching - `server-dedup-props` - Avoid duplicate serialization in RSC props - `server-serialization` - Minimize data passed to client components - `server-parallel-fetching` - Restructure components to parallelize fetches - `server-after-nonblocking` - Use after() for non-blocking operations ### 4. Client-Side Data Fetching (MEDIUM-HIGH) - `client-swr-dedup` - Use SWR for automatic request deduplication - `client-event-listeners` - Deduplicate global event listeners - `client-passive-event-listeners` - Use passive listeners for scroll - `client-localstorage-schema` - Version and minimize localStorage data ### 5. Re-render Optimization (MEDIUM) - `rerender-defer-reads` - Don't subscribe to state only used in callbacks - `rerender-memo` - Extract expensive work into memoized components - `rerender-memo-with-default-value` - Hoist default non-primitive props - `rerender-dependencies` - Use primitive dependencies in effects - `rerender-derived-state` - Subscribe to derived booleans, not raw values - `rerender-derived-state-no-effect` - Derive state during render, not effects - `rerender-functional-setstate` - Use functional setState for stable callbacks - `rerender-lazy-state-init` - Pass function to useState for expensive values - `rerender-simple-expression-in-memo` - Avoid memo for simple primitives - `rerender-move-effect-to-event` - Put interaction logic in event handlers - `rerender-transitions` - Use startTransition for non-urgent updates - `rerender-use-ref-transient-values` - Use refs for transient frequent values ### 6. Rendering Performance (MEDIUM) - `rendering-animate-svg-wrapper` - Animate div wrapper, not SVG element - `rendering-content-visibility` - Use content-visibility for long lists - `rendering-hoist-jsx` - Extract static JSX outside components - `rendering-svg-precision` - Reduce SVG coordinate precision - `rendering-hydration-no-flicker` - Use inline script for client-only data - `rendering-hydration-suppress-warning` - Suppress expected mismatches - `rendering-activity` - Use Activity component for show/hide - `rendering-conditional-render` - Use ternary, not && for conditionals - `rendering-usetransition-loading` - Prefer useTransition for loading state ### 7. JavaScript Performance (LOW-MEDIUM) - `js-batch-dom-css` - Group CSS changes via classes or cssText - `js-index-maps` - Build Map for repeated lookups - `js-cache-property-access` - Cache object properties in loops - `js-cache-function-results` - Cache function results in module-level Map - `js-cache-storage` - Cache localStorage/sessionStorage reads - `js-combine-iterations` - Combine multiple filter/map into one loop - `js-length-check-first` - Check array length before expensive comparison - `js-early-exit` - Return early from functions - `js-hoist-regexp` - Hoist RegExp creation outside loops - `js-min-max-loop` - Use loop for min/max instead of sort - `js-set-map-lookups` - Use Set/Map for O(1) lookups
From elophanto/EloPhanto, MIT.
More from elophanto/EloPhanto
- 0.778score
solana-dev
Solana Foundation
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana…
SkillAFreshness: A★ 106Claude Code +9 - 0.778score
metaplex
metaplex-foundation
Metaplex development on Solana — NFTs, tokens, compressed NFTs, candy machines, token launches.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
12-principles-of-animation
raphael-salaja
Audit animation code against Disney's 12 principles adapted for web.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
strategy-foundations
petr-royce
Marketing-strategy foundations distilled from the Phase 11 strategy generator.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
b2c-marketing-voice
petr-royce
Anti-slop principles for B2C social posts and outreach.
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
voice-extraction-workflow
petr-royce
Produce a voice contract from operator-curated exemplars (Phase 10).
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
drive-business
petr-royce
Canonical workflow for "drive my business" / "operate this company".
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
strategy-pipeline
petr-royce
Phase 11 procedure — capabilities → set_strategy_inputs → plan → apply → approve, plus 3-path blocker resolution (ask / build / defer).
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
trust-ladder-workflow
petr-royce
Per-company trust state procedure (learning / trial / operating).
SkillAFreshness: A★ 106Claude Code +9 - 0.769score
integrating-jupiter
jupiter
Comprehensive guidance for integrating Jupiter APIs (Ultra Swap, Lend, Perps, Trigger, Recurring, Tokens, Price, Portfolio, Prediction Markets, Send, Studio…
SkillAFreshness: A★ 106Claude Code +9 - 0.636score
pikastream-video-meeting
elophanto
Join a Google Meet or Zoom call as a video meeting agent via PikaStreaming.
SkillAFreshness: A★ 106Claude Code +9 - 0.636score
solana-kit-migration
elophanto
Helps developers understand when to use @solana/kit vs @solana/web3.js (v1), provides migration guidance, API mappings, and handles edge cases for Solana…
SkillAFreshness: A★ 106Claude Code +9
Signals
- Stars
- 106
- Forks
- 9
- Open issues
- 2
- Last commit (this folder)
- May 3, 2026 (5 months ago)
- Last release
- Oct 1, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/elophanto/EloPhanto
- Website
- elophanto.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from vercel
- 0.636score
adr-skill
vercelOfficial
Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows.
SkillAFreshness: A★ 27.5KClaude Code +9 - 0.636score
list-npm-package-content
vercelOfficial
List the contents of an npm package tarball before publishing.
SkillAFreshness: A★ 27.5KClaude Code +9 - 0.636score
add-harness-package
vercelOfficial
Guide for adding new AI SDK harness packages.
SkillAFreshness: A★ 27.5KClaude Code +9 - 0.632score
major-version-mode
vercelOfficial
Context for working on the next AI SDK major release.
SkillAFreshness: A★ 27.5KClaude Code +9 - 0.632score
develop-ai-functions-example
vercelOfficial
Develop examples for AI SDK functions.
SkillAFreshness: A★ 27.5KClaude Code +9 - 0.632score
migrate-ai-sdk-v6-to-v7
vercelOfficial
Migrate applications from AI SDK 6.x to AI SDK 7.0.
SkillAFreshness: A★ 27.5KClaude Code +9
Cite this page
vercel-react-best-practices skill. Agent Mart. https://agentmart.dev/skills/elophanto-vercel-react-best-practices (last updated 2026-10-24)