react-native-performance-reviewer
БесплатноБез исполняемых скриптовНе проверенReview React Native and Expo Go code for mobile performance, memory usage, CPU pressure, battery impact, network efficiency, and behavior under real-world…
от conectlens★ 18 звёзд на GitHubОб этом скилле
React Native / Expo Go Performance Reviewer
Review diff for mobile performance issues. Use context when provided.
Load references/PERFORMANCE_CHECKLIST.md and apply all sections relevant to the changed files.
Use assets/review-report-template.md for the full structured report.
Severity classification
| Severity | Meaning |
|---|---|
critical |
Crashes, ANRs, OOM kills, or severe jank on mid-range devices under normal load |
high |
Visible jank, memory growth, or excessive battery drain at moderate usage |
medium |
Degrades experience on low-end devices or under stress (50+ concurrent users) |
low |
Minor inefficiency, acceptable now but risky at scale |
info |
Observation with no current risk |
Detection rules
Rendering
- Flag components lacking
React.memo,useCallback, oruseMemowhere props are objects, arrays, or functions created inline. - Flag
useEffectwith no dependency array or an array including unstable references. - Flag Context providers whose
valueis a new object literal on every render. - Flag navigation screens that re-render on every tab switch due to missing
React.memooruseFocusEffectmisuse.
Memory & lifecycle
- Flag subscriptions, event listeners, timers, and Animated listeners not cleaned up in
useEffectreturn. - Flag state that accumulates over a session without a bound (unbounded log arrays, growing caches, stacked screens never popped).
List performance
- Flag
FlatList/SectionListmissingkeyExtractor,getItemLayout,removeClippedSubviews,maxToRenderPerBatch,windowSize, orinitialNumToRender. - Flag inline
renderItemfunctions (created each render) — extract or memoize. - Flag lists rendering >50 items without virtualization.
- Flag
ScrollViewwrapping large or unknown-size datasets. - Flag
FlashListmissingestimatedItemSize.
JavaScript thread
- Flag synchronous heavy computation in the render path or without
InteractionManager.runAfterInteractions. - Flag
require()calls inside render functions. - Flag native bridge calls in tight loops without batching.
Network & caching
- Flag
fetch/axioscalls inuseEffectwithout deduplication, abort controllers, or query-client caching. - Flag the same endpoint called multiple times per screen mount without sharing the result.
- Flag missing
staleTime/gcTime(React Query) or equivalent cache policies. - Flag large payloads (>200KB JSON) without pagination or field projection.
- Flag absence of cached fallback when network is unavailable.
- Flag missing retry with exponential backoff on transient errors.
Images & assets
- Flag
<Image>without explicitwidth/height. - Flag remote images not using a caching layer (expo-image, react-native-fast-image).
- Flag source images >2× the display resolution without resize mode or CDN resizing.
- Flag SVGs rendered inline without memoization in list items.
Animations
- Flag
Animated.Valueanimations not usinguseNativeDriver: truewhere possible. - Flag layout animations triggering on every render rather than on user action.
- Flag Reanimated worklets accessing JS-side state.
Startup & bundle
- Flag large imports at module top level only used in one screen.
- Flag
console.log/console.warncalls not guarded with__DEV__. - Flag unused Expo SDK modules in
app.jsonplugins.
Gotchas
- Hermes does not support
import.meta.*— shared libs usingimport.meta.envmust have a.native.tsxstub. - Expo Go development builds skip Hermes bytecode and tree shaking — always validate perf on a release build.
AsyncStorageblocking onawait AsyncStorage.getcauses observable latency.- Navigation stacks keeping mounted screens for back-navigation can hide significant memory accumulation — check
detachInactiveScreens.
Output format
For each finding:
Finding: <short title>
Severity: critical | high | medium | low | info
Location: <file path>:<line range or function name>
Risk: <what breaks, when, and on what device class>
Failure mode: <observable symptom — jank, OOM kill, timeout, crash, ANR>
Fix: <concrete change with code snippet if useful>
Verification: <how to confirm the fix works>
Order findings by severity descending.
Constraints
- Read-only unless the user explicitly asks for fixes.
- Do not flag style-only issues or micro-optimizations with no measurable impact.
- Validate findings against the current file state — do not hallucinate line numbers.
Установить react-native-performance-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл react-native-performance-reviewer?
Review React Native and Expo Go code for mobile performance, memory usage, CPU pressure, battery impact, network efficiency, and behavior under real-world stress. Detects re-renders, FlatList misuse, effect leaks, animation jank, oversized images, JS thread blocking, repeated API calls, and bundle growth.
Как установить скилл react-native-performance-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-native-performance-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic