react-vite-performance-reviewer
БесплатноБез исполняемых скриптовНе проверенReview React and Vite web app code changes for browser performance, memory usage, CPU pressure, bundle size, network cost, rendering speed, hydration cost…
от conectlens★ 18 звёзд на GitHubОб этом скилле
React / Vite Performance Reviewer
When to activate
Any code touch on:
apps/web/**— components, routes, hooks, layoutslibs/*libraries bundled by Vitevite.config.tsorvite.config.js— build configuration- Code split boundaries, dynamic imports, lazy routes
- State management (Zustand, Redux Toolkit, Jotai, Context API)
- Network layers (React Query, SWR, Apollo, tRPC, fetch wrappers)
- Forms (React Hook Form, Formik), tables (TanStack Table), charts
- Animations (Framer Motion, CSS transitions, Web Animations API)
- Third-party library additions or upgrades
- Asset handling (images, fonts, SVGs, CSS)
Review workflow
- Load
references/PERFORMANCE_CHECKLIST.mdand apply all sections relevant to the changed files. - Inspect the diff for the detection rules below.
- Produce a severity-ordered finding list using the output format below.
- Use
assets/review-report-template.mdfor the full structured report.
Severity classification
| Severity | Meaning |
|---|---|
critical |
Causes browser OOM crash, hang, or complete render failure under normal traffic |
high |
Visible jank or +1s LCP/TTI regression under moderate load (10+ concurrent tabs, slow 4G) |
medium |
Degrades experience on low-end devices or under high traffic (50+ concurrent users) |
low |
Minor inefficiency, acceptable now but risky at scale |
info |
Observation with no current risk |
Core detection rules
Rendering
- Flag components that re-render on every parent render when their props haven't changed — check for
React.memoabsence. - Flag inline function/object/array props in JSX that produce a new reference each render (
onClick={() => …},style={{ margin: 8 }}). - Flag
useEffectwith unstable dependencies (objects/arrays/functions created inside the component without memoization). - Flag Context providers whose
valueis a new object on every render — useuseMemofor the value or split the context. - Flag deeply nested context consumers subscribing to a large context object when only one field is needed (use selector pattern or split context).
- Flag
keychanges on list items that are not actually replaced — causes unnecessary unmount/remount.
Memory leaks
- Flag event listeners, timers (
setInterval/setTimeout), and subscriptions registered inuseEffectwithout cleanup. - Flag ResizeObserver, IntersectionObserver, and MutationObserver instances not disconnected on unmount.
- Flag large data structures (chart datasets, blob URLs, canvas references) not released on component unmount.
- Flag
useRefholding DOM references or closures that capture growing data.
State management
- Flag Redux/Zustand/Jotai selectors returning new object/array references on every store update (causes re-render when data is unchanged).
- Flag excessive global state for transient UI concerns (hover, focus, scroll position) that should be local.
- Flag derived state recalculated on every render that should live in
useMemoor a selector.
Bundle & build
- Flag third-party imports that pull in the full package rather than tree-shaken named exports (
import _ from 'lodash'vsimport { debounce } from 'lodash-es'). - Flag large libraries with smaller alternatives for the actual usage (moment.js → date-fns, lodash → native methods).
- Flag components loading synchronously at the route level but only conditionally visible — use
React.lazy+Suspense. - Flag Vite config without
build.rollupOptions.output.manualChunksfor large vendor dependency groups. - Flag assets served without content hashes in file names (prevents long-lived caching).
- Flag
console.logcalls not removed in the production build. - Flag third-party scripts loaded synchronously in
<head>rather than deferred or async.
Network & caching
- Flag
fetch/axioscalls inuseEffectwithoutAbortControllercleanup. - Flag the same API endpoint fetched in multiple sibling components without shared query-key deduplication.
- Flag missing
staleTimeon React Query queries that do not need fresh data on every mount. - Flag responses >100KB without pagination, field selection, or compression.
- Flag missing HTTP cache headers on static or slow-changing API responses.
- Flag polling without backoff or visibility-aware pausing (
document.hidden). - Flag absence of retry logic with exponential backoff on transient network errors.
Assets
- Flag
<img>elements withoutwidth/heightattributes (causes cumulative layout shift). - Flag images not using modern formats (WebP, AVIF) or missing
srcsetfor responsive delivery. - Flag render-blocking fonts without
font-display: swapor preload hints. - Flag non-critical CSS imported in JS that could be asynchronously loaded.
- Flag SVGs inlined in list/table items (prefer
<img>or sprite sheet).
List & table rendering
- Flag tables rendering >100 rows without windowing (TanStack Virtual, react-window, react-virtualized).
Установить react-vite-performance-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл react-vite-performance-reviewer?
Review React and Vite web app code changes for browser performance, memory usage, CPU pressure, bundle size, network cost, rendering speed, hydration cost, and behavior under high traffic, slow devices, weak networks, and large datasets. Use when reviewing apps/web, libs/* used by the web app, or any React component, hook, route, Vite config, code split boundary, dynamic import, asset, state manager, API call, form, table, chart, animation, or third-party library. Activate when the user says "review", "check perf", "slow page", "heavy bundle", or whenever React/Vite browser code is in scope. Detects: unnecessary re-renders, unstable props/callbacks, context churn, missing memoization, memory leaks, large bundle growth, unused dependencies, inefficient asset loading, render-blocking resources, over-fetching, repeated network requests, poor cache strategy, large JSON payloads, expensive sync computations, layout thrashing, slow startup paths, and weak error/retry behavior.
Как установить скилл react-vite-performance-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-vite-performance-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic