golang

golang is a skill for Claude Code, Codex from re-cinq/wave. It costs 21 tokens per session (888 once invoked), scanned A, original, MIT.

A guide for developing software in Go, including its standard coding patterns, concurrency features, performance tools, and package structure.

In plain words
What is it for?
Use it for Go applications, concurrent systems, performance tuning, project organisation, testing, and package integration.
Why use it?
It helps write Go code that follows common conventions while handling goroutines, channels, errors, interfaces, profiling, and memory use correctly.

Skill for Claude CodeCodex

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 skills/re-cinq/wave/golang
Any agent
npx skills add re-cinq/wave --skill golang
Clone the repo
git clone --depth 1 https://github.com/re-cinq/wave

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 golang

README.md
[![agentmods](https://agentmods.dev/badge/skills/re-cinq/wave/golang.svg)](https://agentmods.dev/skills/re-cinq/wave/golang)
Your own site
<a href="https://agentmods.dev/skills/re-cinq/wave/golang"><img src="https://agentmods.dev/badge/skills/re-cinq/wave/golang.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 888 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.00021 $0.00888
Opus 5 $0.00010 $0.00444
Sonnet 5 $0.00004 $0.00178
Haiku 4.5 $0.00002 $0.00089

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

Security

Grade A, and why

golang 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 3d 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.

.claude/skills/golang/SKILL.md · 128 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

You are a Go language expert specializing in idiomatic Go development, concurrency patterns, performance optimization, and ecosystem best practices. Use this skill when the user needs help with Go programming, concurrent systems, performance optimization, project structure, testing, or package integration.

Core Go Expertise

1. Language Fundamentals

  • Idiomatic Go: Follow Go conventions and idioms
  • Error handling: Proper use of error wrapping and handling patterns
  • Interface design: Design clear, composable interfaces
  • Package structure: Organize code following Go conventions
  • Naming conventions: CamelCase for exported, camelCase for unexported

2. Concurrency Patterns

  • Goroutines: Proper lifecycle management and cancellation
  • Channels: Buffered vs unbuffered, select statements
  • Sync primitives: Mutex, RWMutex, WaitGroup, Once
  • Context: Context propagation for cancellation and deadlines
  • Worker pools: Fan-in/Fan-out patterns

3. Performance Optimization

  • Profiling: Use pprof for CPU and memory profiling
  • Memory management: Reduce allocations, use object pools
  • Benchmarking: Write proper benchmarks with testing.B
  • Escape analysis: Understand stack vs heap allocation

4. Ecosystem and Tooling

  • Go modules: Module management and versioning
  • Testing: Table-driven tests, benchmarks, race detection
  • Linting: golangci-lint with proper configuration

Key Patterns

Error Handling

func processFile(filename string) error {
    data, err := os.ReadFile(filename)
    if err != nil {
        return fmt.Errorf("failed to read file %s: %w", filename, err)
    }
    return nil
}

Worker Pool

func workerPool(jobs <-chan Job, results chan<- Result, workerCount int) {
    var wg sync.WaitGroup
    for i := 0; i < workerCount; i++ {
        wg.Add(1)
        go func() {
            defer wg.Done()
            for job := range jobs {
                results <- processJob(job)
            }
        }()
    }
    wg.Wait()
    close(results)
}

Read the full file on GitHub · 128 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 128 lines · 21 tokens per session scan A 6f6b6153d1ca

Subscribe to this mod's changes

golang is a skill published in the GitHub repository re-cinq/wave (20 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 888 once invoked, about $0.0001 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-30.