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

vercel-react-best-practices

Skill by mediago-dev

Provides React and Next.js performance guidelines from Vercel Engineering for writing, reviewing, and refactoring code. It contains 67 rules that guide automated refactoring and code generation.

  • Score 94
  • 9.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install vercel-react-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mediago-dev/mediago /tmp/mediago && mkdir -p ~/.claude/skills && cp -r /tmp/mediago/.agents/skills/vercel-react-best-practices ~/.claude/skills/vercel-react-best-practices

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

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

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

About

vercel-react-best-practices is an agent skill that gives an AI assistant React and Next.js performance optimization guidelines from Vercel Engineering. The skill contains 67 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation. The categories cover eliminating waterfalls, bundle size, server-side performance, client-side data fetching, re-renders, rendering, JavaScript performance, and advanced patterns.

Each rule has a prefix such as async-, bundle- or rerender-, and a dedicated rule file under rules/ with an explanation, an incorrect and a correct code example, and additional context. The full guide is compiled into AGENTS.md. The skill is published under the MIT license and is aimed at developers who write, review, or refactor React components, Next.js pages, data fetching, or bundle code.

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

What it can do

  • Eliminating WaterfallsRules for using Promise.all, deferred awaits and Suspense to avoid sequential async work.
  • Bundle Size OptimizationRules for avoiding barrel imports, using dynamic imports and deferring third-party code.
  • Server-Side PerformanceRules for React.cache, LRU caching, parallel fetching and non-blocking operations.
  • Client-Side Data FetchingRules for SWR request deduplication, event listeners and localStorage handling.
  • Re-render OptimizationRules for memoization, derived state, functional setState and avoiding inline components.
  • Rendering PerformanceRules for content-visibility, hoisting static JSX, hydration and script loading.
  • JavaScript PerformanceRules for Set and Map lookups, caching, loop combining and early exits.
  • Advanced PatternsRules for storing event handlers in refs, one-time app initialization and stable callback refs.

Try asking

  • Review this Next.js page for data fetching waterfalls and suggest fixes
  • Refactor these React components to reduce unnecessary re-renders
  • Check my imports for barrel files and suggest direct imports

Security check

A

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

Checked automatically: .agents/skills/vercel-react-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AGENTS.md100 KB
  • README.md3 KB
  • SKILL.md7 KB
  • rules/_sections.md2 KB
  • rules/_template.md633 B
Show all 72 files
  • rules/advanced-event-handler-refs.md1 KB
  • rules/advanced-init-once.md967 B
  • rules/advanced-use-latest.md1 KB
  • rules/async-api-routes.md1 KB
  • rules/async-cheap-condition-before-await.md1 KB
  • rules/async-defer-await.md2 KB
  • rules/async-dependencies.md1 KB
  • rules/async-parallel.md659 B
  • rules/async-suspense-boundaries.md2 KB
  • rules/bundle-barrel-imports.md3 KB
  • rules/bundle-conditional.md966 B
  • rules/bundle-defer-third-party.md928 B
  • rules/bundle-dynamic-imports.md799 B
  • rules/bundle-preload.md1 KB
  • rules/client-event-listeners.md2 KB
  • rules/client-localstorage-schema.md2 KB
  • rules/client-passive-event-listeners.md2 KB
  • rules/client-swr-dedup.md1 KB
  • rules/js-batch-dom-css.md3 KB
  • rules/js-cache-function-results.md2 KB
  • rules/js-cache-property-access.md536 B
  • rules/js-cache-storage.md2 KB
  • rules/js-combine-iterations.md768 B
  • rules/js-early-exit.md1 KB
  • rules/js-flatmap-filter.md1 KB

And 42 more files on GitHub.

Alternatives to vercel-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

vercel-react-best-practices: common questions

Who published the React best practices skill?

The skill is credited to Vercel Engineering and is listed with the author field set to vercel. It is published under the MIT license.

How many rules does the skill include?

The skill states that it contains 67 rules across 8 categories, prioritized by impact.

Where can I read the full guide?

Individual rules are in rule files such as rules/async-parallel.md, and the full guide with all rules expanded is in AGENTS.md.

How do I install vercel-react-best-practices?

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

Is vercel-react-best-practices free?

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

Is vercel-react-best-practices safe to use?

It scores 94 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 vercel-react-best-practices?

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

vercel-react-best-practices Install

Add to stack

Loading.