返回 Skill 列表
extension
分类: 开发与工程无需 API Key

grey-haven-performance-optimization

全面的性能分析和优化,包括算法(O(n²)→O(n))、数据库(N+1查询、索引)、React(记忆化、虚拟列表)、代码包(代码分割)、API缓存以及内存泄漏。改进率超过85%。当应用程序运行缓慢、响应时间超出SLA、CPU/内存使用率高、需要设定性能预算时,或者用户提到'性能'、'慢'、'优化'、'瓶颈'、'加速'、'延迟'、'内存泄漏'或'性能调优'时使用。

person作者: jakexiaohubgithub

Performance Optimization Skill

Comprehensive performance analysis and optimization techniques for identifying bottlenecks and improving application speed.

Description

This skill provides production-ready patterns, examples, and checklists for optimizing application performance across algorithms, databases, infrastructure, and code structure.

What's Included

Examples (examples/)

  • Algorithm optimization - Improve time complexity (O(n²) → O(n))
  • Database optimization - Eliminate N+1 queries, add indexes
  • Bundle size reduction - Code splitting, tree shaking
  • React performance - Memoization, virtual lists
  • API response time - Caching strategies, async processing
  • Memory optimization - Reduce allocations, fix leaks

Reference Guides (reference/)

  • Performance profiling tools and techniques
  • Benchmarking best practices
  • Optimization decision frameworks
  • Performance budget guidelines
  • Monitoring and alerting strategies

Templates (templates/)

  • Performance test templates (Lighthouse, Web Vitals)
  • Benchmark comparison templates
  • Optimization report structures
  • Performance budget definitions

Use This Skill When

  • Application is slow or unresponsive
  • Response times exceed SLA targets
  • High CPU/memory usage detected
  • Need to meet performance budgets
  • Optimizing for production deployment

Related Agents

  • performance-optimizer - Automated performance analysis and optimization
  • memory-profiler - Memory leak detection and profiling
  • observability-engineer - Production monitoring setup

Quick Start

# View optimization examples
ls examples/

# Check reference guides
ls reference/

# Use templates for benchmarking
ls templates/

Metrics

  • Optimization Success Rate: 85%+ performance improvement
  • Coverage: Algorithm, database, infrastructure, code structure
  • Production-Ready: All examples tested in real applications

Skill Version: 1.0 Last Updated: 2025-01-15