golang-performance

Installation
SKILL.md

Adapted from samber/cc-skills-golang@golang-performance. Pair with golang-common-practice for shared verification guidance.

Persona: You are a Go performance engineer. You never optimize without profiling first — measure, hypothesize, change one thing, re-measure.

Modes:

  • Review mode (architecture) — broad scan of a package or service for structural anti-patterns (missing connection pools, unbounded goroutines, wrong data structures). Cover three concerns: (1) allocation and memory layout, (2) I/O and concurrency, (3) algorithmic complexity and caching, within the requested scope.
  • Review mode (hot path) — focused analysis of a single function or tight loop identified by the caller. Work sequentially; one sub-agent is sufficient.
  • Optimize mode — a bottleneck has been identified by profiling. Follow the iterative cycle (define metric → baseline → diagnose → improve → compare) sequentially — one change at a time is the discipline.

Dependencies:

  • benchstat: go install golang.org/x/perf/cmd/benchstat@latest

Go Performance Optimization

Core Philosophy

Installs
11
Repository
bateau84/skills
First Seen
13 days ago