go-style

go-style is a skill for Claude Code from Kevin-Liu-01/Agent-Machines. It costs 48 tokens per session (305 once invoked), scanned A, original, MIT.

A detailed reference for writing, reviewing, and refactoring Go code. It brings together rules and examples for naming, formatting, errors, documentation, testing, imports, and maintainable package design.

In plain words
What is it for?
Use it when implementing Go features, reviewing Go changes, or deciding how to structure functions, packages, tests, and error handling.
Why use it?
It helps keep Go code consistent when the project's shorter rules do not cover a specific style decision.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when implementing Go features, reviewing Go changes, or deciding how to structure functions, packages, tests, and error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/go-style
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 Kevin-Liu-01/Agent-Machines --skill go-style
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/go-style/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/go-style)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/go-style"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/go-style/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-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/go-style"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/go-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 305 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.00048 $0.00305
Opus 5 $0.00024 $0.00152
Sonnet 5 $0.00010 $0.00061
Haiku 4.5 $0.00005 $0.00030

Measured 7d ago against content hash 83e5994b096d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

go-style 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 7d 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.

knowledge/skills/go-style/SKILL.md · 24 lines

What it actually says

Go Style — Full Reference

The Go style guide is split across three documents. Read all three before making style judgments.

Documents

  1. Guide — Canonical principles (clarity, simplicity, concision, maintainability, consistency). Formatting, MixedCaps, line/file length, naming basics.

  2. Decisions — Normative review decisions. File headers, naming (underscores, packages, receivers, constants, initialisms, getters), imports, error handling, documentation, struct tags, testing conventions.

  3. Best Practices — Practical patterns. Function/method naming (avoid repetition), test doubles, util packages, package size, imports.

How to Use

Read the relevant document sections for the Go code you're working on. The .agents/rules/go.md file has the essentials loaded automatically. This skill provides the full reference for edge cases and review decisions.

When reviewing Go code, check the Decisions document for the specific convention. When writing new Go code, check Best Practices for the recommended pattern.

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. 7d ago First seen · 24 lines · 48 tokens per session scan A 83e5994b096d

Subscribe to this mod's changes

go-style is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 305 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

golang-refactoring

Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, gofmt -r, gopatch), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code…

samber/cc-skills-golang · 220 tokens

agents-md

Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects. Use this skill whenever the user asks to create, scaffold, bootstrap, update, or review an AGENTS.md (or agent-instructions, CLAUDE.md, repo guide for agents) file in a codebase. Also trigger when the user says "add AGENTS.md", "make this repo…

dimetron/pi-go · 138 tokens

sapcc-audit

Full-repo SAP CC Go compliance audit against review standards.

notque/vexjoy-agent · 17 tokens

context-lifecycle

Review goroutines, timers, callbacks, actor handoffs, and async cleanup for context lifetime bugs. Use when code starts work that may outlive the caller, especially from RPC handlers, wallet startup, daemon startup, actors, or notification registrations.

lightninglabs/wavelength · 53 tokens

go-review-lead

Orchestrate a comprehensive Go code review by triaging code changes, dispatching vertical review skills (security, concurrency, error, logic, performance, quality, test, observability) as parallel agents, then consolidating results into a unified report. Use for full Go PR review or comprehensive code review. Replaces…

johnqtcg/awesome-skills · 80 tokens

golang-cli-review

Comprehensive code review for Golang CLI applications. Produces an actionable checklist covering error handling, CLI framework patterns (Cobra/urfave), testing, performance, security, and Go idioms. TRIGGERS: Review Go CLI, review golang command-line, code review .go CLI, audit CLI application, check golang tool…

asteroid-belt/skulto · 79 tokens