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

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inference-gateway/adk/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 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/github.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/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/inference-gateway/adk/go"><img src="https://agentmods.dev/badge/skills/inference-gateway/adk/go.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00099 $0.02674
Opus 5.5 $0.00040 $0.01070
Sonnet 5.5 $0.00020 $0.00535
Haiku 4.5 $0.00010 $0.00267

Measured 1mo ago against content hash 76b035abca9d, 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 1mo 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. 1mo 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 yesterday), licensed Apache-2.0. It adds 99 tokens to every session and 2,674 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

python-math

Small Python utilities for math and text files.

trpc-group/trpc-agent-go · 13 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

adk-sample-creator

Author or rework a runnable example under examples/ in the ADK Go repository — the directory, main.go, the README with its Mermaid diagram and real transcript, and the index row. Use when adding a sample for a feature (workflow graph, tool, registry client, model backend, server), when asked to "add an example" for…

google/adk-go · 94 tokens

agentscope-java

Expert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or…

agentscope-ai/agentscope-java · 91 tokens

stack-trace-go-probe

Internal helper for meta-stack-trace-investigator. Use when a Go panic or stack trace needs Go-specific nil/error checks, go test reproducer guidance, and patch targets.

opensquilla/opensquilla · 42 tokens