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.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cypsy1714/cchad/go-skill
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 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/github.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/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 go-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/cypsy1714/cchad/go-skill"><img src="https://agentmods.dev/badge/skills/cypsy1714/cchad/go-skill.svg" alt="Reviewed on agentmods" width="80" 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. 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.00015 $0.00227
Opus 5.5 $0.00006 $0.00091
Sonnet 5.5 $0.00003 $0.00045
Haiku 4.5 $0.00002 $0.00023

Measured 3mo ago against content hash 9cb6f69213d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 5mo ago), licensed MIT. It adds 15 tokens to every session and 227 once invoked, about $0.0001 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-08-31.

Related

go-conventions compared with skills from other repositories

go-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-conventionsCypsy1714/cchadSkill15mo agoMITA15Claude Code, Codex
go-expertAarvion-AI/stackwise-skillsSkill52mo agoMITA117Claude Code
clean-code-goCassetteTapeCrackle/claude-startersSkill128d agoMITA34Claude Code
go-ops0xDarkMatter/claude-modsSkill866d agoMITA89Claude Code
golang-rulessoftspark/ai-toolkitSkill18012d agoApache-2.0A40Claude Code
chiclaude-dev-suite/claude-dev-suiteSkill517d agoMITA119Claude Code
echoclaude-dev-suite/claude-dev-suiteSkill517d agoMITA112Claude Code