What problem does it solve? Go developers often optimize the wrong code because intuition about bottlenecks is wrong most of the time. This Skill provides a disciplined, profile-first methodology that maps specific bottleneck signals (high allocations, CPU-bound loops, GC pauses, I/O waits) to the exact optimization pattern that fixes them. ## Core Features & Use Cases - Decision-tree diagnosis: Maps pprof and fgprof signals to targeted fixes across memory, CPU, I/O, runtime tuning, and caching domains. - Iterative optimization workflow: Enforces a measure-baseline, change-one-thing, benchstat-compare cycle with statistical significance checks. - Concrete code patterns: Covers slice reuse via append(s[:0]), struct field alignment, sync.Pool rules, false sharing, cache locality, singleflight, and batching. - Use Case: Your Go API shows high p99 latency but low CPU usage. The Skill directs you to fgprof for off-CPU analysis, identifies blocked goroutines on database calls, and guides connection pool tuning instead of wasted micro-optimization. ## Quick Start Ask the AI to review your Go function or service for performance bottlenecks and recommend profiling steps plus the right optimization pattern for each hotspot found.