language-go

language-go is a skill for Claude Code from lugassawan/swe-workbench. It costs 53 tokens per session (1,216 once invoked), scanned A, original, MIT.

A Go coding guide covering error handling, interfaces, concurrency, and standard-library patterns. It loads when you work on Go files or mention Go concepts.

In plain words
What is it for?
Use it when writing or reviewing Go code involving errors, cancellation, goroutines, channels, interfaces, or package design.
Why use it?
It helps avoid common Go mistakes such as leaking goroutines, losing error details, or using interfaces in the wrong place.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swe-workbench plugin — 61 skills, 25 commands, 23 agents, 4 hooks shipped together

Good fit Use it when writing or reviewing Go code involving errors, cancellation, goroutines, channels, interfaces, or package design.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lugassawan/swe-workbench/language-go
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 lugassawan/swe-workbench --skill language-go
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 61 skills, 25 commands, 23 agents, 4 hooks.

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 language-go

README.md
[![agentmods](https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-go/github.svg)](https://agentmods.dev/skills/lugassawan/swe-workbench/language-go)
Your own site
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-go"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-go/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 language-go

Your own site · 80×15
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-go"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,216 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 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.1 $0.00053 $0.01216
Opus 5.5 $0.00021 $0.00486
Sonnet 5.5 $0.00011 $0.00243
Haiku 4.5 $0.00005 $0.00122

Measured 1mo ago against content hash e5bf9acb5595, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

language-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 1mo 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.

skills/language-go/SKILL.md · 113 lines

How it starts

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

Go

Errors are values

  • Return error; do not panic across package boundaries.
  • Wrap with fmt.Errorf("doing X: %w", err) to preserve the chain.
  • Inspect with errors.Is and errors.As. Never string-match messages.
  • Sentinel errors (var ErrNotFound = errors.New(...)) for expected cases; typed errors when callers need structured data.
if err != nil {
    return fmt.Errorf("load user %s: %w", id, err)
}

Interfaces — small, defined by the consumer

  • Define interfaces in the package that uses them, not where concrete types live.
  • Single-method interfaces are normal (io.Reader, io.Closer).
  • Accept interfaces, return concrete types.

Concurrency

  • A goroutine without a known termination path is a leak. Always know who stops it.
  • context.Context plumbs cancellation and deadlines — first parameter, named ctx.
  • Channels for ownership transfer; mutexes for protecting state. A sync.Mutex is often simpler than a goroutine.
  • errgroup.Group for structured concurrency with error propagation.
g, ctx := errgroup.WithContext(ctx)
for _, job := range jobs {
    job := job
    g.Go(func() error { return process(ctx, job) })
}
if err := g.Wait(); err != nil { return err }

Context rules

  • ctx is the first parameter of any blocking or IO function.
  • Never store context.Context in a struct field.
  • Don't use context.Value for required parameters — only cross-cutting concerns like request IDs.

Code generation

  • A // Code generated ... DO NOT EDIT. header means the file is output, not source. Never hand-edit it — edits are clobbered on the next run and drift from their input.
  • Edit the generator's input, then regenerate with go generate ./... (or the tool directly). Commit the regenerated file with the source change.
  • Applies to stringer, mockgen, sqlc, protoc-gen-go, and google/wire.

google/wire — detected by a wire.go tagged //go:build wireinject plus a wire_gen.go carrying the Wire DO NOT EDIT. header. To change dependency injection:

  • Edit provider sets / injectors in wire.go only — never wire_gen.go.
  • Regenerate with go generate ./... (or wire ./...), then stage the updated wire_gen.go. If go generate ./... produces no diff, wire.go likely lacks a //go:generate wire directive — run wire ./... directly.

Read the full file on GitHub · 113 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. 1mo ago First seen · 113 lines · 53 tokens per session scan A e5bf9acb5595

Subscribe to this mod's changes

language-go is a skill published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 1,216 once invoked, about $0.0002 per session on Opus 5.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 skills, from other repositories

wasm

WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.

TheBeardedBearSAS/claude-craft · 0 tokens

language-idioms-refiner

Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup…

techygarg/lattice · 92 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

go-core-idioms

Use when writing or reviewing idiomatic sequential Go — error handling, slog logging, generics, interfaces, style. Not for concurrency (go-concurrency).

fusengine/agents · 37 tokens

go-testing-quality

Use when writing or reviewing Go tests, adding coverage, benchmarking, or profiling a Go program. Not for CI/lint wiring (go-tooling-security) or non-Go tests.

fusengine/agents · 40 tokens

go-standard

A Go programming style guide based on Go's standard library. It covers project structure, naming, error handling, and tests.

ggombee/code-forge · 17 tokens