Skip to content
Back to skills

React Perf Perfection

ASecurity

A "No-Compromise" React performance checklist enforcing strict re-render discipline and bundle auditing.

  • 207 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 7, 2026
developmentreactperformance

Security analysis

A100/100

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

Scanned February 12, 2026

npx -y skills add NeverSight/skills_feed --skill react_perf_perfection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Perf Perfection?

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

Security grade badge for React Perf Perfection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-react-perf-perfection/badge)](https://www.skillsdirectory.com/skills/neversight-react-perf-perfection)

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_perf_perfection
description: A "No-Compromise" React performance checklist enforcing strict re-render discipline and bundle auditing.
allowed-tools: Read, Edit
---

# React Performance Perfection Protocol

## 1. Re-render Police
- **Strict Rule**: Every `useEffect`, `useCallback`, and `useMemo` must have a **justified** dependency array.
- **Check**:
    - Are object/array props creating new references on every render? -> Use `useMemo`.
    - Are function props defined inline? -> Move to `useCallback` or outside component.
- **Tool**: If available, use `React DevTools Profiler` mental model (Why did this render?).

## 2. Bundle Diet
- **Strict Rule**: No "Barrel File" imports for massive libraries (e.g., `import { X } from 'lodash'`). Use direct paths (`import X from 'lodash/X'`) unless tree-shaking is verified.
- **Images**: No `import img from './large.png'`. Use lazy loading or external hosting.
- **Lazy Loading**: Route-level components MUST be lazy loaded (`React.lazy`).

## 3. The "Interaction to Next Paint" (INP) Rule
- **Heavy computations** (>50ms) must strictly be wrapped in `useTransition` or moved to a Web Worker.
- Blocking the main thread for UI updates is **Forbidden**.

## 4. Checklist Before Edit
- [ ] Will this change cause a parent re-render?
- [ ] Am I importing a huge library for a small utility?
- [ ] Is this state strictly local, or am I polluting the global store?

Files in this skill

  • SKILL.md1.4 KB
  • description_cn.txt98 B
  • description_de.txt129 B
  • description_en.txt105 B
  • description_es.txt145 B
  • description_fr.txt146 B
  • description_ja.txt146 B
  • description_ko.txt118 B
  • description_tw.txt98 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.

Comments

Loading comments…

Newsletter

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