Agent skill
reviewing-performance-patterns
Review React 19 performance patterns including memoization, re-renders, and bundle size. Use when reviewing performance or optimization.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/reviewing-performance-patterns
SKILL.md
Review: Performance Patterns
Checklist
Re-Rendering
- No unnecessary re-renders from prop changes
- Using React Compiler when possible (reduces manual memoization)
- Context split for different concerns (avoid re-render cascades)
- Children prop pattern to prevent wrapper re-renders
Memoization
- Manual
useMemo/useCallbackonly when needed (React Compiler handles most cases) -
React.memoused selectively for expensive components - Dependencies correct in memoization hooks
- Not over-optimizing (premature optimization)
Bundle Size
- Code splitting used for heavy components/routes
- Server Components used where appropriate (zero client JS)
-
'use client'only where needed - Lazy loading for non-critical components
Resource Loading
- Using preload/preinit for critical resources
- DNS prefetch for external domains
- Images optimized and lazy loaded
- Fonts preloaded
Anti-Patterns
- ❌ Array index as key (causes unnecessary re-renders)
- ❌ Creating new objects/arrays in render (breaks memoization)
- ❌ Excessive memoization without measurement
- ❌ Unnecessary
'use client'(increases bundle)
For comprehensive performance patterns, see: research/react-19-comprehensive.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?