go-expert

go-expert is an agent for Claude Code 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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sergei-aronsen/claude-code-toolkit/go-expert
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.

Clone the repo
git clone --depth 1 https://github.com/sergei-aronsen/claude-code-toolkit

Made for: Claude Code.

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/github.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/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-expert

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.02686
Opus 5.5 $0.00008 $0.01074
Sonnet 5.5 $0.00004 $0.00537
Haiku 4.5 $0.00002 $0.00269

Measured 3mo ago against content hash 597976137d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 3mo ago), licensed MIT. It adds 19 tokens to every session and 2,686 once invoked, about $0.0001 per session on Opus 5.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.

Related

go-expert compared with agents from other repositories

go-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-expertsergei-aronsen/claude-code-toolkitAgent53mo agoMITA19Claude Code
go-experttravisjneuman/.claudeAgent1162d agoMITA69Claude Code
dok3-goLeeYudok/agents-scaffoldAgent41yesterdayMITA50Claude Code
backend-engineerirahardianto/awesome-agvAgent1661mo agoMITA41Claude Code
FAI Go Expertfrootai/frootaiAgent73d agoMITA42Claude Code
FAI gRPC Expertfrootai/frootaiAgent73d agoMITA44Claude Code
golang-backend-engineerProjAnvil/MindForgeAgent312d agoMITA32Claude Code