Skip to content
Back to skills

React Best Practices

ASecurity

Use when building or optimizing React or Next.js rendering, data fetching, bundles, or Server Actions, not styling.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
developmentjavascriptgojavareactnextjsrefactoringperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill react-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-react-best-practices/badge)](https://www.skillsdirectory.com/skills/anntnzrb-react-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react-best-practices
description: "Use when building or optimizing React or Next.js rendering, data fetching, bundles, or Server Actions, not styling."
license: AGPL-3.0-or-later
metadata:
  author: anntnzrb

---

# Vercel React Best Practices

React/Next.js performance-optimization guidance from Vercel Engineering. Apply the smallest relevant rule set; do not apply every rule opportunistically.

## Apply when

- Writing new React components or Next.js pages
- Implementing client- or server-side data fetching
- Reviewing performance issues
- Refactoring existing React/Next.js code
- Optimizing bundle size or load times

## Required follow-up reads

| Need | Read | When |
| --- | --- | --- |
| Pick a rule category by impact | `rules/_sections.md` | Before selecting optimization rules |
| Apply a specific optimization | Matching `rules/<rule-id>.md` | After identifying the bottleneck |
| Newer upstream guidance and corrections | `references/upstream-updates.md` | Before applying a rule or reviewing a category |
| Expanded Vercel guidance | `references/vercel-guide.md` | A broad review, or rule detail is insufficient |
| Secure Next.js Server Actions | `rules/server-auth-actions.md` | Creating or reviewing Server Actions |
| Human-facing package context | `README.md` | When needed |

## Category prefixes

1. Eliminating Waterfalls: `async-`
2. Bundle Size Optimization: `bundle-`
3. Server-Side Performance: `server-`
4. Client-Side Data Fetching: `client-`
5. Re-render Optimization: `rerender-`
6. Rendering Performance: `rendering-`
7. JavaScript Performance: `js-`
8. Advanced Patterns: `advanced-`

## Use

1. Start from the user-visible outcome or observed bottleneck.
2. Load `rules/_sections.md` to choose the relevant category.
3. Read `references/upstream-updates.md` for new rules and corrections.
4. Load only the matching rule files needed for the change. Use `references/vercel-guide.md` for a broad review, subject to the corrections in `references/upstream-updates.md`.

## Maintenance

Review upstream changes against the commit in `UPSTREAM.json`. Port applicable changes, then update the commit and tree hash together. See `docs/skills.md` in the source repository for the drift workflow.

Files in this skill

  • NOTICE.md462 B
  • README.md3.3 KB
  • SKILL.md2.2 KB
  • UPSTREAM.json213 B
  • references/upstream-updates.md5 KB
  • references/vercel-guide.md60.1 KB
  • rules/_sections.md1.6 KB
  • rules/_template.md633 B
  • rules/advanced-event-handler-refs.md1.5 KB
  • rules/advanced-use-latest.md1.2 KB
  • rules/async-api-routes.md1.1 KB
  • rules/async-defer-await.md2 KB
  • rules/async-dependencies.md1.2 KB
  • rules/async-parallel.md659 B
  • rules/async-suspense-boundaries.md2.5 KB
  • rules/bundle-barrel-imports.md2.5 KB
  • rules/bundle-conditional.md927 B
  • rules/bundle-defer-third-party.md928 B
  • rules/bundle-dynamic-imports.md799 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.