/golang-performance:golang-performancefrom golang-performance
Measurement-first Go performance work: benchstat comparisons, pprof and execution traces, escape analysis, GC and GOMEMLIMIT tuning, CI regression checks. Use when Go code is slow or allocates or uses too much memory, when writing or comparing benchmarks, reading a profile, or claiming a speedup.
Ships in golang-performance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Not for idiomatic Go or correctness (golang), general test strategy (unit-testing), production metrics and dashboards (observability-instrumentation), or CI workflow authoring (gh-actions).
Measure first, change one thing, measure again with the same method. A speedup counts only when a like-for-like comparison shows it. Check Go and tool versions with go version, and compare benchmarks only on the same toolchain, since a new Go release changes allocator and compiler behavior independent of your code.
net.(*conn).Read or database/sql stacks, or a wall-clock profiler such as fgprof, confirms it. See references/pprof.md.-cpuprofile, -memprofile), then read it with go tool pprof. Pick the tool from the table below.benchstat, and keep the change only if the difference is significant and the code stays readable. Put the benchstat output in the commit body.| Signal | Likely cause | Go to |
|---|---|---|
alloc_objects high, runtime.mallocgc or scanobject near the top of the CPU profile | Allocation churn | references/patterns.md, then confirm with references/compiler-analysis.md |
| One function dominates flat CPU | Hot loop, algorithm, or reflection | references/patterns.md |
| GC share high, or the container is OOM-killed | GC pacing or memory limit | references/runtime-tuning.md |
| Low CPU, high latency, goroutines blocked | I/O wait, contention, scheduling | Trace and block/mutex profiles in references/pprof.md |
| Same work done repeatedly | Missing cache or hoisting | references/patterns.md |
| Benchmark passes locally, regresses in production | Different input, GC, or CPU limit | Profile production with net/http/pprof, then references/runtime-tuning.md |
~, as evidence. benchstat needs several runs to say anything.-count once and accept the answer.unsafe, sync.Pool, or manual pooling without a profile that shows the allocation matters. Each trades safety or clarity for speed.Compare base and head in the same job on the same runner, with -count of 10 or more and benchstat, and set the threshold well above shared-runner noise. Read references/ci-regression.md when adding or tuning such a check. Follow the repo's action-pinning convention (the gh-actions skill, if installed) when you write the workflow.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin golang-performance