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

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

Install it, pinned
mdr add coco-research/coco/skills/vercel-react-best-practices/AGENTS.md@git:20260426.d53cc6c

Pins git:20260426.d53cc6c in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 13 of 14 checks passed
Kind
AGENTS.md file
Repository
coco-research/coco
Path
skills/vercel-react-best-practices/AGENTS.md
Versions recorded
1
Latest version
git:20260426.d53cc6c, committed Apr 26, 2026
Size
81,716 bytes
Repository stars
629
License
Apache-2.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 coco-research/coco/skills/vercel-react-best-practices/AGENTS.md@sha256:be5257266331a38b

The line at the top of this page pins the label git:20260426.d53cc6c, 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_j4coyhsruzcq2unb.svg)](https://markdownregistry.com/a/art_j4coyhsruzcq2unb)

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

Versions

The registry has recorded 1 version of this file, committed on Apr 26, 2026.

versioncommittedcommitsizeaudit
git:20260426.d53cc6c latest2026-04-26 d53cc6c 81,716 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 (81716 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

coco-research/coco · 629 stars · license Apache-2.0 · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_j4coyhsruzcq2unb
GET https://markdownregistry.com/api/v1/resolve?ref=coco-research/coco/skills/vercel-react-best-practices/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/be5257266331a38b025243e813b6dfe2b50659a9b7990a3556c1110cfc9d5e91

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 coco-research/coco

AGENTS.md AGENTS.md file
coco-research/coco · AGENTS.md
git:20261007.61dca6d · audit A · 629 stars
create-rule SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-rule/SKILL.md · Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up…
git:20260426.d53cc6c · audit A · 629 stars
create-skill SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-skill/SKILL.md · Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a…
git:20260426.d53cc6c · audit A · 629 stars
create-subagent SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-subagent/SKILL.md · Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up…
git:20260426.d53cc6c · audit A · 629 stars
migrate-to-skills SKILL.md skill
coco-research/coco · adapters/cursor/skills/migrate-to-skills/SKILL.md · Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent…
git:20260426.d53cc6c · audit A · 629 stars
update-cursor-settings SKILL.md skill
coco-research/coco · adapters/cursor/skills/update-cursor-settings/SKILL.md · Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences…
git:20260426.d53cc6c · audit A · 629 stars
_selftest SKILL.md skill
coco-research/coco · evals/skills/_selftest/SKILL.md
git:20261017.31c57de · audit C · 629 stars
agent-lightning SKILL.md skill
coco-research/coco · skills/agent-lightning/SKILL.md · Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting…
git:20260802.1479e32 · audit A · 629 stars
agent-self-eval SKILL.md skill
coco-research/coco · skills/agent-self-eval/SKILL.md · Post-run self-evaluation system that scores agent output on correctness, clarity, actionability, and conciseness. Use…
v0.1.0 · audit A · 629 stars
ai-marketing-videos SKILL.md skill
coco-research/coco · skills/ai-marketing-videos/SKILL.md · Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for…
git:20260914.57d3294 · audit A · 629 stars
ai-product SKILL.md skill
coco-research/coco · skills/ai-product/SKILL.md · Use when building AI features into a product: LLM integration, RAG pipelines, guardrails, streaming, AI UX, prompt…
v0.1.0 · audit A · 629 stars
api-design-principles SKILL.md skill
coco-research/coco · skills/api-design-principles/SKILL.md · Use when designing a new REST or GraphQL API, reviewing an API spec before implementation, setting team API standards…
git:20260914.e75f220 · audit A · 629 stars

Every file in coco-research/coco

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

AGENTS.md@skills/vercel-react-best-practices AGENTS.md file
miladjoodi/skills · skills/vercel-react-best-practices/AGENTS.md
git:20261011.ac45e0b · audit B · 24 stars
AGENTS.md@skills/vercel-react-best-practices AGENTS.md file
dannykkh/skill-olympus · skills/vercel-react-best-practices/AGENTS.md
git:20260131.1b9fc84 · audit B · 7 stars
AGENTS.md@skills/vercel-react-best-practices AGENTS.md file
transitive-bullshit/skills · skills/vercel-react-best-practices/AGENTS.md
git:20261011.ef64499 · audit B · 4 stars
AGENTS.md@skills/vercel-react-best-practices AGENTS.md file
marcellocurto/skills · skills/vercel-react-best-practices/AGENTS.md
git:20261002.427fecc · audit B · 3 stars

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