# React perf

> React perf is an open-source agent skill for developer tools. Audits React components for render performance problems, ranked by likely impact. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tonyghiani/ai-essentials/tree/main/skills/react-perf
- **Repository:** https://github.com/tonyghiani/ai-essentials
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** react-perf
- **Collection:** https://github.com/tonyghiani/ai-essentials
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a read-only React render performance audit. It works through the code in a fixed order: first checking whether too much data is rendered, whether work runs in the wrong place, whether state sits too high in the tree, whether context values are unstable, and whether effects cause extra render passes. Memoisation is only considered last, and only when there is a concrete reason it would prevent a costly re-render.

Each finding must name a file and line, the mechanism that triggers the re-render, a rough estimate of how many components and how often, a proposed fix, and a way to confirm it, such as a React DevTools Profiler recording or a Performance panel trace. Findings are grouped by severity. The skill also lists common false positives it avoids, like memoising handlers passed to DOM elements or wrapping cheap expressions in hooks.

When the target is empty, the skill audits files changed on the current branch relative to the base branch. It runs as a separate forked agent and reports only; it does not edit code. If the code does not explain a slowdown, it says so and points toward network, query, bundle or layout causes instead.

## When your agent uses it

> Audit React render performance from the code, prioritised by measured or measurable impact. Invoke when the user reports a slow or janky UI, asks about re-renders, mentions memo/useMemo/useCallback, or asks for a perf review of a component tree. Refuses to recommend memoisation without a reason.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/react-perf)
- [License: MIT](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/react-perf)

## Features

- **Ordered audit checklist:** Works through data volume, state placement, context stability, effects and memoisation in a fixed priority order.
- **Evidence-backed findings:** Each finding must name a file and line, a render mechanism, estimated impact and a profiling step to confirm it.
- **Severity grading:** Classifies issues as critical, important or minor based on unbounded work, unstable context and wide re-renders.
- **Memoisation guardrails:** Excludes common cargo-cult patterns such as memo on always-changing props or hooks around trivial arithmetic.
- **Branch diff targeting:** Falls back to files changed against the base branch when no specific target is given.
- **Read-only reporting:** Runs as a separate agent that reports findings without editing the codebase.

## Good for

- Review a slow data table component for rendering too many rows
- Find out why a form re-renders on every keystroke
- Check a React context provider for unstable values causing consumer re-renders
- Audit the components changed on my branch for render performance issues
- Decide whether useMemo or useCallback is actually justified in a component

## Install

### Claude Code

This skill ships in the `ai-essentials` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentials
```

Or copy only this skill to `~/.claude/skills/react-perf`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/react-perf &&
cp -R "$tmp/skills/react-perf" ~/.claude/skills/react-perf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/react-perf` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/react-perf` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/react-perf &&
cp -R "$tmp/skills/react-perf" ~/.agents/skills/react-perf &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/react-perf` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/react-perf` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/react-perf &&
cp -R "$tmp/skills/react-perf" ~/.cursor/skills/react-perf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/react-perf` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/tonyghiani/ai-essentials.git --path skills/react-perf
```

Or copy the folder to `~/.gemini/skills/react-perf` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/react-perf`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/react-perf &&
cp -R "$tmp/skills/react-perf" ~/.copilot/skills/react-perf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/react-perf` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git
```

Then copy `ai-essentials/skills/react-perf` into your agent's skills folder as `react-perf`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does React perf trigger?

It is invoked when a user reports a slow or janky UI, asks about re-renders, mentions memo, useMemo or useCallback, or asks for a performance review of a component tree.

### Does React perf change my code?

No. It runs as a read-only agent and reports findings only; it never edits files.

### What does React perf audit if I give no target?

It audits the files changed on the current branch compared with origin/HEAD or the base branch named by the caller, reading each file in full.

### Does React perf recommend memoisation by default?

No. Memoisation is the last step and is only recommended when the audit can name the re-render it prevents and why that render is costly.

### What if the code shows no render problems?

It reports that no render-performance findings were found and suggests profiling, since the slowness may come from network, queries, bundle size or layout.

### How do I install React perf in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/react-perf to use it in all your projects, or to .claude/skills/react-perf in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.

### Does React perf run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use React perf?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to React perf?

The closest alternatives to React perf are Frontend perf, Performance audit, React patterns, React native best practices and Audit frontend design.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Frontend perf](https://ai-powered.com/skills/frontend-perf): Frontend perf is an open-source agent skill for developer tools.
- [Performance audit](https://ai-powered.com/skills/performance-audit): Performance audit is an open-source agent skill for developer tools.
- [React patterns](https://ai-powered.com/skills/react-patterns-tonyghiani): React patterns is an open-source agent skill for developer tools.
- [React native best practices](https://ai-powered.com/skills/react-native-best-practices): React native best practices is an open-source agent skill for developer tools.
- [Audit frontend design](https://ai-powered.com/skills/audit-frontend-design): Audit frontend design is an open-source agent skill for design and media.
- [Performance audit edho ferdian](https://ai-powered.com/skills/performance-audit-edho-ferdian): Performance audit edho ferdian is an open-source agent skill for developer tools.
- [Frontend security](https://ai-powered.com/skills/frontend-security): Frontend security is an open-source agent skill for security.
- [Performance](https://ai-powered.com/skills/performance-liuyi0808): Performance is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/react-perf
