What problem does it solve?
This Skill prevents performance regressions in hot TypeScript/React/React Native code by enforcing allocation- and monomorphism-friendly patterns and project-specific React Compiler rules.
Core Features & Use Cases
- Zero-waste TypeScript code: keeps object shapes monomorphic, avoids hidden-class mutations, and reduces unnecessary allocations in tight loops.
- Correct data structures: recommends
Map/Set for O(1) lookup, typed arrays for numeric data, and avoids costly patterns like Array.shift().
- React performance aligned to this project: discourages manual
memo/useMemo/useCallback when React Compiler is enabled, enforces stable keys, and avoids inline objects in JSX.
- React Native / Hermes guidance: favors Reanimated worklets, gesture-handler usage, FlashList for large lists, and avoids generators/Proxy on Hermes for speed.
- Common anti-pattern prevention: covers prop mutation, unstable keys, inline allocations in JSX, and hot-path inefficiencies.
Quick Start
Use this skill when reviewing or writing TypeScript, React, or React Native code that runs frequently and must stay fast.