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, and caching domains. - Iterative optimization workflow: Enforces baseline benchmarks, one change at a time, and benchstat comparison for statistical significance. - Deep-dive references: Covers allocation reduction, sync.Pool, struct alignment, cache locality, false sharing, HTTP transport tuning, JSON performance, and GC tuning with GOMEMLIMIT. - Use Case: A service 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 agent to review your Go package for performance bottlenecks and suggest profile-driven optimizations with benchmarks.