performance-review
Provides performance optimization guidelines for profiling, caching, memory management, and concurrency. Use when optimizing slow code, fixing memory leaks, improving throughput, or conducting performance reviews.
When & Why to Use This Skill
This Claude skill provides expert-level performance optimization guidelines covering profiling, caching, memory management, and concurrency. It empowers developers to systematically identify bottlenecks, resolve memory leaks, and enhance system throughput through data-driven analysis and industry-standard best practices, ensuring code is both efficient and scalable.
Use Cases
- Case 1: Identifying and resolving execution bottlenecks in slow-performing functions using profiling data and algorithmic optimization.
- Case 2: Diagnosing and fixing memory leaks or excessive garbage collection overhead to improve application stability and resource efficiency.
- Case 3: Scaling high-concurrency systems by optimizing thread pools, minimizing lock contention, and leveraging asynchronous I/O.
- Case 4: Implementing robust caching strategies and invalidation policies to reduce database load and improve response times.
- Case 5: Conducting comprehensive performance reviews during the development lifecycle to prevent 'premature optimization' while ensuring architectural efficiency.
| name | performance-review |
|---|---|
| description | Provides performance optimization guidelines for profiling, caching, memory management, and concurrency. Use when optimizing slow code, fixing memory leaks, improving throughput, or conducting performance reviews. |
Performance Review Skill
When to Use
- Code performance optimization
- Memory leak fixes
- Throughput improvements
- Performance review requests
- Bottleneck analysis
Performance Analysis Workflow
Profiling → Identify bottlenecks → Optimize → Verify
Checklist
Algorithm & Data Structures
- Time complexity analysis (Big-O)
- Appropriate data structure selection
- Remove unnecessary operations
Memory
- Minimize memory allocation
- Object reuse (pooling)
- Cache-friendly access patterns
Concurrency
- Minimize lock contention
- Leverage async I/O
- Thread pool optimization
Caching
- Appropriate cache strategy
- Cache invalidation policy
- Cache hit rate monitoring
Reference Documents (Import Syntax)
@reference/performance.md @reference/memory.md @reference/concurrency.md @reference/monitoring.md
Caution
"Premature optimization is the root of all evil" - Donald Knuth
Always confirm bottlenecks through profiling before optimizing.