What problem does it solve?
It helps identify why specific code is slow and applies the highest-impact optimizations without breaking existing behavior.
Core Features & Use Cases
- Profiling conceitual: Detects performance hotspots such as nested loops, N+1 queries, unnecessary allocations, and blocking synchronous I/O.
- Análise orientada por gargalo: Selects and performs a targeted deep dive using
performance-reliability-reviewer when deeper throughput/latency/memory/concurrency analysis is needed.
- Otimização com trade-off documentado: Applies the most impactful change with lower risk and explicitly records what was sacrificed (e.g., more memory for lower latency), then validates with tests and (when possible) simple before/after benchmarks.
Quick Start
Use the optimize skill to analyze and improve performance of the provided code file, ensuring tests pass and reporting the identified bottleneck, applied optimization, trade-off, and expected/measured results.