vercel-react-best-practices
Skill15k starsChanged 3 months agoApache-2.0View on GitHub
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.
182 other projects use a version of this, 115 of them edited; 3 of 111 edited versions we compared changed its rules.
How people change it
3 of 111 edited versions changed its rules.
Of the 111 edited versions we compared: 108 keep every rule, 3 made changes of their own.
Rules people drop
- A rule we can't quote: its licence doesn't allow itdropped by 3 of 3
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- Significant-Gravitas/AutoGPTedited, first seen Nov 18, 2026
- gilsmt/skillsword for word, first seen Oct 4, 2026
- calesthio/OpenMontageedited, first seen Oct 3, 2026
- STIFLEUR390/kwiktalk-docsword for word, first seen Oct 3, 2026
- delorenj/skillsedited, first seen Oct 2, 2026
- louisbrulenaudet/monorepo-templateword for word, first seen Oct 2, 2026
Who's talking about open-metadata/OpenMetadata
- MunGell/awesome-for-beginners“Add OpenMetadata”GitHub · Sep 13, 2022 · 13 reactions
- @camilleroux.com“OpenMetadata : une plateforme open source unifiée pour la data discovery, l'observabilité et la gouvernance …”Bluesky · May 2, 2026 · 5 likes
- A Hacker News story“OpenMetadata: Open Standard for Metadata”Hacker News · May 24, 2022 · 4 points
- microsoft/vscode-java-debug“Run & Debug Multi-Module Dropwizard Application in VSCode”GitHub · Feb 21, 2024 · 2 reactions
- dataform-co/dataform“Feature Request: Integration with Open Metadata”GitHub · Feb 17, 2023 · 2 reactions
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 29
- Sep 13, 2022Add OpenMetadata — MunGell/awesome-for-beginners13 reactions
- Feb 21, 2024Run & Debug Multi-Module Dropwizard Application in VSCode — microsoft/vscode-java-debug2 reactions · 2 comments
- Feb 17, 2023Feature Request: Integration with Open Metadata — dataform-co/dataform2 reactions · 1 comment
- Oct 6, 2026agent-skills.github.open-metadata.openmetadata: 2.0.3-release → 2.0.4-release — sudosubin/agents.nix0 reactions
- Oct 5, 2026chore(deps): bump openmetadata-ingestion from 1.13.3.2 to 2.0.3.0 — GovHub-br/data-application-minc0 reactions
24 more on GitHub
- Oct 3, 2026agent-skills.github.open-metadata.openmetadata: 2.0.2-release → 2.0.3-release — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.open-metadata.openmetadata: init at 2.0.2-release — sudosubin/agents.nix0 reactions
- Sep 15, 2026Docs: Add release notes for 1.13.6 — open-metadata/docs-om0 reactions · 2 comments
- Sep 11, 2026support OpenMetadata — risingwavelabs/risingwave0 reactions
- Sep 3, 2026Docs: Add release notes for 1.13.5 release — open-metadata/docs-om0 reactions
- Aug 24, 2026Sync OpenMetadata Standards with 2.0.0 — open-metadata/OpenMetadataStandards0 reactions
- Aug 24, 2026openmetadata-dependencies: remove obsolete Airflow FAB downgrade — open-metadata/openmetadata-helm-charts0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /custom-connector in the custom-connector-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /api-lineage-cicd in the api-lineage-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /dynamic_csv_importer in the dynamic-csv-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in the sdk-facade-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /custom-graphql in the custom-graphql-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /ingestion-automation in the ingestion-automation-python group — open-metadata/openmetadata-demo0 reactions
- Jun 25, 2026[GHSA-5f29-2333-h9c7] OpenMetadata's Server-Side Template Injection (SSTI) in FreeMarker email templates leads to RCE — github/advisory-database0 reactions · 3 comments
- Apr 25, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 24, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 23, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 22, 2026[P2-16] Upstream Hackathon GFI — nishanthatgit/openmetadata-pulse0 reactions
- Dec 22, 2025Redshift Serverless: Support of SYS views to fetch queries — open-metadata/docs-v1-legacy0 reactions · 1 comment
- Jan 8, 2025[Recommendation Needed] Production ready Open lineage application — OpenLineage/OpenLineage0 reactions · 5 comments
- Apr 24, 2024OpenMetadata 身份验证绕过漏洞(CVE-2024-28255) — foyaga/blog-timeline0 reactions
- Feb 6, 2023Make suggest edits button work — open-metadata/docs0 reactions · 1 comment
- Jun 13, 2022Add OpenMetadata — mgramin/awesome-db-tools0 reactions
- Mar 30, 2022Refactor & Clean up unnecessary methods — open-metadata/openmetadata-airflow-apis0 reactions
On Bluesky · 10
- May 2, 2026OpenMetadata : une plateforme open source unifiée pour la data discovery, l'observabilité et la gouvernance des données — avec du lineage… — @camilleroux.com5 likes and reposts · 1 reply
- Apr 24, 2026今日のGitHubトレンド open-metadata/OpenMetadata OpenMetadataは、データの発見、観測、ガバナンスを統合的に管理するメタデータプラットフォームです。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 23, 2026OpenMetadata : découverte, observabilité et gouvernance des données unifiées — @news.humancoders.com1 likes and repost
- Apr 22, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 open-metadata / OpenMetadata ⭐ 11,886 (+609) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 open-metadata / OpenMetadata ⭐ 10,245 (+162) 🗒 TypeScript OpenMetadata is a unified metadata platform… — @github-trending-js.bsky.social1 likes and repost
5 more on Bluesky
- Feb 27, 2026https://github.com/open-metadata/OpenMetadata — @tom-doerr.bsky.social1 likes and repost
- Dec 30, 2024After reading a lot about Data Mesh in the past years, I’ve decided to put it in practice and test different tools during the holidays… — @fabridinapoli.com1 likes and repost
- Nov 22, 2023📦 open-metadata / OpenMetadata ⭐ 3,144 (+91) 🗒 TypeScript Open Standard for Metadata. A Single place to Discover, Collaborate and Get… — @github-trending-js.bsky.social1 likes and repost
- Apr 22, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 open-metadata / OpenMetadata ⭐ 11,887 (+609) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Apr 3, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 open-metadata / OpenMetadata ⭐ 9,542 (+299) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- May 24, 2022OpenMetadata: Open Standard for Metadata4 points
Used with
Projects with it also use next-cache-components, next-best-practices and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillnext-cache-components
Next.js 16 Cache Components - PPR, use cache directive, cacheLife, cacheTag, updateTag
Also in 7 projects that use this
SentrySkillnext-best-practices
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Also in 20 projects that use this
jarrodwattsSkillreact-useeffect
React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.
Also in 5 projects that use this
VercelSkillvercel-react-native-skills
Also in 17 projects that use this
itsyasirkhandevSkilltailwind-css-patterns
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
Also in 3 projects that use this
JetBrainsSkilldeploy-to-vercel
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".
Also in 11 projects that use this
- +3 more from vercel-labs
Other versions182 projects use a version of this.
Word for word · 65
- vercel-labs/agent-skills★ 32k100% same
- zhukunpenglinyutong/jetbrains-cc-gui★ 6.8k100% same
- pedronauck/skills★ 633100% same
- GoogleCloudPlatform/devrel-demos★ 378100% same
- vercel/vercel-plugin★ 297100% same
- julianromli/ai-skills★ 192100% same
- vercel-labs/openwiki★ 143100% same
- Dimon94/skills★ 107100% same
- ai-dvps/comate★ 94100% same
- sajeetharan/devglobe★ 33100% same
55 more not listed
Edited · 115
- Significant-Gravitas/AutoGPT★ 188k91% same
- calesthio/OpenMontage★ 63k92% same
- CherryHQ/cherry-studio★ 52k97% same
- vercel-labs/open-agents★ 5.8k95% same
- zebbern/claude-code-guide★ 4.6k95% same
- compozy/compozy★ 2.8k91% same
- agentset-ai/agentset★ 2.1k95% same
- vercel-labs/openreview★ 1.7k95% same
- CloudAI-X/claude-workflow-v2★ 1.4k84% same
- jarrodwatts/claude-code-config★ 1.1k90% same
105 more not listed
Wrote their own version · 2
- QuantumNous/new-api★ 49ksame name
- coder-zhuzm/vercel-react-skills-zh★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/vendor/composition-patterns/AGENTS.mdAGENTS.md
- skills/vendor/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- openmetadata-ui-core-components/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- connector-auditSkill
- scaffold-connectorSkill
- connector-reviewSkill
- connector-standardsSkill
- dev-setupSkill
- java-checkstyleSkill
- openmetadata-pr-reviewSkill
- openmetadata-workflowSkill
- planningSkill
- playwright-testSkill
- playwright-validationSkill
- pr-checklistSkill
- systematic-debuggingSkill
- tddSkill
- test-enforcementSkill
- test-locallySkill
- ui-checkstyleSkill
- ui-core-componentsSkill
- vercel-composition-patternsSkill
- web-design-guidelinesSkill
- verificationSkill
- writing-playwright-testsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 1 is common, 0 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 112 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 134
Read individual rule files for detailed explanations and code examples:
“Common” is measured: kept by at least 6 in 10 of the 112 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 |
| 1 | Eliminating Waterfalls | CRITICAL | async- |
| 2 | Bundle Size Optimization | CRITICAL | bundle- |
| 3 | Server-Side Performance | HIGH | server- |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH | client- |
| 5 | Re-render Optimization | MEDIUM | rerender- |
| 6 | Rendering Performance | MEDIUM | rendering- |
| 7 | JavaScript Performance | LOW-MEDIUM | js- |
| 8 | Advanced Patterns | LOW | advanced- |
Quick Reference
1. Eliminating Waterfalls (CRITICAL)
async-cheap-condition-before-await- Check cheap sync conditions before awaiting flags or remote valuesasync-defer-await- Move await into branches where actually usedasync-parallel- Use Promise.all() for independent operationsasync-dependencies- Use better-all for partial dependenciesasync-api-routes- Start promises early, await late in API routesasync-suspense-boundaries- Use Suspense to stream content
2. Bundle Size Optimization (CRITICAL)
bundle-barrel-imports- Import directly, avoid barrel filesbundle-analyzable-paths- Prefer statically analyzable import and file-system paths to avoid broad bundles and tracesbundle-dynamic-imports- Use next/dynamic for heavy componentsbundle-defer-third-party- Load analytics/logging after hydrationbundle-conditional- Load modules only when feature is activatedbundle-preload- Preload on hover/focus for perceived speed
3. Server-Side Performance (HIGH)
server-auth-actions- Authenticate server actions like API routesserver-cache-react- Use React.cache() for per-request deduplicationserver-cache-lru- Use LRU cache for cross-request cachingserver-dedup-props- Avoid duplicate serialization in RSC propsserver-hoist-static-io- Hoist static I/O (fonts, logos) to module levelserver-no-shared-module-state- Avoid module-level mutable request state in RSC/SSRserver-serialization- Minimize data passed to client componentsserver-parallel-fetching- Restructure components to parallelize fetchesserver-parallel-nested-fetching- Chain nested fetches per item in Promise.allserver-after-nonblocking- Use after() for non-blocking operations
4. Client-Side Data Fetching (MEDIUM-HIGH)
client-swr-dedup- Use SWR for automatic request deduplicationclient-event-listeners- Deduplicate global event listenersclient-passive-event-listeners- Use passive listeners for scrollclient-localstorage-schema- Version and minimize localStorage data
5. Re-render Optimization (MEDIUM)
rerender-defer-reads- Don't subscribe to state only used in callbacksrerender-memo- Extract expensive work into memoized componentsrerender-memo-with-default-value- Hoist default non-primitive propsrerender-dependencies- Use primitive dependencies in effectsrerender-derived-state- Subscribe to derived booleans, not raw valuesrerender-derived-state-no-effect- Derive state during render, not effectsrerender-functional-setstate- Use functional setState for stable callbacksrerender-lazy-state-init- Pass function to useState for expensive valuesrerender-simple-expression-in-memo- Avoid memo for simple primitivesrerender-split-combined-hooks- Split hooks with independent dependenciesrerender-move-effect-to-event- Put interaction logic in event handlersrerender-transitions- Use startTransition for non-urgent updatesrerender-use-deferred-value- Defer expensive renders to keep input responsivererender-use-ref-transient-values- Use refs for transient frequent valuesrerender-no-inline-components- Don't define components inside components
6. Rendering Performance (MEDIUM)
rendering-animate-svg-wrapper- Animate div wrapper, not SVG elementrendering-content-visibility- Use content-visibility for long listsrendering-hoist-jsx- Extract static JSX outside componentsrendering-svg-precision- Reduce SVG coordinate precisionrendering-hydration-no-flicker- Use inline script for client-only datarendering-hydration-suppress-warning- Suppress expected mismatchesrendering-activity- Use Activity component for show/hiderendering-conditional-render- Use ternary, not && for conditionalsrendering-usetransition-loading- Prefer useTransition for loading staterendering-resource-hints- Use React DOM resource hints for preloadingrendering-script-defer-async- Use defer or async on script tags
7. JavaScript Performance (LOW-MEDIUM)
js-batch-dom-css- Group CSS changes via classes or cssTextjs-index-maps- Build Map for repeated lookupsjs-cache-property-access- Cache object properties in loopsjs-cache-function-results- Cache function results in module-level Mapjs-cache-storage- Cache localStorage/sessionStorage readsjs-combine-iterations- Combine multiple filter/map into one loopjs-length-check-first- Check array length before expensive comparisonjs-early-exit- Return early from functionsjs-hoist-regexp- Hoist RegExp creation outside loopsjs-min-max-loop- Use loop for min/max instead of sortjs-set-map-lookups- Use Set/Map for O(1) lookupsjs-tosorted-immutable- Use toSorted() for immutabilityjs-flatmap-filter- Use flatMap to map and filter in one passjs-request-idle-callback- Defer non-critical work to browser idle time
8. Advanced Patterns (LOW)
advanced-effect-event-deps- Don't putuseEffectEventresults in effect depsadvanced-event-handler-refs- Store event handlers in refsadvanced-init-once- Initialize app once per app loadadvanced-use-latest- useLatest for stable callback refs
How to Use
Read individual rule files for detailed explanations and code examples:
rules/async-parallel.md
rules/bundle-barrel-imports.mdEach rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

