golang-benchmark
golang-benchmark is a skill in samber/cc-skills-golang, last changed 2 Sept 2026. It can download software, run shell commands, reach the network, name web addresses and pre-approve tools — read the findings before installing.
Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with Prometheus runtime metrics. Also use when the developer needs deep analysis on a specific performance indicator - this skill provides the measurement methodology, while `samber/cc-skills-golang@golang-performance` provides the optimization patterns.
At a glance
What it can touch
How much a skill can do, not whether it is risky.
Pattern check
1 item to review
Broad tools pre-approved in allowed-tools
R34 · High · SKILL.md:21Commit bb1d43d · 3 Nov 2026
How the check worksPattern check:1 item to reviewSee it
Install
Each tab says whether it installs commit bb1d43d, the one we checked, or the latest version.
OpenCode also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Goose also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Windsurf (Devin Desktop) also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Zed also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Roo Code also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Factory Droid also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Junie also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Amp also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
No install command here reaches Kiro. Copy the skill's folder into .kiro/skills/ in your project, or ~/.kiro/skills/ for all your projects. samber/cc-skills-golang/skills/golang-benchmark (opens in a new tab)
Antigravity also looks in .agents/skills/, so the Any agent steps reach it with This project. For All projects, see where Antigravity looks.
Cline also looks in .claude/skills/, so the Claude Code steps reach it with This project. For All projects, see where Cline looks.
Read this before installing: Broad tools pre-approved in allowed-tools — SKILL.md:21
Claude Code
Pinned to commit bb1d43d, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .claude/skills &&mkdir .claude/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .claude/skills/golang-benchmark/ &&rm -rf "$tmp"If Claude Code was already running and this created the skills folder, run /reload-skills.
Claude apps
Pinned to commit bb1d43d, the one we checked.
Skills in the Claude apps belong to your account rather than to a project.
Make golang-benchmark.zip, with the skill folder at the top level:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&out="$(mktemp -d)" &&cp -R "$tmp"/skills/golang-benchmark "$out"/golang-benchmark &&(cd "$out" && zip -qr - golang-benchmark) > golang-benchmark.zip &&rm -rf "$tmp" "$out"In Claude, open Customize > Skills, select +, then + Create skill > Upload a skill, and choose golang-benchmark.zip.
On Free, Pro and Max plans, turn on Code execution and file creation (Create and edit files in newer settings) under Settings > Capabilities.
Codex
Pinned to commit bb1d43d, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .agents/skills &&mkdir .agents/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .agents/skills/golang-benchmark/ &&rm -rf "$tmp"Codex picks up new skills on its own; restart it if this one does not appear.
Cursor
Pinned to commit bb1d43d, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .cursor/skills &&mkdir .cursor/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .cursor/skills/golang-benchmark/ &&rm -rf "$tmp"Copilot & VS Code
Pinned to commit bb1d43d, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .github/skills &&mkdir .github/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .github/skills/golang-benchmark/ &&rm -rf "$tmp"In a running Copilot CLI session, run /skills reload.
Or install it with gh skill, which also installs the commit we checked. Needs GitHub CLI 2.90 or later.
gh skill install samber/cc-skills-golang skills/golang-benchmark/SKILL.md@bb1d43d98a3f8ab639a0042f90d0ec524e39a477 --agent github-copilot --scope projectGemini CLI
Pinned to commit bb1d43d, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .gemini/skills &&mkdir .gemini/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .gemini/skills/golang-benchmark/ &&rm -rf "$tmp"In a running session, run /skills reload.
Or use Gemini CLI’s own installer. Installs the latest version, not the one we checked.
gemini skills install https://github.com/samber/cc-skills-golang.git --path skills/golang-benchmark --scope workspaceAny agent
Pinned to commit bb1d43d, the one we checked.
OpenCode, Goose, Windsurf (Devin Desktop), Zed, Roo Code, Factory Droid, Junie, Amp and Antigravity read .agents/skills in a project.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&git -C "$tmp" sparse-checkout set -- skills/golang-benchmark &&git -C "$tmp" checkout -q bb1d43d98a3f8ab639a0042f90d0ec524e39a477 &&mkdir -p .agents/skills &&mkdir .agents/skills/golang-benchmark &&cp -R "$tmp"/skills/golang-benchmark/. .agents/skills/golang-benchmark/ &&rm -rf "$tmp"Or use the skills CLI from skills.sh. Installs the latest version, not the one we checked. The skills CLI reports installs to skills.sh unless you set DISABLE_TELEMETRY=1.
npx skills@1.7.4 add samber/cc-skills-golang --skill golang-benchmarkWhat it can touch
From the files and frontmatter at commit bb1d43d. This is how much a skill can do, not whether it is risky.
Pattern check
Pattern check: 1 item to review · commit bb1d43d · 3 Nov 2026
We checked every text file in this skill, at commit bb1d43d on 3 Nov 2026, against 45 published patterns such as download-and-run commands, hidden text and credential access. We don't run the skill, we don't read the web pages it points to, and we can't judge everything its instructions might lead an agent to do. In published tests, pattern checks like this one missed most malicious skills. Read the skill before you install it — especially anything it asks you to download or run.
How the check worksReport an incorrect finding
Outside links we did not follow
- https://github.com/samber/cc-skills-golang
- https://myservice:6060/debug/pprof/profile?seconds=30
- https://github.com/prometheus/client_golang/tree/main/prometheus/collectors
- https://pkg.go.dev/runtime/metrics
Format check
Each agent reads SKILL.md a little differently. We check the file against each one's published rules; we don't run the skill in any agent.
Agent Skills specPasses with warnings
The open format from agentskills.io, held to the strictest version of each rule among the agents we check.
- Warning
The frontmatter uses [ ] or { } values. Most agents accept them, but the spec's validator (skills-ref) rejects the file. F4
Fix: Write lists as "- item" lines and maps as indented key: value lines, without anchors or tags.
- Warning
Fields outside the spec: user-invocable (read by Claude Code and VS Code) and paths (read by Claude Code). Uploads to the Claude apps and API, and the spec's validator, reject the file; most agents ignore these fields. O1
Fix: Delete them for a portable skill, or keep them if you only target the agents that read them.
- Warning
metadata values should be text; openclaw (a map) is not. The spec's validator turns them into text; other readers may not. O4
Fix: Quote each value, for example version: "1.0".
- Note
Anthropic's packaging script leaves these out: evals/. F8
Fix: Delete them, or list them in .gitignore.
- Warning
Claude CodePasses
Claude Code reads its own extra fields, ignores unknown ones, and still loads a skill whose frontmatter is broken, without its fields.
- Note
Anthropic's packaging script leaves these out: evals/. F8
Fix: Delete them, or list them in .gitignore.
- Note
Claude apps & API uploadFails
Uploading to claude.ai or the Claude API, or packaging with Anthropic's script, accepts only the six spec fields and stops on anything else.
- Error
Upload and packaging fail on fields outside the spec: user-invocable and paths. O1
Fix: Delete them, and keep your own data under metadata as text values.
- Note
Anthropic's packaging script leaves these out: evals/. F8
Fix: Delete them, or list them in .gitignore.
- Note
The description is 562 characters. The claude.ai Help Center says 200 at most, though Anthropic's API docs and validator allow 1,024. D4
Fix: If the claude.ai upload refuses it, trim the description to 200 characters.
- Note
metadata values should be text; openclaw (a map) is not. The spec defines metadata as text to text. O4
Fix: Quote each value, for example version: "1.0".
- Error
OpenAI (Codex & API)Passes with warnings
Codex finds SKILL.md by its exact name and needs a description; OpenAI's Skills API checks the frontmatter against the spec and caps uploads.
- Warning
Fields outside the spec: user-invocable and paths. Codex ignores them; OpenAI doesn't say whether its upload accepts them. O1
Fix: Delete them, or move your own data under metadata as text values.
- Warning
metadata values should be text; openclaw (a map) is not. OpenAI's upload follows the spec's text-to-text rule. O4
Fix: Quote each value, for example version: "1.0".
- Note
Anthropic's packaging script leaves these out: evals/. F8
Fix: Delete them, or list them in .gitignore.
- Warning
VS Code & CopilotPasses
VS Code reads skills one folder below .github/skills, .claude/skills or .agents/skills and falls back to the folder name when the name is missing or differs; GitHub's Copilot docs require the exact name SKILL.md.
SKILL.md
Files
10 files
More from samber/cc-skills-golang
Other Coding & code review skills
Same category, most repo stars first.