Official React and Next.js performance optimization guidelines from Vercel Engineering. Auto-activates when writing, reviewing, or refactoring React components, Next.js pages, data fetching, bundle optimization, or performance-critical frontend code.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Vercel React Best Practices
Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel Engineering. Contains rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
## Rule Categories by Priority
| Priority | Category | Impact | Prefix | Focus |
|:---|:---|:---|:---|:---|
| 1 | Eliminating Waterfalls | CRITICAL | `async-` | Parallel fetches, deferred awaits, Suspense streaming |
| 2 | Bundle Size Optimization | CRITICAL | `bundle-` | Direct imports over barrel files, dynamic imports, conditional loading |
| 3 | Server-Side Performance | HIGH | `server-` | React.cache(), non-blocking after(), data minimization |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH | `client-` | SWR / TanStack Query, optimistic UI, caching |
| 5 | Re-render Optimization | MEDIUM | `rerender-` | Reference stability, context splitting, derived state |
| 6 | Rendering Performance | MEDIUM | `rendering-` | Virtualization, content-visibility, memoization |
| 7 | JavaScript Performance | LOW-MEDIUM | `js-` | Algorithmic efficiency, avoiding work in render |
…
The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
pass: Frontmatter block present
pass: Frontmatter declares a name
pass: Frontmatter declares a description
pass: Size between 200 bytes and 200 KB (6486 bytes)
pass: No zero-width or bidi control characters
pass: No instruction hidden inside an HTML comment
pass: No link to an exfiltration or paste host
pass: No credential-shaped string
pass: No instruction to send local credentials anywhere
pass: No text hidden with inline styles
pass: No prompt-injection phrasing
pass: No curl or wget piped into a shell
pass: No recursive delete of root, home or parent
pass: No instruction to read or print local credentials
pass: No base64 blob over 200 characters
pass: No link to a raw IP address
pass: No script tag
Source
GitHub
smicolon/ai-kit · 7 stars · license MIT · pushed 2026-09-15 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2azd42se2f3zrfyd
GET https://markdownregistry.com/api/v1/resolve?ref=smicolon/ai-kit/vercel-react-best-practices
GET https://markdownregistry.com/api/v1/blob/5bfea8e4445505d179cdb79567218a2c2cb9fa0f8c1fc1bd1b0e404a5001e855
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
smicolon/ai-kit · packs/clarify/skills/flow-detector/SKILL.md · Analyzes a task description plus the surrounding codebase and produces a list of candidate end-to-end flows. Activates…
smicolon/ai-kit · packs/clarify/skills/flow-selector/SKILL.md · Presents 2+ candidate flows from flow-detector and asks the user to pick one. Issues exactly one AskUserQuestion. Never…
smicolon/ai-kit · packs/dev-loop/skills/tdd-planner/SKILL.md · This skill should be used when the user asks to "plan a feature", "prepare for dev loop", "structure TDD approach"…
smicolon/ai-kit · packs/django/skills/import-convention-enforcer/SKILL.md · Automatically validate and fix Django import patterns to use absolute modular imports with aliases. Use when writing…
smicolon/ai-kit · packs/django/skills/migration-safety-checker/SKILL.md · This skill should be used when the user asks to "create a migration", "run makemigrations", "modify a model field"…
cherryhq/cherry-studio · .agents/skills/vercel-react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
vercel-labs/agent-skills · skills/react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
zebbern/claude-code-guide · skills/react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
gronxb/hot-updater · .agents/skills/vercel-react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
fcakyon/claude-codex-settings · plugins/react-skills/skills/react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
coco-research/coco · skills/vercel-react-best-practices/SKILL.md · Pointer to the upstream skill for React and Next.js performance work (data fetching, bundle size, re-renders)…
asymmetric-al/core · .agents/skills/vercel-react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…
julianromli/ai-skills · skills/react-best-practices/SKILL.md · React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing…