optimizing-performance

thkt 的头像作者 thkt

数据驱动的前端性能优化。触发器:性能, 慢, 优化, 渲染, 捆包大小, Web Vitals, LCP, FID, CLS, 重新渲染, 记忆化, useMemo, useCallback, React.memo, 重, 加速, 懒加载, 代码分割

📖 中文导读:数据驱动的前端性能优化。触发器:性能, 慢, 优化, 渲染, 捆包大小, Web Vitals, LCP, FID, CLS, 重新渲染, 记忆化, useMemo, useCallback, React.memo, 重, 加速, 懒加载, 代码分割 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: optimizing-performance description: > Frontend performance optimization with data-driven approach. Use when optimizing page load times, improving Web Vitals, or when user mentions performance, Web Vitals, LCP, FID, CLS, パフォーマンス最適化, 速度改善, bundle size. 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

  1. Measure (Lighthouse/DevTools)
  2. Identify bottleneck
  3. One change at a time
  4. Re-measure

References

Topic File
Vitals references/web-vitals.md
React references/react-optimization.md
Bundle references/bundle-optimization.md