go

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

An expert guide to idiomatic Go, meaning code that follows common Go conventions. It covers package design, error handling, interfaces, concurrency, testing, and project layout, including current Go 1.25 practices.

In plain words
What is it for?
Use it whenever Go code is written, reviewed, debugged, or refactored.
Why use it?
It helps produce Go code that is easier to read, test, and maintain.

Skill for Claude Code

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

Part of the go plugin — 1 skill shipped together

Good fit Use it whenever Go code is written, reviewed, debugged, or refactored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spf13/go-skills/go
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 go
Clone the repo
git clone --depth 1 https://github.com/spf13/go-skills

Made for: Claude Code.

Or install go, 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/spf13/go-skills/go"><img src="https://agentmods.dev/badge/skills/spf13/go-skills/go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00125 $0.05510
Opus 5.5 $0.00050 $0.02204
Sonnet 5.5 $0.00025 $0.01102
Haiku 4.5 $0.00013 $0.00551

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

Security

Grade A, and why

go scanned grade A with 1 finding 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 15d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

return fetch(ctx, url)
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • go — 86% identical, 670 lines differ
go/SKILL.md · 436 lines

How it starts

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

Idiomatic Go: The Go Way

Idiomatic Go patterns and best practices for building robust, efficient, and maintainable applications.

When to Activate

  • Writing new Go code
  • Reviewing or auditing existing Go code
  • Refactoring Go code (especially code that looks like Java/Spring Boot patterns in Go)
  • Designing Go packages, modules, or APIs
  • Choosing between stdlib and third-party libraries
  • Any question about Go project structure, error handling, concurrency, or testing

When NOT to Use This Skill

This skill covers general Go idioms and project design. For CLI framework patterns use cobra-viper; for release, versioning, and distribution use go-release; for pre-implementation spec review use go-spec-reviewer; for desktop/webview apps use wails; for cross-filesystem file moves and untrusted path sanitization use fileflow-pathologize.

Version Gating: Check the Module's Floor First

Every version-gated feature is a floor: the module's packages must compile on the release that introduced it. Before recommending such a feature, establish the floor and recommend only what it supports.

  1. Read the go directive in the module's go.mod. That version is the floor for the module's own packages — a module declaring go 1.21 must still compile on Go 1.21, whatever toolchain you happen to be running.
  2. Check the file's build constraints. A file behind //go:build go1.24 may use Go 1.24 features even when the module's go directive is older.
  3. If the floor is unknown, read go.mod or ask. Never guess, and never assume the reader is on the latest release.

The inverse errors are just as real: do not flag an idiom as unavailable in a module whose floor already permits it, and do not flag an idiom as obsolete when the floor cannot reach its replacement — a module below a feature's release is entitled to the older idiom. And never raise a module's go directive merely to reach a convenience helper — a go directive is a floor imposed on every dependent of the module.

Read the full file on GitHub · 436 lines

Files

What ships with it

10 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. 15d ago Changed · -754 lines · +12 tokens per session 31cb214cc9a7
  2. 24d ago Changed · +1 lines a0f0b6e76fa9
  3. 1mo ago Changed · +414 lines 3d59dd31c3b5
  4. 3mo ago First seen · 775 lines · 113 tokens per session scan A dbe226cf78b6

Subscribe to this mod's changes

go is a skill published in the GitHub repository spf13/go-skills (722 stars, last pushed 15d ago), licensed MIT. It adds 125 tokens to every session and 5,510 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

go compared with skills from other repositories

go next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gospf13/go-skillsSkill72215d agoMITA125Claude Code
golang-testingaffaan-m/ECCSkill313k7d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill313k7d agoMITA45Claude Code, Kiro
ax-go-agent-optimizeax-llm/axSkill3.0ktodayApache-2.0A51Claude Code, Codex
golang-testingsamber/cc-skills-golangSkill4.0k21d agoMITA115Claude Code
golang-samber-oopssamber/cc-skills-golangSkill4.0k21d agoMITA74Claude Code
golang-uber-fxsamber/cc-skills-golangSkill4.0k21d agoMITA122Claude Code