Skip to content

Development & Engineering

React Best Practices

Free

Vercel's React and Next.js performance rules, ranked by impact, for writing and reviewing components.

Difficulty intermediate

Purpose

Install the original React Best Practices skill from vercel-labs/agent-skills and use it in Claude Code.

Procedure

--- name: claude-react-best-practices description: Vercel's React and Next.js performance rules, ranked by impact, for writing and reviewing components. ---

React Best Practices

Purpose

Install the original React Best Practices skill from vercel-labs/agent-skills and use it in Claude Code.

Procedure

Source: https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices Maintainer: Vercel (vercel-labs/agent-skills). Skilling lists this skill; the original lives in that repository.

Install

npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices -a claude-code

Run this in the root of your project (needs Node.js 22.20 or later). It copies only this skill into .claude/skills; add -g to install it for every project. The manual copy installs the same folder for your user. Start a new Claude Code session afterwards.

Manual install (this skill only)

git clone https://github.com/vercel-labs/agent-skills.git
mkdir -p ~/.claude/skills
cp -r agent-skills/skills/react-best-practices ~/.claude/skills/

What it does

  • Removes request waterfalls first
  • Cuts bundle size and re-renders
  • Ranks every fix by impact

How to use it

Ask Claude to review a React component or Next.js page for performance.

Example requests

1. Use React Best Practices

Request: Ask Claude to review a React component or Next.js page for performance. Expected: Removes request waterfalls first.

Dependencies

Claude Code, and Node.js 22.20 or later for npx (or git for the manual copy).

Compatibility

This document follows the Agent Skills layout (a folder named claude-react-best-practices containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it. Last verified 2026-11-15.

Example prompts

Use React Best Practices

Ask Claude to review a React component or Next.js page for performance.

Expected: Removes request waterfalls first.

Choose the agent

Pick the agent you use.

Related

  • Frontend Design

    Anthropic's skill for distinctive, intentional UI: a clear aesthetic direction, real typography choices, and no templated defaults.

  • Web Design Guidelines

    Vercel's UI review skill: checks your code against 100+ web interface rules and lists issues by file and line.

  • Webapp Testing

    Test local web apps with Playwright: check behavior, capture screenshots and read browser logs.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.