Vercel React Best Practices

Vercel React Best Practices

✓ Verified

69 rules for React and Next.js performance optimisation across 8 priority categories.

Claude / Claude Codetested
GitHub Copilottested
VS Codetested
Cursortested
OpenAI Codextested

What it does

Without this skill, Claude frequently mixes App Router and Pages Router conventions in the same codebase, reaches for deprecated APIs (like `getServerSideProps` in App Router projects), and picks rendering strategies that don't match the use case. This skill loads 69 explicit rules from Vercel's own engineering team — the people who built and maintain Next.js — covering RSC boundaries, data fetching patterns, image optimisation, font loading, and Suspense usage. It's not a style guide; it's the actual production checklist.

Use case

Any React or Next.js project where you want Claude to follow Vercel's production standards. Essential if you're deploying to Vercel — many of the rules exist specifically because violating them causes real production performance regressions. Made by Vercel Labs from their internal engineering guidance.

The Prompt

Copy and use immediately
"Refactor this page to use the correct App Router data fetching pattern."
"Is there anything in this component that would cause a performance regression on Vercel?"
"Build a server component that fetches user data and passes it to a client component."
"Add proper Suspense boundaries and a loading skeleton to this route."
"Review this file — is our use of 'use client' correct here?"

How to use

  1. 1

    Install into your Next.js project root. Claude applies the 69 rules automatically to any React or Next.js code it generates.

  2. 2

    For code review: ask Claude to audit a file against Vercel's guidelines. It returns a prioritised list of issues with specific fixes.

  3. 3

    Use it alongside next-best-practices for full coverage — this skill focuses on React patterns, the other covers Next.js routing and server patterns.

Input / Output

Input

React or Next.js code, component descriptions, or architectural questions about your application.

Output

React code that follows Vercel's production standards: correct server/client boundaries, no deprecated APIs, proper Suspense usage, optimised rendering strategies, and correct image/font handling.

Install via CLI

npx skillsadd vercel-labs/agent-skills/react-best-practices
Added 4 Apr 2026Submitted by vercel-labs👁 117📋 2

Details

Platforms
Claude / Claude CodeGitHub CopilotVS CodeCursorOpenAI Codex
Category
Development
License
MIT
Author
Vercel

Stats

📋 Copies2
👁 Views117
👍 Upvotes0

Install with skills.sh

npx skillsadd vercel-labs/skills/vercel-react-best-practices

Requires skills.sh CLI

Community Notes

Sign in with GitHub to leave a note.

No notes yet. Be the first to contribute.