Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/johnqtcg/awesome-skillsnpx agentmods add skills/johnqtcg/awesome-skills/go-benchmarkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/johnqtcg/awesome-skills/go-benchmark)<a href="https://agentmods.dev/skills/johnqtcg/awesome-skills/go-benchmark"><img src="https://agentmods.dev/badge/skills/johnqtcg/awesome-skills/go-benchmark/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/johnqtcg/awesome-skills/go-benchmark"><img src="https://agentmods.dev/badge/skills/johnqtcg/awesome-skills/go-benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 159 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- high Tool Misuse · line 159 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.05638 |
| Opus 5.5 | $0.00036 | $0.02255 |
| Sonnet 5.5 | $0.00018 | $0.01128 |
| Haiku 4.5 | $0.00009 | $0.00564 |
Grade A, and why
go-benchmark scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Benchmark & pprof Profiling
You are a Go performance specialist. Your job is to help the user measure, understand, and improve Go code performance through rigorous benchmarking and profiling.
Hard Rules
These rules prevent silent, undetectable benchmark corruption. Check them before writing or reviewing any benchmark:
- Check the toolchain first —
go version. On Go ≥ 1.24,for b.Loop()is the default loop form: it starts the timer at the first call and stops it when it returns false, and it keeps the loop body from being optimised away. That makes Rules 1 and 2 structural instead of manual. On older toolchains, or in the two cases listed under §b.Loopvs the classic loop, use the classic form below. - Sink every result (classic loop only) — assign the final output to a package-level
var sink T. Using_ =lets the compiler eliminate dead code; the benchmark then measures nothing. Verified: for a cheap pure function, the_ =form measures exactly the empty-loop baseline — the call is gone. - Timer discipline (classic loop only) — expensive one-time setup (connecting to DB, reading fixtures) goes before
b.ResetTimer(). Per-iteration teardown usesb.StopTimer()/b.StartTimer().b.Loop()handles the setup case for you. - Always
-benchmemon measurement runs — allocation counts matter as much as throughput. A function that is fast but allocates heavily will cause GC pressure under load. The one exception is the-racecorrectness check below: it is a pass/fail gate, not a measurement (the race detector distorts both timing and allocation anyway), so its numbers are not to be read or reported. -count=10for comparisons,-count=5for exploration — a single run is statistically meaningless. Use-count=10when comparing two implementations withbenchstat. As a rule of thumb, doubling the samples improves the smallest resolvable effect by about 1/√2 ≈ 29%, not by half, so halving it needs-count=20. Treat that as direction and rough magnitude: benchstat compares medians with a non-parametric test, and benchmark samples drift rather than being independent, so the real gain is often smaller. Interleave the two variants instead of running all of A then all of B — seereferences/benchstat-guide.md; it costs nothing and removes drift from the comparison. Cutting machine noise is usually cheaper than adding samples.- Never compare across environments — results from different machines, Go versions, or
-cpuvalues are not comparable. Always note the environment.
What ships with it
23 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/benchmark-antipatterns.md 11 KB
- references/benchmark-patterns.md 8.7 KB
- references/benchstat-guide.md 11 KB
- references/optimization-patterns.md 6.6 KB
- references/pprof-analysis.md 11 KB
- scripts/gc_claim_check.sh 4.7 KB runs code
- scripts/run_interleaved_bench.sh 4.2 KB runs code
- scripts/run_regression.sh 526 B runs code
- scripts/tests/COVERAGE.md 14 KB
- scripts/tests/golden/001_missing_sink.json 638 B
- scripts/tests/golden/002_setup_inside_loop.json 686 B
- scripts/tests/golden/003_reset_timer_inside_loop.json 934 B
- scripts/tests/golden/004_single_count_comparison.json 907 B
- scripts/tests/golden/005_good_sub_benchmark_sizes.json 905 B
- scripts/tests/golden/006_good_parallel_benchmark.json 1.4 KB
- scripts/tests/golden/007_good_throughput_benchmark.json 1.0 KB
- scripts/tests/golden/008_missing_benchmem_flag.json 626 B
- scripts/tests/golden/009_degraded_no_data.json 681 B
- scripts/tests/golden/010_pprof_guided_benchmark.json 1.0 KB
- scripts/tests/golden/011_noisy_benchstat.json 745 B
- scripts/tests/test_golden_scenarios.py 10 KB runs code
- scripts/tests/test_skill_contract.py 46 KB runs code
- scripts/tests/test_templates_compile.py 44 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +3 lines 15ee2e00d4a1
- 2mo ago First seen · 414 lines · 90 tokens per session scan A a5c80e5843fe
go-benchmark is a skill published in the GitHub repository johnqtcg/awesome-skills (30 stars, last pushed 29d ago), licensed MIT. It adds 90 tokens to every session and 5,638 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
go-benchmark compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-benchmarkjohnqtcg/awesome-skills | Skill | 30 | 29d ago | MIT | A | 90 | Claude Code |
| agent-go-experttravisjneuman/.claude | Skill | 107 | yesterday | MIT | A | 75 | Claude Code |
| golang-rulessoftspark/ai-toolkit | Skill | 179 | 10d ago | Apache-2.0 | A | 40 | Claude Code |
| aio-golang-masteryaiocean/claude-plugins | Skill | 4 | 9d ago | MIT | A | 111 | Claude Code |
| go-concurrency-guidekhalilbenaz/claude-skills-collection | Skill | 27 | 2mo ago | MIT | A | 75 | Claude Code, Codex |
| copilot-sdkfabioc-aloha/Alex_Skill_Mall | Skill | 5 | yesterday | MIT | B | 36 | Claude Code, Codex |
| go-linter-configurationmedy-gribkov/arcana | Skill | 1 | 3mo ago | Apache-2.0 | A | 40 | Claude Code, Codex |