go

go is a skill for Claude Code, Codex from inference-gateway/adk. It costs 99 tokens per session (2,674 once invoked), scanned A, a copy of go, Apache-2.0.

A set of guidelines for writing clear, conventional Go code, including package design, interfaces, error handling, tests, generics, and newer standard-library features.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring Go programs, especially when deciding how to structure packages, handle errors, design types, or write table-driven tests.
Why use it?
It helps prevent Go code from becoming unnecessarily complex or shaped like code from other languages. It gives practical rules for keeping code direct and easy to follow.

Skill for Claude CodeCodex

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/inference-gateway/adk/go
Any agent
npx skills add inference-gateway/adk --skill go
Clone the repo
git clone --depth 1 https://github.com/inference-gateway/adk

Made for: Claude Code, Codex.

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/inference-gateway/adk/go.svg)](https://agentmods.dev/skills/inference-gateway/adk/go)
Your own site
<a href="https://agentmods.dev/skills/inference-gateway/adk/go"><img src="https://agentmods.dev/badge/skills/inference-gateway/adk/go.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 86% copy Near-identical to another mod 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.00099 $0.02674
Opus 5 $0.00049 $0.01337
Sonnet 5 $0.00020 $0.00535
Haiku 4.5 $0.00010 $0.00267

Measured 4d ago against content hash 76b035abca9d, 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 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 4d 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, u)
Origin

This is a copy

86% identical to go — 49 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/go/SKILL.md · 272 lines

How it starts

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

Idiomatic Go

Write Go that is boring in the best way - direct, predictable, obvious on the first read. Clear is better than clever. The common failure mode (and the LLM default) is importing Java/Spring habits - deep layer trees, generic repositories, heavy frameworks, manual worker pools - into a language built for flat, simple, discoverable APIs. When in doubt, delete the abstraction.

Core principles

Clear is better than clever. If a function's control flow takes three reads to follow, rewrite it. Keep the happy path un-indented: handle errors and edge cases first and return.

func GetUser(id string) (*User, error) {
    user, err := db.FindUser(id)
    if err != nil {
        return nil, fmt.Errorf("finding user %s: %w", id, err)
    }
    return user, nil // happy path stays at the left margin
}

Make the zero value useful. Design types so the zero value works without a constructor - sync.Mutex and bytes.Buffer are the gold standard.

type Counter struct {
    mu    sync.Mutex // usable at the zero value - no New() needed
    count int
}

func (c *Counter) Inc() { c.mu.Lock(); c.count++; c.mu.Unlock() }

Packages: flat, named for what they do

Start flat; add a package only when a domain earns a namespace. Name packages by what they do (auth, billing, jobs), never by what layer they are (service, repository, controller) - layer-named packages breed circular imports and interface bloat and add zero clarity in Go. No utils/, helpers/, or common/ junk drawers; they signal unclear ownership. Packages don't import each other sideways - cycles mean wrong boundaries; the composition root wires them.

In this repo: the two public surfaces are server/ (build an A2A agent) and client/ (call one), with types/ for the shared A2A wire types and server/config/ for configuration. That is the established structure - follow it; don't invent a service/repository layer split. spf13's transferable rules still hold: name by purpose, no junk-drawer packages, wire at the composition root (here, the A2AServerBuilder / AgentBuilder).

Read the full file on GitHub · 272 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. 4d ago First seen · 272 lines · 99 tokens per session scan A 76b035abca9d

Subscribe to this mod's changes

go is a skill published in the GitHub repository inference-gateway/adk (25 stars, last pushed today), licensed Apache-2.0. It adds 99 tokens to every session and 2,674 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to go, differing in 49 lines, and is treated as a copy.