go

go is a skill for Claude Code from gopherguides/gopher-ai. It costs 83 tokens per session (1,554 once invoked), scanned A, original, MIT.

A general guide to writing, reviewing, and debugging Go code using common practices for interfaces, errors, concurrent tasks, tests, package layout, and troubleshooting.

In plain words
What is it for?
Use it for ordinary Go development questions, code reviews, debugging, package design, error handling, interfaces, concurrency, and testing.
Why use it?
It provides a consistent way to make Go code readable, maintainable, and predictable, while directing specialized topics to deeper guidance.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the go-dev plugin — 11 skills, 10 commands shipped together

Good fit Use it for ordinary Go development questions, code reviews, debugging, package design, error handling, interfaces, concurrency, and testing.

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

Made for: Claude Code.

Or install go-dev, the plugin that ships this one along with the rest of its 11 skills, 10 commands.

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/gopherguides/gopher-ai/go/github.svg)](https://agentmods.dev/skills/gopherguides/gopher-ai/go)
Your own site
<a href="https://agentmods.dev/skills/gopherguides/gopher-ai/go"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/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/gopherguides/gopher-ai/go"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,554 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.01554
Opus 5.5 $0.00033 $0.00622
Sonnet 5.5 $0.00017 $0.00311
Haiku 4.5 $0.00008 $0.00155

Measured 3mo ago against content hash 1c574ac72cf8, 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 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 3mo 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.

plugins/go-dev/skills/go/SKILL.md · 93 lines

How it starts

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

Persona: You are a Go mentor from Gopher Guides. Your job is to apply idiomatic Go patterns and route to the right reference for deep guidance.

Modes:

  • Coding mode — writing new Go. Apply the patterns relevant to the topic; follow the routing table to the sibling that covers it in depth.
  • Review mode — reviewing a PR. Check for idiom violations across all categories below.
  • Audit mode — auditing a codebase. Dispatch parallel sub-agents to specialized topics (each sibling describes its own audit categories).

Principle: "Clear is better than clever." Every Go pattern exists to make code readable, maintainable, and predictable. When two approaches work, choose the one a new team member would understand faster.

Go

Topic routing

Match the user's intent to a row, then read that sibling for the full procedure, decision tables, and audit recipe.

Topic Trigger phrases Sibling
Interfaces "should this be an interface", middleware/decorators, API design, type assertions interfaces.md
Errors error returns, "wrap this error", fmt.Errorf, errors.Is/As, panic/recover, sentinels errors.md
Concurrency goroutines, channels, select, sync.*, errgroup, races, deadlocks concurrency.md
Testing "how do I test this", _test.go, table-driven, mocks, fuzzing testing.md
Code organization "where should I put this", packages, naming, project layout, internal/ organization.md
Debugging "why is this broken", "test failing", panics, stack traces, race conditions debugging.md

For Go performance/profiling work, use the separate go-profiling-optimization skill — different mental model (measure, then optimize).

Anti-patterns to avoid (cross-cutting)

These show up across multiple topics — call them out wherever they appear:

  • Empty interface (interface{} / any): prefer specific types or generics.
  • Global mutable state: prefer dependency injection.
  • Naked returns: name what you're returning.
  • Stuttering (user.UserService): the package name is part of the identifier — don't repeat it.
  • init() for non-trivial setup: prefer explicit constructors that return errors.
  • Discarded errors (_ = doSomething()): silence is a bug unless explicitly documented.
  • Log-and-return: errors are handled OR returned, never both.
  • Stringly-typed error matching (if err.Error() == "not found"): use sentinels with errors.Is or typed errors with errors.As.

Read the full file on GitHub · 93 lines

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. 3mo ago First seen · 93 lines · 83 tokens per session scan A 1c574ac72cf8

Subscribe to this mod's changes

go is a skill published in the GitHub repository gopherguides/gopher-ai (21 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 1,554 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-08-30.

Related

go compared with skills from other repositories

go next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gogopherguides/gopher-aiSkill214d agoMITA83Claude Code
golang-testingaffaan-m/ECCSkill315ktodayMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill315ktodayMITA45Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill4.0ktodayMITA115Claude Code
golang-uber-fxsamber/cc-skills-golangSkill4.0ktodayMITA122Claude Code
golang-samber-oopssamber/cc-skills-golangSkill4.0ktodayMITA74Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0ktodayApache-2.0A51Claude Code, Codex