← スキル一覧に戻る

react-performance-optimizer
by mdbabumiamssm
⭐ 9🍴 2📅 2026年1月23日
SKILL.md
name: react-performance-optimizer description: Analyzes React/Next.js code for performance bottlenecks, focusing on waterfalls, bundle size, and rendering efficiency. license: MIT metadata: author: Vercel Labs (Synthesized) version: "1.0.0" compatibility:
- product: VS Code
- product: Claude Desktop
- framework: React 18+
- framework: Next.js 13+ allowed-tools:
- read_file
- search_file_content
React Performance Optimization Skill
This skill assists in identifying and resolving common performance issues in React and Next.js applications. It applies rules from Vercel's engineering best practices.
When to Use This Skill
- When a user asks to "optimize" a React component or page.
- When a user mentions "slow loading", "waterfalls", or "large bundle size".
- When reviewing code for production readiness.
Core Capabilities
- Waterfall Detection: Identifies nested data fetching patterns that block rendering.
- Bundle Size Analysis: Suggests dynamic imports (
next/dynamic,React.lazy) for heavy components. - Render Optimization: Checks for unnecessary re-renders and suggests
useMemo,useCallback, or composition patterns. - Image Optimization: Verifies usage of
next/imageand proper sizing attributes. - Server Components: Recommends moving logic to Server Components (RSC) where appropriate to reduce client JS.
Workflow
- Analyze Imports: Check for heavy libraries (e.g., moment.js, lodash) that could be tree-shaken or replaced.
- Check Data Fetching:
- Look for
awaitinside loops or sequentialawaitcalls that could bePromise.all. - Identify Client Components fetching data that could be Server Components.
- Look for
- Inspect Rendering Logic:
- Look for expensive computations directly in the render body.
- Check for
useEffectusage that triggers cascading updates.
- Review References: Consult
references/performance_rules.mdfor specific patterns to avoid.
Example Usage
User: "Why is my dashboard loading so slowly?"
Agent:
- Read
src/app/dashboard/page.tsxand components. - Identify multiple sequential
await fetch(...)calls. - Suggest using
Promise.allor moving data fetching up to a layout/parent RSC. - Suggest wrapping the Chart component with
next/dynamic.
References
references/performance_rules.md: detailed explanation of the rules.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です