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 profile-first methodology and a decision tree that maps pprof signals (allocations, CPU, GC pauses, I/O waits) to the correct optimization pattern, so fixes target the actual bottleneck. ## Core Features & Use Cases - Bottleneck Decision Tree: Maps profiling signals (heap profile, CPU profile, goroutine blocks) to the right fix across memory, CPU, I/O, runtime, and caching domains. - Iterative Optimization Cycle: Enforces define-metric, baseline 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, cache locality, false sharing, HTTP transport tuning, JSON performance, GC tuning with GOMEMLIMIT, and singleflight caching. - Use Case: A service shows p99 latency of 2s with only 5% CPU usage. The Skill directs you to fgprof for off-CPU wait time, identifies blocked goroutines on network I/O, then tunes the HTTP transport connection pool. ## Quick Start Ask the agent to review this Go package for performance anti-patterns and suggest profile-driven optimizations.