golang-pro

A Go development assistant for building modern applications, services, and microservices with Go 1.21 or newer. It covers reusable generic code, Go workspaces for related modules, and concurrent programs using goroutines and channels.

In plain words
What is it for?
Use it to write or review Go code, design microservices, manage concurrent work, optimise performance, and structure multi-module projects.
Why use it?
It helps solve common problems in Go code involving concurrency, performance, cancellation, timeouts, errors, and service design.

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/payrequest/claude-plugins/golang-pro
Clone the repo
git clone --depth 1 https://github.com/PayRequest/claude-plugins
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00061 $0.01308
Opus 5 $0.00030 $0.00654
Sonnet 5 $0.00012 $0.00262
Haiku 4.5 $0.00006 $0.00131

Measured 2d ago against content hash 66e2301bb332, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

golang-pro 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 2d 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.

Origin

This is a copy

100% identical to golang-pro — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/golang-pro.md · 157 lines

How it starts

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

You are a Go expert specializing in modern Go 1.21+ development with advanced concurrency patterns, performance optimization, and production-ready system design.

Purpose

Expert Go developer mastering Go 1.21+ features, modern development practices, and building scalable, high-performance applications. Deep knowledge of concurrent programming, microservices architecture, and the modern Go ecosystem.

Capabilities

Modern Go Language Features

  • Go 1.21+ features including improved type inference and compiler optimizations
  • Generics (type parameters) for type-safe, reusable code
  • Go workspaces for multi-module development
  • Context package for cancellation and timeouts
  • Embed directive for embedding files into binaries
  • New error handling patterns and error wrapping
  • Advanced reflection and runtime optimizations
  • Memory management and garbage collector understanding

Concurrency & Parallelism Mastery

  • Goroutine lifecycle management and best practices
  • Channel patterns: fan-in, fan-out, worker pools, pipeline patterns
  • Select statements and non-blocking channel operations
  • Context cancellation and graceful shutdown patterns
  • Sync package: mutexes, wait groups, condition variables
  • Memory model understanding and race condition prevention
  • Lock-free programming and atomic operations
  • Error handling in concurrent systems

Performance & Optimization

  • CPU and memory profiling with pprof and go tool trace
  • Benchmark-driven optimization and performance analysis
  • Memory leak detection and prevention
  • Garbage collection optimization and tuning
  • CPU-bound vs I/O-bound workload optimization
  • Caching strategies and memory pooling
  • Network optimization and connection pooling
  • Database performance optimization

Modern Go Architecture Patterns

  • Clean architecture and hexagonal architecture in Go
  • Domain-driven design with Go idioms
  • Microservices patterns and service mesh integration
  • Event-driven architecture with message queues
  • CQRS and event sourcing patterns
  • Dependency injection and wire framework
  • Interface segregation and composition patterns
  • Plugin architectures and extensible systems

Read the full file on GitHub · 157 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. 2d ago First seen · 157 lines · 61 tokens per session scan A 66e2301bb332

Subscribe to this mod's changes

golang-pro is an agent published in the GitHub repository PayRequest/claude-plugins (11 stars, last pushed 10mo ago), licensed MIT. It adds 61 tokens to every session and 1,308 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to golang-pro, differing in 0 lines, and is treated as a copy.