go

go is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/gopherguides/gopher-ai/go
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, Codex.

Or install go-dev, the plugin that ships this one along with the rest of its 3 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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00083 $0.01554
Opus 5 $0.00042 $0.00777
Sonnet 5 $0.00017 $0.00311
Haiku 4.5 $0.00008 $0.00155

Measured 3d ago against content hash 1c574ac72cf8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 today), licensed MIT. It adds 83 tokens to every session and 1,554 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

development

开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.

fengshao1227/ccg-workflow · 41 tokens

rust-pro

Master modern Rust (2024 edition) with async patterns, advanced type system features, and production-ready systems programming. Expert in the current Rust ecosystem including Tokio, axum, and modern crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.

vudovn/ag-kit · 58 tokens

ax-python-agent

Use when writing Python code with axllm for agents, child delegation, tools, MCP, citations, persistent playbook learning, stage instructions, runtime state, final typed responses, and direct-respond executor skipping.

ax-llm/ax · 49 tokens

migrate-better-result-3

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

dmmulroy/better-result · 52 tokens

mps-aspect-actions

Use when defining or editing MPS node factories (the "actions" aspect) — NodeFactories roots, per-concept NodeFactory setup functions that initialize a freshly created node and optionally copy data from a replaced sampleNode, plus the actions aspect's CopyPasteHandlers and PasteWrappers roots. Reach for this skill…

JetBrains/MPS · 115 tokens

product-marketing

Build product marketing strategy including positioning, messaging, and go-to-market. Use when the user says "positioning", "messaging framework", "go-to-market", "GTM strategy", "product marketing", "competitive positioning", "battlecard", "sales enablement", "launch plan", or asks about how to position or message…

OpenClaudia/openclaudia-skills · 77 tokens