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

The newest version of a file that held these bytes earlier

skills/react-best-practices/AGENTS.md in vercel-labs/agent-skills is at git:20260414.dc8367e (Apr 14, 2026), graded B.

mdr add vercel-labs/agent-skills/skills/react-best-practices/AGENTS.md@git:20260414.dc8367e

This copy is 2 versions behind it. See what changed · install this older copy instead

This line moves to the next version by itself within about an hour of that file saving one. A copy already installed stays as it is until you update it.

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

Audit grade
B, 13 of 14 checks passed
Kind
AGENTS.md file
Repository
yikart/aitoearn
Path
project/aitoearn-web/.agents/skills/vercel-react-best-practices/AGENTS.md
Versions recorded
1
Latest version
git:20260623.e3abc45, committed Jun 23, 2026
Size
105,774 bytes
Repository stars
27,948
License
MIT

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 [Check Cheap Conditions Before Async Flags](#11-check-cheap-conditions-before-async-flags)
   - 1.2 [Defer Await Until Needed](#12-defer-await-until-needed)
   - 1.3 [Dependency-Based Parallelization](#13-dependency-based-parallelization)
…

Read the whole file at its exact version.

How to install

This older copy, pinned
mdr add yikart/aitoearn/project/aitoearn-web/.agents/skills/vercel-react-best-practices/AGENTS.md@git:20260623.e3abc45

Pins git:20260623.e3abc45 in mdr.lock, 2 versions behind the newest at the top of this page.

The exact contents, by fingerprint
mdr add yikart/aitoearn/project/aitoearn-web/.agents/skills/vercel-react-best-practices/AGENTS.md@sha256:d317411c6b025561

The older copy line above pins the label git:20260623.e3abc45, 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_unxnfaiawtjhzlth.svg)](https://markdownregistry.com/a/art_unxnfaiawtjhzlth)

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

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: get me the newest vercel-labs/agent-skills/skills/react-best-practices/AGENTS.md, and what changed since d317411? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of AGENTS.md from somewhere else? Ask it: where did my AGENTS.md come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 1 version of this file, committed on Jun 23, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260623.e3abc45 latest2026-06-23 e3abc45 105,774 BB view

Copies

The newest version, then this copy

Newest: git:20260414.dc8367e of skills/react-best-practices/AGENTS.md in vercel-labs/agent-skills (skills/react-best-practices/AGENTS.md), graded B.

This copy: byte for byte that file's version git:20260402.93f5a2d, which it committed on Apr 2, 2026, before this repository did; graded B, 2 versions behind.

See what changed since these bytes · ask your agent

Matched on the exact bytes and the commit dates, nothing else. It does not say who wrote the file or where this repository got it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

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 (105774 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

yikart/aitoearn · 27,948 stars · license MIT · pushed 2026-11-12 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_unxnfaiawtjhzlth
GET https://markdownregistry.com/api/v1/resolve?ref=yikart/aitoearn/project/aitoearn-web/.agents/skills/vercel-react-best-practices/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/d317411c6b025561bb47607cf35ad8a00ef130dfb93d16b3bab6a6d157ec26b4

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 yikart/aitoearn

AGENTS.md AGENTS.md file
yikart/aitoearn · AGENTS.md
git:20260511.af12127 · audit A · 27,948 stars
caveman SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/caveman/SKILL.md · Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping…
git:20260623.e3abc45 · audit A · 27,948 stars
diagnose SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/diagnose/SKILL.md · Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument →…
git:20260623.e3abc45 · audit A · 27,948 stars
grill-me SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/grill-me/SKILL.md · Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of…
git:20260623.e3abc45 · audit A · 27,948 stars
grill-with-docs SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/grill-with-docs/SKILL.md · Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates…
git:20260623.e3abc45 · audit A · 27,948 stars
handoff SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/handoff/SKILL.md · Compact the current conversation into a handoff document for another agent to pick up.
git:20260623.e3abc45 · audit A · 27,948 stars
improve-codebase-architecture SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/improve-codebase-architecture/SKILL.md · Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in…
git:20260623.e3abc45 · audit A · 27,948 stars
prototype SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/prototype/SKILL.md · Build a throwaway prototype to flesh out a design before committing to it. Routes between two branches — a runnable…
git:20260623.e3abc45 · audit A · 27,948 stars
setup-matt-pocock-skills SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/setup-matt-pocock-skills/SKILL.md · Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's…
git:20260623.e3abc45 · audit A · 27,948 stars
tdd SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/tdd/SKILL.md · Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD…
git:20260623.e3abc45 · audit A · 27,948 stars
to-issues SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/to-issues/SKILL.md · Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet…
git:20260623.e3abc45 · audit A · 27,948 stars
to-prd SKILL.md skill
yikart/aitoearn · project/aitoearn-backend/.agents/skills/to-prd/SKILL.md · Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to…
git:20260623.e3abc45 · audit A · 27,948 stars

Every file in yikart/aitoearn

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