react-best-practices
Write fast, correct React and Next.js code
- For people who code
- Nothing to set up
What it does
React and Next.js performance optimization guidelines from Vercel Engineering.
A structured repository for creating and maintaining React Best Practices optimized for agents and LLMs.
rules/- Individual rule files (one per rule)_sections.md- Section metadata (titles, impacts, descriptions)_template.md- Template for creating new rulesarea-description.md- Individual rule filessrc/- Build scripts and utilitiesmetadata.json- Document metadata (version, organization, abstract)- `AGENTS.md` - Compiled output (generated)
- `test-cases.json` - Test cases for LLM evaluation (generated)
From skills/react-best-practices/README.md in vercel-labs/agent-skills · a snapshot from Nov 24, 2026, so it may be a little out of date
Try it
- 1Add react-best-practices to your AI
- 2Ask for something like this
Review this Next.js page for performance problems: data-fetching waterfalls, bundle size, needless re-renders.
Our product list page is slow on phones. Find the React patterns causing it and fix them.
Refactor this component following Vercel's React guidelines and explain each change in one line.
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Runs commands on your computer
- Goes online
No clear license.
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
063bee9vercel-labs/agent-skills/skills/react-best-practices- Scanned on
- Nov 10, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanPassed
- Dangerous commandsNoticed
SkillSpector: RP1 MEDIUM AGENTS.md:2477 MCP server referenced without pinned version: 'npx svgo'.SkillSpector: RP1 MEDIUM rules/rendering-svg-precision.md:27 MCP server referenced without pinned version: 'npx svgo'. - Network callsNoticed
agentscan: network medium AGENTS.md:1498 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure)agentscan: network medium AGENTS.md:945 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure)agentscan: network medium AGENTS.md:949 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure) - PermissionsPassed
- Prompt injectionNoticed
SkillSpector: OH1 HIGH AGENTS.md:2537 Unvalidated Output InjectionPasses unchecked output along as instructions. (LLM05 Improper Output Handling)SkillSpector: OH1 HIGH rules/rendering-hydration-no-flicker.md:63 Unvalidated Output InjectionPasses unchecked output along as instructions. (LLM05 Improper Output Handling) - LicenseNoticed
GitHub API: No license found.License is missing or unclear. (LLM03 Supply Chain) - MaintenancePassed
No person has signed this one off yet.
nothing found (markdown only; 'analytics', 'cookie' and dangerouslySetInnerHTML hits are code examples).
An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 35kwhole repo
- Last updated
- Nov 20, 2026on GitHub
GitHub numbers are a snapshot from Nov 24, 2026, not live.
Community
Comments
How to add react-best-practices to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.