react-performance

react-performance is a skill for Claude Code, Codex from LeahyCC/claude-skills. It costs 72 tokens per session (1,814 once invoked), scanned A, original, MIT.

A guide to measuring and improving the performance of React applications. React is a tool for building user interfaces; the guide covers rendering, page-loading metrics, bundle size, and server-rendered components.

In plain words
What is it for?
Use it to profile React components, investigate Core Web Vitals such as loading and layout stability, reduce bundle size, and choose fixes such as code splitting or deferred work.
Why use it?
It helps locate the actual cause of slow pages, unnecessary component updates, delayed interactions, or large downloads before changing code.

Skill for Claude CodeCodex

Part of the claude-skills plugin — 7 skills, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/leahycc/claude-skills/react-performance
Any agent
npx skills add LeahyCC/claude-skills --skill react-performance
Clone the repo
git clone --depth 1 https://github.com/LeahyCC/claude-skills

Made for: Claude Code, Codex.

Or install claude-skills, the plugin that ships this one along with the rest of its 7 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/leahycc/claude-skills/react-performance.svg)](https://agentmods.dev/skills/leahycc/claude-skills/react-performance)
Your own site
<a href="https://agentmods.dev/skills/leahycc/claude-skills/react-performance"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/react-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00072 $0.01814
Opus 5 $0.00036 $0.00907
Sonnet 5 $0.00014 $0.00363
Haiku 4.5 $0.00007 $0.00181

Measured 5d ago against content hash ec51148a22c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/react-performance/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Performance

Comprehensive React performance guidance covering measurement, rendering optimization, bundle size, Core Web Vitals, and Server Component patterns. Verified against React docs and Web Vitals specifications.

First principle: Measure before you optimize. This skill teaches you to find problems before fixing them.

Architecture Overview

[Diagnose]
    ├── React DevTools Profiler (component render times)
    ├── Chrome Performance Panel (main thread activity)
    ├── web-vitals library (LCP, INP, CLS in production)
    └── Bundle analyzer (what's in the bundle)
              ↓
[Identify Root Cause]
    ├── Unnecessary re-renders? → Memoization / state colocation
    ├── Slow initial load? → Code splitting / Server Components
    ├── Janky interactions? → useTransition / useDeferredValue
    ├── Layout shifts? → Image/font optimization
    └── Large bundle? → Dynamic imports / tree shaking
              ↓
[Fix — Least Invasive First]
    ├── 1. Restructure components (children pattern, local state)
    ├── 2. Enable React Compiler (auto-memoization)
    ├── 3. Use concurrent features (transitions, deferred values)
    ├── 4. Move work to Server Components
    ├── 5. Code split heavy dependencies
    └── 6. Manual memo/useMemo/useCallback (last resort)

Quick Reference

Need to... See
Measure performance before optimizing Profiling and Measurement
Fix unnecessary re-renders Rendering Optimization
Reduce JavaScript bundle size Bundle Optimization
Fix LCP, INP, or CLS scores Core Web Vitals
Decide Server vs Client Components Server Components
Handle large lists and data sets Data and Lists
Optimize images, fonts, and media Assets
Decide when React Compiler handles it React Compiler

Read the full file on GitHub · 144 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 144 lines · 72 tokens per session scan A ec51148a22c7

Subscribe to this mod's changes

react-performance is a skill published in the GitHub repository LeahyCC/claude-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,814 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Accessibility Audit Helper

Reviews UI code and components for WCAG 2.1 accessibility violations and provides specific fixes.

Notysoty/openagentskills · 23 tokens

accessibility

Accessibility patterns for WCAG 2.2 compliance, keyboard focus management, React Aria component patterns, cognitive inclusion, native HTML-first philosophy, and user preference honoring. Use when implementing screen reader support, keyboard navigation, ARIA patterns, focus traps, accessible component libraries…

yonatangross/orchestkit · 65 tokens

zero-visual-delta-handoff

Disziplin für visuell unsichtbare Refactorings und Komponenten-Migrationen – null geänderte Snapshot-Bilder gegen den Base-Branch als hartes Akzeptanzkriterium, mit lokaler deterministischer Prüfpipeline, Pixel-/DOM-Analyse und Companion-Plan als Handoff über Sessions. Trigger: "zero visual delta", "visuell…

public-ui/kolibri · 0 tokens

theme-redundancy-check

Identifiziert redundante Styles in Theme-Paketen, die besser im Basis-Styling des Components-Pakets verortet werden sollten. Analysiert alle Themes außer theme-unstyled, konsolidiert Dopplungen und sichert Null-Visuelle-Deltas durch Tests. Trigger: "Theme-Redundanz-Check", "redundante Theme-Styles finden", "Styles…

public-ui/kolibri · 0 tokens

chrome-ext-ui-react

This skill should be used when building React UI for Chrome extensions or when the user asks about UI patterns in extensions. Trigger when: "React in extension", "extension popup React", "side panel React", "Shadow DOM React", "content script UI", "createShadowRootUi", "extension accessibility", "rem to px extension"…

RadOrigin-LLC/RAD-Claude-Skills · 114 tokens

wes-bos-sick-picks

Research-first workflow for building frontend UI components (any framework), in the spirit of Wes Bos. Use when designing or implementing a UI component, layout, interaction, or CSS/HTML feature and you want a modern, accessible, best-practice solution rather than a first guess. Researches pitfalls and platform…

boserup/wes-bos-sick-picks · 140 tokens