AGENTS.md@.agents/skills/vercel-react-best-practicesB

AGENTS.md@.agents/skills/vercel-react-best-practices from cherryhq/cherry-studio is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add cherryhq/cherry-studio/.agents/skills/vercel-react-best-practices/AGENTS.md@git:20260316.6eb461d

Pins git:20260316.6eb461d in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 13 of 14 checks passed
Kind
AGENTS.md file
Repository
cherryhq/cherry-studio
Path
.agents/skills/vercel-react-best-practices/AGENTS.md
Versions recorded
1
Latest version
git:20260316.6eb461d, committed Mar 16, 2026
Size
90,832 bytes
Repository stars
52,815
License
AGPL-3.0

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

# React Best Practices

**Version 1.0.0**  
Vercel Engineering  
January 2026

> **Note:**  
> This document is mainly for agents and LLMs to follow when maintaining,  
> generating, or refactoring React and Next.js codebases. Humans  
> may also find it useful, but guidance here is optimized for automation  
> and consistency by AI-assisted workflows.

---

## Abstract

Comprehensive performance optimization guide for React and Next.js applications, designed for AI agents and LLMs. Contains 40+ rules across 8 categories, prioritized by impact from critical (eliminating waterfalls, reducing bundle size) to incremental (advanced patterns). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics to guide automated refactoring and code generation.

---

## Table of Contents

1. [Eliminating Waterfalls](#1-eliminating-waterfalls) — **CRITICAL**
   - 1.1 [Defer Await Until Needed](#11-defer-await-until-needed)
   - 1.2 [Dependency-Based Parallelization](#12-dependency-based-parallelization)
   - 1.3 [Prevent Waterfall Chains in API Routes](#13-prevent-waterfall-chains-in-api-routes)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add cherryhq/cherry-studio/.agents/skills/vercel-react-best-practices/AGENTS.md@sha256:ddf4a114b379643d

The line at the top of this page pins the label git:20260316.6eb461d, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_klza7qqb5s6bpofa.svg)](https://markdownregistry.com/a/art_klza7qqb5s6bpofa)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 16, 2026.

versioncommittedcommitsizeaudit
git:20260316.6eb461d latest2026-03-16 6eb461d 90,832 BB view

Audit of the latest version

B  13 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No script tag (matched: <script)
  • pass: Size between 200 bytes and 200 KB (90832 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

Starting a new one? Use a template for AGENTS.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

cherryhq/cherry-studio · 52,815 stars · license AGPL-3.0 · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_klza7qqb5s6bpofa
GET https://markdownregistry.com/api/v1/resolve?ref=cherryhq/cherry-studio/.agents/skills/vercel-react-best-practices/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/ddf4a114b379643df94d0cb1f651a55f46c8e7b7249d8575ae7d3dbca133df79

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.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from cherryhq/cherry-studio

AGENTS.md@.agents/notes AGENTS.md file
cherryhq/cherry-studio · .agents/notes/AGENTS.md
git:20261017.46ef0b8 · audit A · 52,815 stars
AGENTS.md@.agents/notes/implemented AGENTS.md file
cherryhq/cherry-studio · .agents/notes/implemented/AGENTS.md
git:20261017.46ef0b8 · audit A · 52,815 stars
AGENTS.md@.agents/notes/proposed AGENTS.md file
cherryhq/cherry-studio · .agents/notes/proposed/AGENTS.md
git:20261017.46ef0b8 · audit A · 52,815 stars
agent-notes SKILL.md skill
cherryhq/cherry-studio · .agents/skills/agent-notes/SKILL.md · Use when deciding whether a Cherry Studio change needs an Agent Note, authoring or reviewing a Spec, recording a…
git:20261017.46ef0b8 · audit A · 52,815 stars
cherry-electron-dev SKILL.md skill
cherryhq/cherry-studio · .agents/skills/cherry-electron-dev/SKILL.md · Develop, fix, profile, and test PRs in a tracked Cherry Studio Electron instance. Use for implementation, UI and…
git:20261015.08af826 · audit A · 52,815 stars
cherry-regression-test SKILL.md skill
cherryhq/cherry-studio · .agents/skills/cherry-regression-test/SKILL.md · Run Cherry Studio critical-path system regression tasks through the repository-owned Playwright E2E workflow. Use for…
git:20260922.bdd4113 · audit A · 52,815 stars
create-skill SKILL.md skill
cherryhq/cherry-studio · .agents/skills/create-skill/SKILL.md · Create a new skill in the current repository. Use when the user wants to create/add a new skill, or mentions creating a…
git:20260316.fe0678a · audit A · 52,815 stars
docs-governance SKILL.md skill
cherryhq/cherry-studio · .agents/skills/docs-governance/SKILL.md · Use when writing, restructuring, auditing, or reviewing Cherry Studio repository documentation, READMEs, JSDoc…
git:20261017.46ef0b8 · audit A · 52,815 stars
find-simplifications SKILL.md skill
cherryhq/cherry-studio · .agents/skills/find-simplifications/SKILL.md · Use when asked to find or plan Cherry Studio cleanup, simplification, refactoring, dead-code removal, duplicated state…
git:20261017.46ef0b8 · audit A · 52,815 stars
gh-create-issue SKILL.md skill
cherryhq/cherry-studio · .agents/skills/gh-create-issue/SKILL.md · Use when user wants to create a GitHub issue for the current repository. Must read and follow the repository's issue…
git:20260822.5f660de · audit A · 52,815 stars
gh-create-pr SKILL.md skill
cherryhq/cherry-studio · .agents/skills/gh-create-pr/SKILL.md · Create or update GitHub pull requests using the repository-required workflow and template compliance. Use when asked to…
git:20261017.46ef0b8 · audit A · 52,815 stars
gh-pr-review SKILL.md skill
cherryhq/cherry-studio · .agents/skills/gh-pr-review/SKILL.md · Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use…
git:20260903.2c65c71 · audit A · 52,815 stars

Every file in cherryhq/cherry-studio

Other files named AGENTS.md@.agents/skills/vercel-react-best-practices

AGENTS.md@.agents/skills/vercel-react-best-practices AGENTS.md file
gronxb/hot-updater · .agents/skills/vercel-react-best-practices/AGENTS.md
git:20260402.a935992 · audit B · 1,778 stars
AGENTS.md@.agents/skills/vercel-react-best-practices AGENTS.md file
asymmetric-al/core · .agents/skills/vercel-react-best-practices/AGENTS.md
git:20260612.9ac3f47 · audit B · 379 stars
AGENTS.md@.agents/skills/vercel-react-best-practices AGENTS.md file
nicholyx/ai-skills · .agents/skills/vercel-react-best-practices/AGENTS.md
git:20260516.dd241a9 · audit B · 6 stars

Browse by kind, by grade B, or by owner.