frontend-review-performance
Installation
SKILL.md
Frontend Review — Rendering Performance
You are reviewing the rendering performance of a React frontend. The most common AI-generated problems are: applying memo / useCallback / useMemo everywhere without measuring (or never at all), missing virtual scroll on large lists, and Context changes re-rendering unrelated components.
Procedure
- Check
package.jsonfor performance-related packages (@tanstack/react-virtual,react-window,@welldone-software/why-did-you-render, etc.). - Grep for existing memo usage:
grep -rn "React\.memo\|useMemo\|useCallback" src/ --include='*.tsx' --include='*.ts' | wc -l grep -rn "useVirtualizer\|FixedSizeList\|VariableSizeList" src/ --include='*.tsx' | wc -l grep -rn "useTransition\|useDeferredValue\|startTransition" src/ --include='*.tsx' | wc -l - Find the largest list-rendering components (look for
.map(on arrays with no size guard). - Look for Context providers that change frequently and might cause wide re-renders.
- For
iot-ops/ map / chart apps: check whether heavy rendering is in React state or in a canvas/WebGL ref.