go-conventions

go-conventions is a skill for Claude Code, Codex from Cypsy1714/cchad. It costs 15 tokens per session (227 once invoked), scanned A, original, MIT.

A set of guidelines for writing and reviewing idiomatic Go code, the programming language. It covers errors, interfaces, cleanup, concurrency, type safety, formatting, testing, and static checks.

In plain words
What is it for?
Use it while creating or reviewing Go code, especially when handling errors, designing APIs, managing resources, writing concurrent code, and checking a project with gofmt, go vet, and tests.
Why use it?
It helps prevent common Go mistakes such as ignored errors, unsafe shared state, unclear interfaces, and goroutines that never stop.

Skill for Claude CodeCodex

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

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/cypsy1714/cchad/go-skill
Any agent
npx skills add Cypsy1714/cchad --skill go-skill
Clone the repo
git clone --depth 1 https://github.com/Cypsy1714/cchad

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cypsy1714/cchad/go-skill.svg)](https://agentmods.dev/skills/cypsy1714/cchad/go-skill)
Your own site
<a href="https://agentmods.dev/skills/cypsy1714/cchad/go-skill"><img src="https://agentmods.dev/badge/skills/cypsy1714/cchad/go-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 227 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.1 $0.00015 $0.00227
Opus 5 $0.00008 $0.00113
Sonnet 5 $0.00003 $0.00045
Haiku 4.5 $0.00002 $0.00023

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

Security

Grade A, and why

go-conventions 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 5d 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.

src/cchad/data/skills/go-skill/SKILL.md · 27 lines

What it actually says

Go conventions

Errors

  • Return errors, don't panic in library code. Check every returned error.
  • Wrap with context: fmt.Errorf("loading config: %w", err), and compare with errors.Is / errors.As.

Design

  • Keep interfaces small and define them where they're consumed, not where they're implemented. Accept interfaces, return concrete types.
  • Zero values should be useful; avoid constructors that only set defaults.
  • Use defer for cleanup right after acquiring a resource.

Concurrency

  • Pass context.Context as the first argument to blocking calls and honor cancellation.
  • Don't start a goroutine without knowing how it stops. Guard shared state with a mutex or a channel — "share memory by communicating."

Practical

  • Run gofmt/go vet; keep code go test ./...-green.
  • Handle errors at the point you have enough context; don't log-and-return the same error.
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. 5d ago First seen · 27 lines · 15 tokens per session scan A 9cb6f69213d6

Subscribe to this mod's changes

go-conventions is a skill published in the GitHub repository Cypsy1714/cchad (1 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 227 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-31.

Related

Other skills, from other repositories

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

Use when writing or reviewing Go concurrency — goroutines, channels, errgroup, context cancellation, or goroutine leaks. Not for sequential idioms (go-core-idioms).

fusengine/agents · 40 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

build-go-stack

Structure, implement, refactor, or review Go backend applications using Fiber, cmd-local composition and HTTP transport, component-owned domain and Mongo persistence, contextual error wrapping with final-boundary logging, concrete types, prefixed environment and optional Vault configuration, dependency inversion…

OlegHQ/agentpack · 121 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-expert

Use when writing or reviewing Go backend services - go.mod, .go files, net/http handlers, pgx/sqlc database code, goroutines, context.Context plumbing, or failing go test runs. Builds HTTP APIs on the Go 1.22+ stdlib router, fixes error-wrapping and context-cancellation bugs, designs leak-free goroutine lifecycles…

Aarvion-AI/stackwise-skills · 117 tokens