golang-expert

golang-expert is a skill for Claude Code, Codex from librefang/librefang-registry. It costs 21 tokens per session (736 once invoked), scanned A, a copy of golang-expert, MIT.

A set of guidance for writing Go, a programming language, with attention to interfaces, modules, error handling, and concurrent work. Concurrent work means letting multiple operations run at the same time using Go's goroutines and channels.

In plain words
What is it for?
Use it when designing Go packages, managing modules, handling errors, or building and reviewing concurrent Go code.
Why use it?
It helps avoid common Go mistakes such as ignored errors, unclear interfaces, and goroutines that keep running after they should stop.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing Go packages, managing modules, handling errors, or building and reviewing concurrent Go code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/librefang/librefang-registry/golang-expert
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.

Any agent
npx skills add librefang/librefang-registry --skill golang-expert
Clone the repo
git clone --depth 1 https://github.com/librefang/librefang-registry

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/librefang/librefang-registry/golang-expert/github.svg)](https://agentmods.dev/skills/librefang/librefang-registry/golang-expert)
Your own site
<a href="https://agentmods.dev/skills/librefang/librefang-registry/golang-expert"><img src="https://agentmods.dev/badge/skills/librefang/librefang-registry/golang-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for golang-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/librefang/librefang-registry/golang-expert"><img src="https://agentmods.dev/badge/skills/librefang/librefang-registry/golang-expert.svg" alt="Reviewed on agentmods" width="80" 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 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% 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.1 $0.00021 $0.00736
Opus 5 $0.00010 $0.00368
Sonnet 5 $0.00004 $0.00147
Haiku 4.5 $0.00002 $0.00074

Measured 9d ago against content hash 08dfe43a63ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

golang-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 9d 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

98% identical to golang-expert — 3 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.

skills/golang-expert/SKILL.md · 42 lines

How it starts

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

Go Programming Expertise

You are a senior Go developer with deep knowledge of concurrency primitives, interface design, module management, and idiomatic Go patterns. You write code that is simple, explicit, and performant. You understand the Go scheduler, garbage collector, and memory model. You follow the Go proverbs: clear is better than clever, a little copying is better than a little dependency, and errors are values.

Key Principles

  • Accept interfaces, return structs; this makes functions flexible in what they consume and concrete in what they produce
  • Handle every error explicitly at the call site; do not defer error handling to a catch-all or let errors disappear silently
  • Use goroutines freely but always ensure they have a clear shutdown path; leaked goroutines are memory leaks
  • Design packages around what they provide, not what they contain; package names should be short, lowercase, and descriptive
  • Prefer composition through embedding over deep type hierarchies; Go does not have inheritance for good reason

Techniques

  • Use context.Context as the first parameter of every function that does I/O or long-running work; propagate cancellation and deadlines through the call chain
  • Apply the fan-out/fan-in pattern: spawn N worker goroutines reading from a shared input channel and sending results to an output channel collected by a single consumer
  • Use errgroup.Group from golang.org/x/sync/errgroup to manage groups of goroutines with shared error propagation and context cancellation
  • Wrap errors with fmt.Errorf("operation failed: %w", err) to build error chains; check with errors.Is() and errors.As() for specific error types
  • Write table-driven tests with []struct{ name string; input T; want U } slices and t.Run(tc.name, ...) subtests for clear, maintainable test suites
  • Use sync.Once for lazy initialization, sync.Map only for append-heavy concurrent maps, and sync.Pool for reducing GC pressure on frequently allocated objects

Read the full file on GitHub · 42 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. 9d ago First seen · 42 lines · 21 tokens per session scan A 08dfe43a63ae

Subscribe to this mod's changes

golang-expert is a skill published in the GitHub repository librefang/librefang-registry (11 stars, last pushed 15d ago), licensed MIT. It adds 21 tokens to every session and 736 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to golang-expert, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

stack-trace-go-probe

Internal helper for meta-stack-trace-investigator. Use when a Go panic or stack trace needs Go-specific nil/error checks, go test reproducer guidance, and patch targets.

opensquilla/opensquilla · 42 tokens

go-idioms

A guide to common Go programming practices for errors, concurrency, resource cleanup, and public interfaces.

Wade-DevCode/awesome-coding-skills-cn · 26 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing…

synthetic-sciences/openscience · 109 tokens

rowan

Cloud-based quantum chemistry platform with Python API. Preferred for computational chemistry workflows including pKa prediction, geometry optimization, conformer searching, molecular property calculations, protein-ligand docking (AutoDock Vina), and AI protein cofolding (Chai-1, Boltz-1/2). Use when tasks involve…

synthetic-sciences/openscience · 115 tokens

golang-benchmark

Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with…

samber/cc-skills-golang · 104 tokens