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.05608 |
| Opus 5 | $0.00045 | $0.02804 |
| Sonnet 5 | $0.00018 | $0.01122 |
| Haiku 4.5 | $0.00009 | $0.00561 |
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 12d 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 — 414 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 9.0 KB
- references/benchmark-patterns.md 8.1 KB
- references/benchstat-guide.md 10 KB
- references/optimization-patterns.md 4.7 KB
- references/pprof-analysis.md 7.6 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 7.5 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 20 KB runs code
- scripts/tests/test_templates_compile.py 33 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.
- 12d 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 yesterday), licensed MIT. It adds 90 tokens to every session and 5,608 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
golang-testing
Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.
golang-patterns
Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.
security-compliance
Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.
stride-analysis-patterns
Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.
cache-components
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). PROACTIVE ACTIVATION: Use this skill automatically when working in Next.js projects that have cacheComponents: true in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best…
manage-skills
A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.