vercel-labs/agent-skills

vercel-react-best-practices

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.

812K installs 33K stars

Before you install

Last update
Files in folder
76
Scripts
No script files found
SKILL.md size
7.1 KB (about 1,813 tokens of context each time it loads)
License
No license file
Source on GitHub
vercel-labs/agent-skills

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add vercel-labs/agent-skills@vercel-react-best-practices

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add vercel-labs/agent-skills@vercel-react-best-practices --agent claude-code -y
Project install writes to
.claude/skills/vercel-react-best-practices
Global install writes to
~/.claude/skills/vercel-react-best-practices

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /vercel-react-best-practices.

What it does

Vercel React Best Practices Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 70 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 Rule Categories by Priority Priority Category Impact Prefix…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Categories

Related skills

  • web-design-guidelines

    vercel-labs/agent-skills

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

  • vercel-composition-patterns

    vercel-labs/agent-skills

    React Composition Patterns Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale. When to Apply Reference these guidelines when: - Refactoring components with many boolean props - Building reusable component libraries - Designing flexible component APIs - Reviewing component architecture - Working with compound components or context providers Rule Categories by Priority Priority…

    400K installs 33KReact & Next.js
  • vercel-react-native-skills

    vercel-labs/agent-skills

    React Native Skills Comprehensive best practices for React Native and Expo applications. Contains rules across multiple categories covering performance, animations, UI patterns, and platform-specific optimizations. When to Apply Reference these guidelines when: - Building React Native or Expo apps - Optimizing list and scroll performance - Implementing animations with Reanimated - Working with images and media - Configuring native modules or fonts - Structuring monorepo projects with native dependencies Rule Categories by Priority Priority Category Impact Prefix -------- ----------------…

  • deploy-to-vercel

    vercel-labs/agent-skills

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

    159K installs 33K scriptsDeploy & DevOpsGit & GitHub
  • vercel-react-view-transitions

    vercel-labs/agent-skills

    Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

  • vercel-cli-with-tokens

    vercel-labs/agent-skills

    Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

    127K installs 33KDeploy & DevOps

← Search skills

/skills/vercel-labs/agent-skills/vercel-react-best-practices/