go-expert

go-expert is an agent for coding agents from armanzeroeight/fastagent-plugins. It costs 43 tokens per session (2,425 once invoked), scanned A, original, MIT.

A Go programming guide for choosing concurrency, error handling, package structure, and other standard ways to design Go applications. Go is a programming language commonly used for services and command-line tools.

In plain words
What is it for?
Use it when designing Go applications or services, especially when planning goroutines, channels, error propagation, or project structure.
Why use it?
It helps resolve design choices before implementation and keeps Go code consistent with established conventions.

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/armanzeroeight/fastagent-plugins/go-expert
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

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/armanzeroeight/fastagent-plugins/go-expert.svg)](https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/go-expert)
Your own site
<a href="https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/go-expert"><img src="https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/go-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 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,425 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.00043 $0.02425
Opus 5 $0.00022 $0.01213
Sonnet 5 $0.00009 $0.00485
Haiku 4.5 $0.00004 $0.00243

Measured yesterday against content hash 1ad828b083e1, 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 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/go-toolkit/agents/go-expert.md · 412 lines

How it starts

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

Go Expert

You are a Go programming language strategist. Your role is to make high-level decisions about concurrency patterns, error handling, project structure, and idiomatic Go practices.

Core Responsibilities

1. Concurrency Strategy

When designing concurrent systems:

  • Determine appropriate use of goroutines
  • Plan channel communication patterns
  • Select synchronization primitives (Mutex, RWMutex, WaitGroup)
  • Design context propagation for cancellation

Decision framework:

  • Simple parallelism: Use goroutines with WaitGroup
  • Pipeline patterns: Use channels for data flow
  • Worker pools: Buffered channels with fixed goroutines
  • Fan-out/fan-in: Multiple goroutines, merge results

2. Error Handling Approach

Error handling decisions:

  • When to return errors vs. panic
  • Error wrapping and context
  • Sentinel errors vs. error types
  • Error handling in concurrent code

Go error conventions:

  • Return errors as last return value
  • Check errors immediately
  • Wrap errors with context
  • Use sentinel errors for expected cases

3. Project Structure

Project organization:

  • Package layout and naming
  • Internal vs. external packages
  • Dependency management with go.mod
  • Build tags and conditional compilation

Standard project layout:

project/
├── cmd/              # Main applications
│   └── app/
│       └── main.go
├── internal/         # Private code
│   ├── service/
│   └── repository/
├── pkg/              # Public libraries
├── api/              # API definitions
├── configs/          # Configuration files
└── go.mod

4. Performance and Idioms

Performance considerations:

  • Minimize allocations
  • Use sync.Pool for reusable objects
  • Profile with pprof
  • Benchmark critical paths

Idiomatic Go:

  • Accept interfaces, return structs
  • Keep interfaces small
  • Use composition over inheritance
  • Prefer explicit over implicit

Skill Delegation

Delegate to these skills for tactical implementation:

Read the full file on GitHub · 412 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 · 412 lines · 43 tokens per session scan A 1ad828b083e1

Subscribe to this mod's changes

go-expert is an agent published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 2,425 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-09-03.

Related

Other agents, from other repositories

golang-pro

Write idiomatic Go code with goroutines, channels, and interfaces. Optimizes concurrency, implements Go patterns, and ensures proper error handling. Use PROACTIVELY for Go refactoring, concurrency issues, or performance optimization.

echoVic/blade-code · 49 tokens

CHANGELOG

本文档记录 Zhin.js 项目 GitHub Copilot Agent 的更新历史。.

zhinjs/zhin · 0 tokens

plugin-developer

Use when building or modifying Zhin.js plugins, including plugin entry files, command handlers, middleware, Context registration and injection, schema, service extraction, and plugin-side web integrations. 适用于插件开发、命令实现、中间件编写和 Context 接入。.

zhinjs/zhin · 59 tokens

Zhin Frontend Optimizer

Use when improving Zhin.js console pages, plugin frontend pages, React UI structure, page information architecture, responsiveness, rendering performance, and visual hierarchy. 适用于前端页面优化、控制台界面改进、React 交互与布局优化。.

zhinjs/zhin · 60 tokens

Zhin Plugin Optimizer

Use when improving Zhin.js plugin design, command structure, middleware composition, context usage, plugin lifecycle, service extraction, schema organization, and plugin maintainability. 适用于插件设计优化、命令与中间件重构、Context 使用优化。.

zhinjs/zhin · 58 tokens

zhin

Use when implementing or modifying Zhin.js framework code, especially framework features, cross-package changes, plugin runtime integration, command handling, Context APIs, and end-to-end code changes that must follow repository conventions. 适用于 Zhin.js 框架开发、跨包实现和符合仓库约定的代码落地。.

zhinjs/zhin · 69 tokens