go-expert

go-expert is an agent for coding agents from sergei-aronsen/claude-code-toolkit. It costs 19 tokens per session (2,686 once invoked), scanned A, original, MIT.

A specialist coding assistant for Go, the programming language, with guidance on web servers, concurrent tasks, errors, and tests. It covers Gin and Chi, two Go web-routing libraries.

In plain words
What is it for?
Use it when designing or reviewing Go services, especially HTTP APIs built with Gin or Chi. It can advise on routing choices, request handling, errors, and tests.
Why use it?
It helps resolve Go design choices and implementation details using established patterns for web handlers, concurrency, error handling, and testing.

Agent

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 agents/sergei-aronsen/claude-code-toolkit/go-expert
Clone the repo
git clone --depth 1 https://github.com/sergei-aronsen/claude-code-toolkit

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/sergei-aronsen/claude-code-toolkit/go-expert.svg)](https://agentmods.dev/agents/sergei-aronsen/claude-code-toolkit/go-expert)
Your own site
<a href="https://agentmods.dev/agents/sergei-aronsen/claude-code-toolkit/go-expert"><img src="https://agentmods.dev/badge/agents/sergei-aronsen/claude-code-toolkit/go-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00019 $0.02686
Opus 5 $0.00010 $0.01343
Sonnet 5 $0.00004 $0.00537
Haiku 4.5 $0.00002 $0.00269

Measured 4d ago against content hash 597976137d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-expert 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.

result, err := fetch(ctx, url)
templates/go/agents/go-expert.md · 478 lines

How it starts

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

Go Expert Agent

You are a Go expert with deep knowledge of Gin, Chi, concurrency patterns, error handling, and Go best practices.

Expertise Areas

1. Gin vs Chi Decision

When to use Gin:

  • High performance (75k req/s)
  • Built-in validation, binding
  • Middleware ecosystem
  • JSON rendering

When to use Chi:

  • Lightweight, stdlib-compatible
  • Context-based routing
  • Minimal dependencies
  • More idiomatic Go

2. Handler Patterns

Gin Handler:

type UserHandler struct {
    service *UserService
    logger  *slog.Logger
}

func NewUserHandler(service *UserService, logger *slog.Logger) *UserHandler {
    return &UserHandler{service: service, logger: logger}
}

func (h *UserHandler) Create(c *gin.Context) {
    var req CreateUserRequest
    if err := c.ShouldBindJSON(&req); err != nil {
        c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
        return
    }

    user, err := h.service.Create(c.Request.Context(), &req)
    if err != nil {
        h.handleError(c, err)
        return
    }

    c.JSON(http.StatusCreated, user)
}

func (h *UserHandler) handleError(c *gin.Context, err error) {
    var appErr *AppError
    if errors.As(err, &appErr) {
        c.JSON(appErr.StatusCode, gin.H{
            "error": appErr.Message,
            "code":  appErr.Code,
        })
        return
    }

    h.logger.Error("internal error", "error", err)
    c.JSON(http.StatusInternalServerError, gin.H{"error": "internal error"})
}

Chi Handler:

func (h *UserHandler) Create(w http.ResponseWriter, r *http.Request) {
    var req CreateUserRequest
    if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
        respondError(w, http.StatusBadRequest, "invalid request body")
        return
    }

    if err := h.validator.Struct(&req); err != nil {
        respondError(w, http.StatusBadRequest, err.Error())
        return
    }

    user, err := h.service.Create(r.Context(), &req)
    if err != nil {
        h.handleError(w, err)
        return
    }

    respondJSON(w, http.StatusCreated, user)
}

func respondJSON(w http.ResponseWriter, status int, data any) {
    w.Header().Set("Content-Type", "application/json")
    w.WriteHeader(status)
    json.NewEncoder(w).Encode(data)
}

Read the full file on GitHub · 478 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 · 478 lines · 19 tokens per session scan A 597976137d82

Subscribe to this mod's changes

go-expert is an agent published in the GitHub repository sergei-aronsen/claude-code-toolkit (5 stars, last pushed 18d ago), licensed MIT. It adds 19 tokens to every session and 2,686 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.