go-profiling

go-profiling is a skill for Claude Code from spf13/go-skills. It costs 66 tokens per session (677 once invoked), scanned A, original, MIT.

A template for writing a coding-agent skill: a set of instructions that tells the agent when to use it, what rules to follow, and which mistakes to avoid.

In plain words
What is it for?
Use it as a starting point when defining a skill's trigger phrases, code patterns, rules, and anti-patterns.
Why use it?
It gives an unfinished skill a clear structure, but the supplied content is only a placeholder and does not describe a real capability.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the go-profiling plugin — 1 skill shipped together

Good fit Use it as a starting point when defining a skill's trigger phrases, code patterns, rules, and anti-patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spf13/go-skills/skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add spf13/go-skills --skill skill
Clone the repo
git clone --depth 1 https://github.com/spf13/go-skills

Made for: Claude Code.

Or install go-profiling, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for go-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/spf13/go-skills/skill/github.svg)](https://agentmods.dev/skills/spf13/go-skills/skill)
Your own site
<a href="https://agentmods.dev/skills/spf13/go-skills/skill"><img src="https://agentmods.dev/badge/skills/spf13/go-skills/skill/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.

agentmods 80×15 button for go-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/spf13/go-skills/skill"><img src="https://agentmods.dev/badge/skills/spf13/go-skills/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00677
Opus 5.5 $0.00026 $0.00271
Sonnet 5.5 $0.00013 $0.00135
Haiku 4.5 $0.00007 $0.00068

Measured 18d ago against content hash 777f1e5b7510, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-profiling 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 18d 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.

templates/skill/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

go-profiling

When this applies

  • A benchmark regressed and you need to know whether the cause is allocations, GC, lock contention, or call overhead.
  • A service's RSS climbs while heap profiles stay flat — a leak in goroutines, or memory retained off-heap.
  • A hot path allocates inside a loop and you want the escape analysis answer before restructuring it.

When NOT to Use This Skill

For correctness bugs, wrong output, or a failing test use go. For CLI flag and command design use cobra-viper. For cutting a release or versioning the module use go-release. Name the skills this one defers to — a skill with no negative trigger claims prompts its siblings own.

Rules

  • Measure before you change anything. go test -bench . -benchmem for the unit of work; go tool pprof -http=:8080 over -cpuprofile / -memprofile output. A change with no before-and-after number is a guess.
  • Read the profile in the right units. -sample_index=alloc_objects counts allocations, alloc_space counts bytes; the default inuse_space answers a different question than the one usually asked.
  • Serve profiles from a long-running process with net/http/pprof on a private listener, never the public mux — the endpoints have no authentication, and a CPU profile is 30 seconds of SIGPROF.
  • Confirm an escape with go build -gcflags=-m against the one package that changed. The analysis is per-package, and the compiler's moved to heap is the only answer that matters.
  • Compare runs with benchstat, not by eyeballing -bench output. One run cannot tell a real 3% win from noise.
  • Stop when the profile shows the remaining cost is proportional to work the program has to do. Optimization without a target is rework.

Read the full file on GitHub · 44 lines

Files

What ships with it

2 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.

Changes

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.

  1. 18d ago Changed · +21 lines · +35 tokens per session 777f1e5b7510
  2. 2mo ago First seen · 23 lines · 31 tokens per session scan A 0af95fd2c345

Subscribe to this mod's changes

go-profiling is a skill published in the GitHub repository spf13/go-skills (727 stars, last pushed 19d ago), licensed MIT. It adds 66 tokens to every session and 677 once invoked, about $0.0003 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-09-18.

Related

go-profiling compared with skills from other repositories

go-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-profilingspf13/go-skillsSkill72719d agoMITA66Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code