optimizing-performance
Frontend performance optimization with data-driven approach. Triggers: パフォーマンス, 遅い, 最適化, レンダリング, バンドルサイズ, Web Vitals, LCP, FID, CLS, 再レンダリング, メモ化, useMemo, useCallback, React.memo, 重い, 高速化, lazy loading, code splitting
When & Why to Use This Skill
This Claude skill provides a data-driven approach to frontend performance optimization, enabling developers to systematically improve page load times and Core Web Vitals. It leverages specialized tools to analyze React rendering patterns, bundle sizes, and browser metrics (LCP, FID, CLS), ensuring web applications meet modern performance standards through a rigorous measure-and-verify workflow.
Use Cases
- Optimizing Core Web Vitals: Diagnosing and fixing Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS) issues to improve SEO and user experience.
- React Performance Tuning: Identifying redundant re-renders and applying memoization techniques like useMemo, useCallback, and React.memo to enhance UI responsiveness.
- Bundle Size Management: Analyzing dependencies and implementing code splitting or lazy loading strategies to minimize the JavaScript payload and speed up initial page loads.
- Data-Driven Bottleneck Identification: Using a systematic workflow to measure performance via Lighthouse or DevTools, pinpointing specific code-level issues, and verifying improvements.
| name | optimizing-performance |
|---|---|
| description | > |
| allowed-tools | [Read, Grep, Glob, Task, Bash(agent-browser:*), mcp__mdn__*] |
| agent | performance-reviewer |
| context | fork |
| user-invocable | false |
Performance Optimization
Core Web Vitals
| Metric | Target | Measure |
|---|---|---|
| LCP | <2.5s | Largest Contentful Paint |
| FID | <100ms | First Input Delay |
| CLS | <0.1 | Cumulative Layout Shift |
Workflow
- Measure (Lighthouse/DevTools)
- Identify bottleneck
- One change at a time
- Re-measure
References
| Topic | File |
|---|---|
| Vitals | references/web-vitals.md |
| React | references/react-optimization.md |
| Bundle | references/bundle-optimization.md |