Faster Go code, backed by before-and-after benchmarks.
Guides improvements to Go hot paths and validates their performance gains with benchmarks.
When to use it
Use when optimizing Go code, investigating slowness, writing performance-critical sections, or answering questions about string concatenation and benchmarking.
It changes how the agent optimizes Go code by focusing performance patterns on hot paths and retaining only measurable improvements.
What you provide
Requires Go for the benchmarks; b.Loop() examples need Go 1.24 or newer, while older versions use b.N loops.
Enables optional statistical comparison when a saved benchmark baseline is supplied.
This skill
benchstat
Installs benchstat for benchmark comparisons
${TMPDIR:-/tmp}/bench-XXXXXX.txt
Creates temporary benchmark output files