golang-performance
golang performance
What it does
- Review mode (hot path) — focused analysis of a single function or tight loop identified by the caller. Work sequentially; one sub-agent is sufficient.
- benchstat: go install golang.org/x/perf/cmd/benchstat@latest
- Memory Optimization — allocation patterns, backing array leaks, sync.Pool, struct alignment
- CPU Optimization — inlining, cache locality, false sharing, ILP, reflection avoidance
- I/O & Networking — HTTP transport config, streaming, JSON performance, cgo, batch operations
- Runtime Tuning — GOGC, GOMEMLIMIT, GC diagnostics, GOMAXPROCS, PGO
- Caching Patterns — algorithmic complexity, compiled patterns, singleflight, work avoidance
Requirements & configuration
- 3. Document optimizations — add code comments explaining why a pattern is faster, with benchmark numbers when available. Future readers need context to avoid reverting an "unnecessary" optimization
Configuration: GOMEMLIMIT
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
golang-performance FAQ
What does the golang-performance skill do?
Golang performance optimization patterns and methodology - if X bottleneck, then apply Y. Covers allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, and hot-path optimization. Use when profiling or benchmarks have identified a bottleneck and you need the right optimization pattern to fix it. Also use when performing performance code review to suggest improvements or benchmarks that could help identify quick performance gains. Not for measurement methodology (→ See `samber/cc-skills-golang@golang-benchmark` skill) or debugging workflow (→ See `samber/cc-skills-golang@golang-troubleshooting` skill). Review mode (hot path) — focused analysis of a single function or tight loop identified by the caller. Work sequentially; one sub-agent is sufficient. benchstat: go install golang.org/x/perf/cmd/benchstat@latest
What does golang-performance require?
3. Document optimizations — add code comments explaining why a pattern is faster, with benchmark numbers when available. Future readers need context to avoid reverting an "unnecessary" optimization Configuration keys: GOMEMLIMIT.
How do I install golang-performance?
Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-performance --agent claude-code — the source lives at github.com/samber/cc-skills-golang.
Maintain golang-performance?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/samber-cc-skills-golang-golang-performance?ref=badge) npx agentictools info skills/samber-cc-skills-golang-golang-performance The second line is the CLI lookup for this page — handy in READMEs and docs.