Golang Performance

v1.1.2

Golang performance optimization patterns and methodology - if X bottleneck, then apply Y. Covers allocation reduction, CPU efficiency, memory layout, GC tuni...

0· 128·0 current·0 all-time
bySamuel Berthe@samber
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Go performance guidance) match the declared requirements: `go` and `benchstat` are appropriate and the install spec only builds `benchstat` from the official golang.org/x/perf module. Allowed tooling (pprof, fgprof, benchstat, perf, fieldalignment, etc.) aligns with performance diagnostics and optimization tasks.
Instruction Scope
SKILL.md contains detailed, prescriptive guidance on profiling, benchmarking, and optimization (pprof, fgprof, go test -bench, benchstat, sync.Pool, memory/layout guidance). This stays within the stated purpose. One operational recommendation (e.g., "compile on production hardware" in CPU guidance) is an operational risk if followed blindly — it's an example/optimization tactic rather than a requirement, so treat it cautiously. The skill does not instruct reading unrelated system secrets or exfiltrating data.
Install Mechanism
Install spec uses `go` to install `golang.org/x/perf/cmd/benchstat@latest`, a well-known, canonical Go module for benchstat. This builds a benign utility and creates a `benchstat` binary; no downloads from personal servers or archives are present.
Credentials
The skill requests no environment variables, no credentials, and no config paths. Examples reference pushing profiles to monitoring endpoints (Pyroscope, Datadog, etc.) but those are examples and not required by the skill. No disproportionate secret access is requested.
Persistence & Privilege
Skill is not always-enabled (always: false) and makes no requests to modify other skills or global agent settings. Its install behavior is limited to building a single helper binary and standard local file usage (e.g., /tmp/report-*.txt) for bench outputs.
Scan Findings in Context
[regex-scan-none] expected: Scanner found no code-file matches because this is an instruction-only skill (SKILL.md + reference documents). That is expected; primary surface for review is the SKILL.md and included docs.
Assessment
This skill appears coherent and appropriate for Go performance work. Before installing, confirm you are comfortable letting the agent run Go commands on your machine (it will build the standard benchstat tool). Review any commands the skill suggests running in production — e.g., the guidance that recommends compiling on production hardware is an operational tip but can be risky; prefer building in CI/CD or on a staging environment unless you understand the implications. The skill references pushing profiling data to external services (Pyroscope, Datadog, etc.); only configure those endpoints you control and avoid leaking credentials or telemetry to unknown servers. Finally, because this skill can invoke tools (benchstat, pprof, fgprof, curl, perf), ensure the agent's runtime permissions are limited to environments where running profiling/bench commands is safe and allowed.

Like a lobster shell, security has layers — review code before you run it.

latestvk973jpcadnmm1q3rykgzx7heqd840p7m

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🏎️ Clawdis
Binsgo, benchstat

Install

Go
Bins: benchstat

Comments