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.
npx agentmods add skills/gopherguides/gopher-ai/gonpx skills add gopherguides/gopher-ai --skill gogit clone --depth 1 https://github.com/gopherguides/gopher-aiWrote 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.
[](https://agentmods.dev/skills/gopherguides/gopher-ai/go)<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>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.
| Model | Per session | Once 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 |
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.
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 witherrors.Isor typed errors witherrors.As.
What ships with it
19 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.
- concurrency.md 5.7 KB
- debugging.md 6.5 KB
- errors.md 4.7 KB
- evals/evals.json 83 KB
- interfaces.md 6.0 KB
- organization.md 4.6 KB
- references/channels-and-select.md 7.8 KB
- references/error-creation.md 11 KB
- references/error-handling-patterns.md 17 KB
- references/error-wrapping.md 12 KB
- references/interface-design.md 7.5 KB
- references/interface-patterns.md 10 KB
- references/naming-conventions.md 10 KB
- references/package-design.md 8.7 KB
- references/pipelines.md 8.0 KB
- references/sync-primitives.md 8.1 KB
- references/table-driven-tests.md 7.6 KB
- references/test-doubles.md 9.1 KB
- testing.md 5.1 KB
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.
- 3d ago First seen · 93 lines · 83 tokens per session scan A 1c574ac72cf8
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.
Other skills, from other repositories
development
开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.
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.
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.
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.
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…
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…