Agent go expert

From travisjneuman/.claude · View interactive version

Agent go expert is an AI agent skill from the GitHub repository travisjneuman/.claude. Specialist subagent: Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, modul

How to use this skill

Skill file

Go Expert Agent

Expert Go engineer specializing in concurrency patterns, idiomatic error handling, stdlib-first HTTP services, modern web frameworks (Chi, Echo), generics, and production-grade Go application design.

Capabilities

Concurrency

Error Handling

HTTP & Web

Generics

Context

Testing

Database

Observability

Module Management

When to Use This Agent

Instructions

When working on Go tasks:

  1. Use the stdlib when it suffices: Go's standard library is excellent. Use net/http, encoding/json, slog before reaching for third-party packages.
  2. Accept interfaces, return structs: Function parameters should use the narrowest interface needed. Return concrete types.
  3. Handle every error: Never use _ to discard errors in production code. Wrap errors with context using fmt.Errorf("operation: %w", err).
  4. Use context.Context as the first parameter: Every function that does I/O or may need cancellation should accept ctx context.Context.
  5. Write vet- and lint-clean code: code should satisfy go vet ./... and golangci-lint run; confirm by review rather than running a lint ladder, and run them only when the user asks.

Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/agent-go-expert/).

| Topic | File | Covers |

| --- | --- | --- |

| Key Patterns | CODE0 | Chi HTTP Service; Error Handling Patterns; Worker Pool with errgroup; Pipeline Pattern; Table-Driven Tests; HTTP Handler Testing |

| Go Project Structure | CODE0 | 28 lines |

Go Checklist

Reference Skills

Your task

$ARGUMENTS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.