go-expert

go-expert is a skill for Claude Code, Codex from ApexIQ/skillsmith. It costs 38 tokens per session (2,132 once invoked), scanned A, original, MIT.

A guide to writing and reviewing Go code, where Go is a programming language often used for services and command-line tools. It covers error handling, concurrency, project structure, tests, and benchmarks.

In plain words
What is it for?
Use it when building or reviewing Go services and command-line tools, designing concurrent code, structuring projects, writing tests, or measuring performance.
Why use it?
It helps keep Go programs clear and maintainable while avoiding ignored errors, race conditions, and leaked background tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Go services and command-line tools, designing concurrent code, structuring projects, writing tests, or measuring performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/apexiq/skillsmith/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.

Any agent
npx skills add ApexIQ/skillsmith --skill go_expert
Clone the repo
git clone --depth 1 https://github.com/ApexIQ/skillsmith

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/apexiq/skillsmith/go_expert/github.svg)](https://agentmods.dev/skills/apexiq/skillsmith/go_expert)
Your own site
<a href="https://agentmods.dev/skills/apexiq/skillsmith/go_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/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/skills/apexiq/skillsmith/go_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/go_expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00038 $0.02132
Opus 5 $0.00019 $0.01066
Sonnet 5 $0.00008 $0.00426
Haiku 4.5 $0.00004 $0.00213

Measured 9d ago against content hash 4cc2e2f6646c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

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

.agent/skills/go_expert/SKILL.md · 317 lines

How it starts

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

🔷 Go Expert — Production-Grade Go

Philosophy: Go is about simplicity and clarity. If your Go code is clever, it's wrong. Write boring, obvious code that any engineer can debug at 2 AM.

1. When to Use This Skill

  • Writing new Go services or CLI tools
  • Reviewing Go code for idioms and best practices
  • Designing concurrent systems with goroutines
  • Structuring Go projects for maintainability
  • Writing effective Go tests and benchmarks
  • Debugging Go-specific issues (goroutine leaks, race conditions)

2. Go Idioms

Error Handling — The Go Way

// GOOD: Check errors immediately, add context
user, err := db.GetUser(ctx, userID)
if err != nil {
    return fmt.Errorf("get user %s: %w", userID, err)
}

// GOOD: Custom error types for programmatic handling
type NotFoundError struct {
    Resource string
    ID       string
}

func (e *NotFoundError) Error() string {
    return fmt.Sprintf("%s not found: %s", e.Resource, e.ID)
}

// Check error type
var nfe *NotFoundError
if errors.As(err, &nfe) {
    http.Error(w, nfe.Error(), http.StatusNotFound)
    return
}

// BAD: Ignoring errors
user, _ := db.GetUser(ctx, userID) // Bug waiting to happen

// BAD: Generic error without context
if err != nil {
    return err // Which step failed? Nobody knows.
}

Interfaces — Accept Interfaces, Return Structs

// GOOD: Small, focused interface
type UserStore interface {
    GetUser(ctx context.Context, id string) (*User, error)
    CreateUser(ctx context.Context, u *User) error
}

// GOOD: Concrete struct that implements the interface
type PostgresUserStore struct {
    db *sql.DB
}

func (s *PostgresUserStore) GetUser(ctx context.Context, id string) (*User, error) {
    // Implementation
}

// GOOD: Function accepts interface
func NewUserService(store UserStore) *UserService {
    return &UserService{store: store}
}

// BAD: Interface with 20 methods — too broad
type Repository interface {
    GetUser(...) ...
    CreateUser(...) ...
    DeleteUser(...) ...
    GetTeam(...) ...
    // ... 16 more methods
}

Read the full file on GitHub · 317 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. 9d ago First seen · 317 lines · 38 tokens per session scan A 4cc2e2f6646c

Subscribe to this mod's changes

go-expert is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 2,132 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

adept-contributing

How to contribute to the adeptability (adept) Go CLI — build, the required pre-PR gates, conventional commits, and where things live. Apply when changing adept's own source, opening a PR, or adding a harness.

itaywol/adeptability · 48 tokens

adept-code-style

Go code style and conventions for the adept codebase — formatting, linters, error wrapping with sentinels, the composition-root/no-globals rule, and core invariants. Apply when writing or reviewing Go in this repo. (matches: /.go).

itaywol/adeptability · 53 tokens

concurrency-patterns-go

Apply safe, idiomatic Go concurrency patterns with goroutines and channels. Use when the user works with goroutines, channels, sync primitives, context cancellation, worker pools, fan-in/fan-out, select statements, or asks about concurrent Go programming and avoiding race conditions.

VersoXBT/claude-initial-setup · 60 tokens

error-handling-go

Implement robust Go error handling with wrapping, sentinel errors, and custom types. Use when the user handles errors in Go, creates custom error types, wraps errors with fmt.Errorf and %w, uses errors.Is/As, or asks about Go error best practices and error propagation strategies.

VersoXBT/claude-initial-setup · 61 tokens

idiomatic-go

Write clean, idiomatic Go following community conventions and effective patterns. Use when the user writes Go code, designs packages, defines interfaces, uses struct embedding, writes receiver methods, organizes Go projects, or asks about Go best practices and conventions.

VersoXBT/claude-initial-setup · 52 tokens

go

Use when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog, project layout, table-driven tests, Go hardening. NOT language-agnostic threat modeling (that is secure-coding), NOT Dockerfile/CI shipping…

ericrisco/rsc-harness · 86 tokens