← Back to list

react-perf
by whoabuddy
⭐ 0🍴 3📅 Jan 23, 2026
SKILL.md
name: react-perf description: "React/Next.js performance optimization guidelines from Vercel Engineering. Use when reviewing performance, optimizing bundles, or fixing waterfalls." allowed-tools: Read, Glob, Grep, Task, TodoWrite model: sonnet
React Performance Optimization
Guidelines from Vercel Engineering for React and Next.js performance.
Source Reference
Full rules: ~/dev/vercel-labs/agent-skills/skills/react-best-practices/rules/
When to Use
- User requests performance review or optimization
- Investigating slow renders or bundle size
- Fixing waterfall data fetching patterns
Rule Categories
Universal (Vite + Next.js)
Load these rules for any React project:
async-parallel.md- Promise.all() for independent operations (CRITICAL)async-defer-await.md- Defer await until needed (HIGH)bundle-barrel-imports.md- Avoid barrel file imports (CRITICAL)rerender-functional-setstate.md- Use functional setState (MEDIUM)rerender-lazy-state-init.md- Lazy state initialization (MEDIUM)rerender-transitions.md- Use transitions for non-urgent updates (MEDIUM)js-set-map-lookups.md- Use Set/Map for O(1) lookupsjs-early-exit.md- Early return from functionsjs-tosorted-immutable.md- Use toSorted() for immutabilityclient-passive-event-listeners.md- Passive event listeners
Next.js Specific
Load only for Next.js projects (detected by next.config.* or app/ directory):
server-parallel-fetching.md- Parallel data fetching with RSC (CRITICAL)server-cache-react.md- React.cache() deduplication (MEDIUM)server-serialization.md- Minimize RSC serialization (HIGH)async-suspense-boundaries.md- Strategic Suspense boundaries (HIGH)bundle-dynamic-imports.md- next/dynamic for heavy components (CRITICAL)
Simplicity-Safe (Low Complexity Cost)
These improve both performance AND readability:
async-parallel.md- Cleaner than sequential awaitsjs-early-exit.md- Guard clauses improve flowbundle-barrel-imports.md- Single line fixrerender-functional-setstate.md- Prevents bugs
Avoid for General Use (High Complexity Cost)
Only apply when profiling proves necessity:
async-dependencies.md- Requiresbetter-alllibraryadvanced-event-handler-refs.md- Ref indirection patternadvanced-use-latest.md- Custom hook abstractionclient-event-listeners.md- Complex subscription system
Usage
- Detect project type (Vite vs Next.js)
- Read relevant rule files from source
- Apply rules that fit the optimization context
- Defer to code-simplifier for general cleanup
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon