Applies 40+ React performance rules across 8 priority categories, from eliminating client-server waterfalls to micro-optimizations. Automatically flags and fixes issues when writing or reviewing React code.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part of Agent Skills™ by googleadsagent.ai™
React Best Practices codifies 40+ rules across 8 priority categories, from Critical (eliminating waterfalls, reducing bundle size) to Low-Medium (JavaScript micro-optimizations). Each rule is actionable, includes a severity rating, and provides before/after code examples. The agent applies these rules automatically when writing or reviewing React code.
The rules are ordered by impact, not by ease of implementation. Eliminating client-server waterfalls and reducing bundle size yield the largest performance gains and therefore receive Critical priority. Server-side rendering performance and client data fetching patterns follow. Re-render optimization—often the first thing developers reach for—is rated Medium because it rarely causes measurable user-facing performance problems compared to network and bundle issues.
This skill treats React performance as a system property, not a component property. The highest-impact optimizations happen at the architecture level: where data is fetched, how bundles are split, and which rendering strategy is chosen. Component-level optimizations (memoization, key stability) are included but correctly deprioritized.
graph TD
A[React Code Change] --> B{Priority Scan}
B --> C["🔴 Critical: Waterfalls"]
B --> D["🔴 Critical: Bundle Size"]
B --> E["🟠 High: Server Perf"]
B --> F["🟡 Med-High: Client Fetch"]
B --> G["🟡 Medium: Re-renders"]
B --> H["🟡 Medium: Render Perf"]
B --> I["🔵 Low-Med: Micro-opts"]
C --> J[Apply Fixes by Priority]
D --> J
E --> J
F --> J
G --> J
H --> J
I --> J
Rules are evaluated in priority order. Critical issues are flagged as blockers; lower-priority items are noted as suggestions. The agent applies the highest-impact fixes first.
// BAD: Sequential fetches create waterfalls
function Dashboard() {
const user = use(fetchUser()); // 200ms
const posts = use(fetchPosts(user.id)); // 200ms after user resolves
const stats = use(fetchStats(user.id)); // 200ms after user resolves
// Total: 600ms sequential
}
// GOOD: Parallel fetches with server components
async function Dashboard() {
const user = await fetchUser();
const [posts, stats] = await Promise.all([
fetchPosts(user.id),
fetchStats(user.id),
]);
// Total: 400ms (user + parallel posts/stats)
}
// BAD: Import entire library
import { format } from "date-fns";
// GOOD: Tree-shakeable import
import { format } from "date-fns/format";
// BAD: Eager loading heavy components
import { HeavyChart } from "./HeavyChart";
// GOOD: Lazy loading with Suspense
const HeavyChart = lazy(() => import("./HeavyChart"));
// BAD: New object reference every render
<UserContext.Provider value={{ user, theme, locale }}>
// GOOD: Stable reference with useMemo
const contextValue = useMemo(
() => ({ user, theme, locale }),
[user, theme, locale]
);
<UserContext.Provider value={contextValue}>
dynamic(() => import(...)) for any component not visible in the initial viewportuseMemo/useCallback—profile first to confirm the re-render is costly| Platform | Support | Notes |
|---|---|---|
| Cursor | Full | Lint + review integration |
| VS Code | Full | ESLint plugin support |
| Windsurf | Full | React-aware analysis |
| Claude Code | Full | Code review application |
| Cline | Full | Rule-based review |
| aider | Partial | Manual rule application |
react performance best-practices bundle-size waterfall-elimination server-components re-render-optimization core-web-vitals
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/all-skills:react-best-practicesfrom all-skills
npx claudepluginhub itallstartedwithaidea/agent-skills --plugin all-skillsOther plugins' skills for the same job
73 skills in this plugin
/ad-copy-generationThe Ad Copy Generation skill produces high-performance responsive search ad (RSA) copy using AI-driven generation pipelines calibrated against millions of ad performance data points./adversarial-resilienceAdversarial Resilience is the practice of hardening AI agents against deliberate attacks — prompt injection, data exfiltration, sandbox escape, and unauthorized capability escalation./agent-instinct-systemThe Agent Instinct System implements pre-cognitive reflexes — automatic safety checks and validations that fire before every code change, tool call, or output generation.2 plugins ship this exact skill · first indexed Jul 18, 2026