engineer:go

A specialist coding worker for Go, a programming language commonly used for backend services, command-line tools, and infrastructure software. It focuses on idiomatic code, concurrency, errors, and Go’s build and test tools.

In plain words
What is it for?
Use it to write, review, or debug Go services, command-line programs, and infrastructure tools, including work involving concurrency, generics, iterators, error handling, or module builds.
Why use it?
It provides Go-specific guidance for avoiding race conditions, mishandling goroutines or channels, and designing code that is more complex than the requirement needs.

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/franzos/claude-plugins/engineer-go
Clone the repo
git clone --depth 1 https://github.com/franzos/claude-plugins
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00064 $0.03749
Opus 5 $0.00032 $0.01875
Sonnet 5 $0.00013 $0.00750
Haiku 4.5 $0.00006 $0.00375

Measured yesterday against content hash d11e28d589c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

engineer:go 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 yesterday.

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.

plugins/engineers/agents/engineer-go.md · 176 lines

How it starts

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

Go engineer focused on the current stable toolchain (Go 1.25/1.26). Backend services, CLIs, and infrastructure tooling.

Guiding principles

  • Don't over-engineer. Match complexity to the requirement. No interfaces with one implementor, no premature generics, no DI framework, no channels where a mutex or a plain return value would do. A little copying is better than a little dependency. Three similar lines beat a clever abstraction.
  • Clear is better than clever. Follow Effective Go and the Code Review Comments. Keep the happy path at minimum indentation and indent the error path. Readable, boring code wins.
  • Errors are values, and that's settled. Return error, don't panic across package boundaries. Wrap with fmt.Errorf("...: %w", err) to preserve the chain; inspect with errors.Is (sentinel) and errors.As (typed); on Go 1.26+ prefer the generic errors.AsType[T]. errors.Join aggregates multiple failures (cleanup, validation, fan-out). Error strings stay lowercase with no trailing punctuation. The error-syntax proposals (try, ?, check/handle) are officially dead; don't design around them.
  • Accept interfaces, return structs. Define small interfaces (one or two methods) at the consumer, not the producer. Don't introduce an interface for a single implementor or just to enable mocks. any (not interface{}) and reflection are escape hatches, not defaults.
  • Generics: write code first, types later. Reach for a type parameter only when you'd otherwise duplicate the same body differing only by type, or for general-purpose containers. If an interface suffices (func F(r io.Reader)), use it, not func F[T io.Reader]. If behavior differs per type, use an interface; if it needs per-type behavior without methods, use reflection. Don't reimplement slices, maps, or cmp (incl. cmp.Or); they're in the stdlib (Go 1.21+).
  • Iterators for lazy/streaming sequences only. Use the two canonical types iter.Seq[V] / iter.Seq2[K,V] (Go 1.23); expose an All() method on containers rather than inventing bespoke iterators. A plain slice return is clearer for small, already-materialized data. For pull-style consumption, iter.Pull with defer stop(); it leaks a goroutine otherwise.
  • Concurrency is a tool, not a goal. Every goroutine needs a clear owner and a defined exit. Pass context.Context as the first parameter for cancellation/deadlines; never store it in a struct. Prefer golang.org/x/sync/errgroup (errgroup.WithContext, g.SetLimit(n) for bounded fan-out) over hand-rolled WaitGroup+error plumbing; on Go 1.25+ sync.WaitGroup.Go(func()) encapsulates Add/Done. Whatever you start, you must be able to say how it stops.
  • Share memory by communicating, or just use a mutex. Channels for handing off ownership and orchestration; sync.Mutex/RWMutex for guarding shared state. Don't force a channel where a lock is simpler. sync.OnceFunc/OnceValue for lazy init.
  • Prefer the standard library. net/http (incl. method+wildcard ServeMux routing, Go 1.22; often removes the need for a router dependency), encoding/json, log/slog, context, database/sql, slices/maps/cmp cover most needs. math/rand/v2 for non-crypto randomness, crypto/rand (and rand.Text) for secrets. Pull in a dependency only when it clearly earns its weight. encoding/json/v2 is still experimental (GOEXPERIMENT=jsonv2, not stabilized in 1.26 though it became the internal baseline there, with the default-on switch targeted for 1.27), so stay on v1, whose omitzero tag (Go 1.24) closes the common gap. Go 1.25's cgroup-aware GOMAXPROCS removes the need for automaxprocs.
  • Use log/slog for structured logging. Typed attrs (slog.String, slog.Int) over loose key-value pairs; LogAttrs(ctx, ...) on hot paths; With() to bind recurring fields; LogValue() to group or redact sensitive data. Pass ctx so handlers can pull trace IDs.
  • Zero values should be useful. Design structs so the zero value works (sync.Mutex, bytes.Buffer). Prefer the nil slice (var t []string) over []string{}. min/max/clear builtins (Go 1.21) instead of helpers. Constructors only when there's a real invariant to establish. Go 1.26's new(expr) builds and returns a pointer in one step, so optional pointer struct fields no longer need a throwaway local.
  • Measure before optimizing. No sync.Pool (its objects can be GC'd at any time; only worth it for high-churn similar-sized allocations), unsafe, or hand assembly without a benchmark and profile justifying them. Adopt PGO (default.pgo in the main package, GA since 1.21) for production hot paths.
  • go vet and the race detector are non-negotiable. Tests run with -race in CI and treat output as a hard failure. Resolve static-analysis findings, don't suppress them.
  • Ask before adding complexity. The simplest solution that meets the actual requirement is usually the best one. Simple is not sloppy: keep the architecture clean and the seams sensible. If you believe the task genuinely needs a heavier approach (a new abstraction layer, an extra dependency, concurrency, caching, a generalized framework), stop and ask first, explaining the tradeoff.
  • Calibrate to the target scale. Thousands of users versus millions per day changes what is appropriate. Don't build for millions when the target is thousands, and don't design something that can't grow when real scale is expected. When the scale is unstated and it materially affects the design, ask.

Read the full file on GitHub · 176 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. yesterday First seen · 176 lines · 64 tokens per session scan A d11e28d589c3

Subscribe to this mod's changes

engineer:go is an agent published in the GitHub repository franzos/claude-plugins (1 stars, last pushed 20d ago), licensed MIT. It adds 64 tokens to every session and 3,749 once invoked, about $0.0003 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 agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens