What problem does it solve? Go services often suffer from hidden bottlenecks—excessive allocations, GC pauses, cache misses, lock contention, or slow I/O—and intuition about the cause is wrong most of the time. This Skill provides a disciplined measure-first methodology plus a catalog of proven optimization patterns mapped to specific bottleneck signals. ## Core Features & Use Cases - Decision-tree diagnosis: Maps pprof/fgprof signals (alloc_objects, CPU profile, goroutine blocks) to the right optimization category: memory, CPU, runtime tuning, I/O, or caching. - Iterative optimization workflow: Enforces baseline benchmarks with -benchmem -count=6, one change at a time, and benchstat comparison for statistical significance. - Deep-dive references: Covers allocation reduction, sync.Pool, struct alignment, inlining, cache locality, false sharing, SIMD, HTTP transport tuning, JSON performance, GC tuning (GOGC/GOMEMLIMIT), and Prometheus-based production observability. - Use Case: Your Go API has p99 latency of 2s with only 5% CPU usage. The Skill directs you to fgprof for off-CPU analysis, identifies a misconfigured http.Transport (MaxIdleConnsPerHost=2), and guides a verified fix with before/after benchstat evidence. ## Quick Start Ask the agent to review your Go package or hot-path function for performance bottlenecks and suggest profile-guided optimizations.