← スキル一覧に戻る

react-optimizer
by gregsuptown
⭐ 0🍴 0📅 2026年1月10日
SKILL.md
name: react-optimizer description: Optimize React components for performance and maintainability. Identifies unnecessary re-renders, memoization opportunities, and prop-drilling issues. Use when reviewing client-side code in client/src/. allowed-tools: Read, Grep, Glob
React Component Optimizer
Standards
Performance
- ✅ Use
useMemofor expensive calculations - ✅ Use
useCallbackfor stable function references passed to optimized children - ✅ Identify and eliminate redundant state
- ✅ Use code-splitting (
React.lazy) for large components/routes
Maintainability
- ✅ Extract complex logic into custom hooks
- ✅ Keep components small and focused (Single Responsibility Principle)
- ✅ Use ShadCN/UI components consistently
- ✅ Proper TypeScript types for all props
Styling
- ✅ Use Tailwind CSS utility classes
- ✅ Avoid inline styles unless dynamic and necessary
- ✅ Use
cn()utility for conditional class joining
Review Checklist
- Re-renders: Are there components re-rendering unnecessarily?
- Hooks: Are hook dependency arrays correct and complete?
- Complexity: Is the component too large? Should it be split?
- Consistency: Does it follow the established UI patterns (ShadCN, Tailwind)?
Auto-Invocation Triggers
This Skill should activate when:
- Reviewing files in
client/src/components/orclient/src/pages/ - Reviewing
.tsxfiles - User asks to "optimize react code" or "improve component performance"
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です