In short.
golang-performance is a coding-assistant skill for Go developers improving application performance, but inconsistent guidance and incomplete examples require human review. Its strongest feature is a measured optimization cycle that separates external delays from problems inside Go code, changes one thing at a time and compares repeated benchmarks with benchstat. The package includes six references, Prometheus alert examples and 68 evaluation scenarios. Actual assistant behavior, compatibility and performance gains are not established by execution results.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes skills/golang-performance/SKILL.md; references/caching.md, cpu.md, io-networking.md, memory.md, observability.md and runtime.md; assets/prometheus-alerts.yml; evals/evals.json; and the repository-level LICENSE. All are captured at revision d68d80aec298e1b74b37c2a472c002b5217248b3. Other repository skills, linked documentation and external libraries or services are outside this scope. No installation or execution occurred, so behavior and claimed gains remain unassessed.
The overview
Identity
golang-performance belongs to samber/cc-skills-golang and identifies its author as samber, with metadata version 1.3.2. It is a loadable set of instructions and examples rather than a compiled optimizer. The folder contains SKILL.md, six reference guides, one Prometheus alert asset and an evaluation file. Its source page is [https://github.com/samber/cc-skills-golang/tree/main/skills/golang-performance].
Assessment
The useful part is the connection between observed symptoms and possible interventions: allocation profiles lead to memory patterns, blocked goroutines lead to I/O investigation, and repeated scans lead to algorithm changes. It also asks whether database or upstream latency dominates before proposing local code changes.
It fits supervised performance work where developers can inspect suggestions and measure outcomes. Its numerical improvement claims lack accompanying benchmark receipts, and some version-sensitive advice disagrees with its own evaluation expectations. Treat it as a source of hypotheses and a working checklist.
Users
The intended users are Go developers reviewing a package or service, examining a frequently executed function, or optimizing a bottleneck already identified through profiling. Examples span HTTP APIs, data processing, caches, numerical loops and containerized services.
Beginners get concrete examples and tool names, but will still need help interpreting profiles and checking code correctness. Experienced developers get a broad reference for optimization candidates. Detailed measurement methodology and troubleshooting are delegated to companion skills whose contents are outside this package.
Capabilities
Memory guidance covers slice reuse, preallocation, retained backing arrays, pooling and struct layout. CPU guidance covers inlining, sequential memory access, data layout, false sharing and arithmetic loops. I/O and caching guidance covers HTTP transport settings, streaming, buffered writes, batching, compiled patterns, duplicate-request suppression and avoiding repeated scans.
Runtime material discusses garbage collection settings, container CPU configuration, profile-guided optimization and logging overhead. Observability material supplies PromQL examples, continuous profiling options and development dashboards. The alert asset includes examples for GC duration, goroutine count and projected memory growth.
Using it
Requirements
The metadata describes compatibility with Claude Code, Codex or similar hosts and Go projects, and lists go and benchstat as required binaries. Specific investigations may also use fgprof, fieldalignment, tracing or monitoring infrastructure. A universal minimum Go version and a tested host compatibility matrix are not supplied.
The declared tool list includes file editing, shell commands, Git, network access, worktrees and agent delegation. How those declarations are supported or restricted by each host is not assessed. Production monitoring examples additionally require suitable endpoints, collectors and application metrics.
Mechanism
The skill directs an assistant to define a metric, establish a benchmark baseline, diagnose the bottleneck, apply one optimization and compare repeated measurements with benchstat. It asks for explanatory comments and preservation of benchmark output so changes remain understandable.
It distinguishes broad architectural review, focused function review and measured optimization. Architectural review can use up to three agents divided among memory, I/O and concurrency, and algorithms and caching. Individual optimization cycles stay sequential. Competing implementations may use separate worktrees, while benchmark measurements should run serially to avoid shared-CPU interference.
Setup
Obtain the skill folder with its relative reference and asset paths intact, retain the repository licence notice and register it using the chosen assistant host's supported skill mechanism. The captured package does not provide a complete host-specific installation procedure.
The prerequisite command shown is go install golang.org/x/perf/cmd/benchstat@latest. Because that command selects a changing version, record the installed version for reproducibility. The Prometheus alert asset requires application-specific thresholds, replacement of its container-memory placeholder and integration into a Prometheus rule configuration.
Example
One included scenario concerns ProcessRecords, a function that parses JSON and filters records after profiling has identified heavy allocations. A suitable request would ask the assistant to benchmark the function, propose one allocation change, preserve its behavior and compare repeated baseline and candidate samples.
The prescribed measurement pattern uses go test with -benchmem and -count=6, saves separate output files and compares them with benchstat. This illustrates the intended process; no benchmark was executed and no improvement was measured.
Assessment & evidence
Limitations
Version guidance conflicts internally. The I/O guide describes encoding/json/v2 as the default since Go 1.27, while evaluation scenario 57 describes an explicit experimental choice rather than a default recommendation. The runtime guide preserves cgroup-v1 caveats for Go 1.25 container detection that scenario 34 does not preserve. The CPU guide also mixes experimental SIMD descriptions with a statement that Go lacks intrinsics.
Some snippets need completion or correction. By inspection, the singleflight example asserts result.(string) without first handling an error; a nil result on failure could therefore cause a panic. The streaming JSON example does not show consuming array delimiters. These are static observations, not executed failure results.
Broad claims about allocations, inlining, GC settings and speedups lack supporting measurements for a specified compiler and workload. The Prometheus asset contains a literal container-limit placeholder, and its thresholds are examples requiring calibration.
Reasoning
The optimization cycle is useful because it makes each proposed change answerable to an observed problem. Separating external waiting from CPU work can prevent irrelevant edits, and changing one thing per comparison helps attribute any measured difference.
The caching guide also encourages checking algorithmic complexity before reducing small per-operation costs. This gives developers a practical order of investigation. The package's usefulness comes from that structure; it does not establish that every proposed pattern improves every program.
Alternatives
The package points to golang-benchmark for measurement methodology and golang-troubleshooting for diagnosis. It refers locking and goroutine questions to golang-concurrency and database questions to golang-database. Those companion skills are referenced alternatives for narrower needs; their contents and quality are not assessed here.
Developers already comfortable with profiling can use the named tools directly, including pprof, Go benchmarks and benchstat, while consulting the references as a checklist. The evidence provides no controlled comparison between direct tool use and assistance from this skill.
Evidence
The source material comprises the nine files in the skill folder and the repository MIT notice, all identified at commit d68d80aec298e1b74b37c2a472c002b5217248b3. The pinned entry file is [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-performance/SKILL.md].
The evaluation JSON contains 68 numbered scenarios with prompts and expected assertions. It contains no observed model responses, pass rates or comparative results. Statements about what an assistant would do without the skill are expectations rather than demonstrated outcomes.
No installation, commands, examples, benchmarks, evaluations or alert rules were executed. Runtime correctness, actual compatibility, assistance quality and performance gains remain unassessed.
Access & freshness
Costs
No purchase price, support charge or hosted-service fee is stated for this skill. Total operating cost is unknown. It depends on the chosen coding assistant or model, use of additional agents, benchmark compute and any profiling or monitoring infrastructure.
The observability guide names commercial and self-hosted profiling options and gives overhead estimates, but supplies neither pricing nor measurements supporting those estimates. Those figures do not establish the cost or overhead for a particular deployment.
Rights
SKILL.md declares MIT licensing, and the repository LICENSE names Samuel Berthe with a 2026 copyright notice. The licence permits use, modification, copying, redistribution, sublicensing and sale, provided its copyright and permission notice accompany copies or substantial portions. It disclaims warranty and liability.
The captured licence is available at [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/LICENSE]. Terms for separately obtained libraries, assistant services and monitoring products are not established by this notice.
Freshness
The snapshot was captured on 2026-11-17 at 00:51:25.190 UTC and identifies skill version 1.3.2 at commit d68d80aec298e1b74b37c2a472c002b5217248b3. These files do not establish a release date or subsequent repository changes.
Claims involving Go 1.27, experimental SIMD, JSON behavior and container CPU detection need confirmation against the installed toolchain. The CPU guide itself labels some SIMD material speculative and subject to API changes.
Actions
Start with one profiled Go function and an explicit goal, such as fewer allocations or lower latency. Pin the skill revision and measurement-tool versions, request one candidate change, check functional behavior and compare repeated measurements without competing benchmark workloads.
Before copying examples, resolve the JSON and container-detection discrepancies using documentation for the installed Go version. Complete error and array handling in the relevant snippets, and customize the alert rules. Treat advertised speedups as unproven until representative measurements support them.
