
Description
golang-performance is an agent skill from the samber cc-skills-golang collection that guides a coding agent through Go performance work. Its rule is to profile before optimising: define a metric, take a baseline, diagnose the bottleneck, make one change at a time and compare the results. The skill covers allocation reduction, CPU efficiency, memory layout and garbage collection pressure, and it expresses its advice as patterns of the form if a given bottleneck appears, apply a given fix. It has three review and optimisation modes. Architecture review scans a package or service for structural problems such as missing connection pools, unbounded goroutines and poor data structures, and can split the work across up to three sub-agents by concern: allocation and memory layout, I/O and concurrency, and algorithmic complexity and caching. Hot-path review looks at one function or tight loop identified by the caller, sequentially. Optimise mode works from a bottleneck that profiling has already found. The skill uses the benchstat tool, installed with go install golang.org/x/perf/cmd/benchstat@latest, to compare benchmark runs. It is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-performance.…
Highlights
- Profile first, then change one thing
- Allocation, CPU, memory layout and GC advice
- Architecture, hot-path and optimise modes
- Parallel sub-agents for package-level review
- Uses benchstat for comparisons
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-performance.
People also visit

performance-optimization
Optimizes application performance across frontend, backend, queries

agent-performance-optimizer
Agent skill for performance-optimizer - invoke with $agent-performance-optimizer

argent-react-native-optimization
Optimizes a React Native app by profiling first to find real bottlenecks

benchmark-optimization-loop
Convert 'make it faster' requests into a bounded measured optimization loop
golang-performance FAQ
What does this skill cover?
Go performance optimisation: allocation reduction, CPU efficiency, memory layout, garbage collection, I/O, concurrency and algorithmic complexity.
Does it optimise without profiling?
No. The skill's rule is to measure first, form a hypothesis, change one thing and re-measure.
What are the modes?
Architecture review of a package or service, hot-path review of one function, and optimise mode for a bottleneck that profiling has found.
What tool do I need?
benchstat, installed with go install golang.org/x/perf/cmd/benchstat@latest.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-performance.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best golang-performance alternatives?
Popular alternatives to golang-performance include python-performance-optimization, performance-optimization and agent-performance-optimizer. See all golang-performance alternatives



