coding-guidance-go

coding-guidance-go is a skill for Claude Code, Codex from n-n-code/n-n-code-skills. It costs 68 tokens per session (2,696 once invoked), scanned A, original, MIT.

Coding and review guidance for Go programs, libraries, command-line tools, workers, and network services.

In plain words
What is it for?
Use it for Go implementation, refactoring, testing, optimization, and review, while routing interactive Bubble Tea interfaces or testify-specific work to their specialized guides.
Why use it?
It helps developers handle errors, cancellation, concurrency, package boundaries, tests, and performance in a consistent way.

Skill for Claude CodeCodex

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

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 coding-guidance-go

README.md
[![agentmods](https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/coding-guidance-go.svg)](https://agentmods.dev/skills/n-n-code/n-n-code-skills/coding-guidance-go)
Your own site
<a href="https://agentmods.dev/skills/n-n-code/n-n-code-skills/coding-guidance-go"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/coding-guidance-go.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,696 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 $0.00068 $0.02696
Opus 5 $0.00034 $0.01348
Sonnet 5 $0.00014 $0.00539
Haiku 4.5 $0.00007 $0.00270

Measured 4d ago against content hash 8e7306a7f8bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-guidance-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 4d 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.

.agents/skills/coding-guidance-go/SKILL.md · 241 lines

How it starts

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

Go Coding Guidance

Portable Go implementation, refactoring, testing, optimization, and review guidance.

Adjacent Skills

Compose with:

  • Workflow: thinking for ambiguous decision framing, recursive-thinking for stress-testing, security for threat modeling
  • Domain overlays: backend-guidance for server-side code, backend-systems-guidance for deeper backend architecture/reliability/trust boundaries, project-core-dev for repo-specific completion discovery and reporting when needed, and project-config-and-tests for config contracts and deterministic tests at config or path seams
  • Testing: go-testing-with-testify when the main artifact is testify-based Go test code, test review, or Go test flake triage
  • TUI specialization: coding-guidance-go-tui when Bubble Tea state, Bubbles components, Lip Gloss layout, or an interactive terminal screen is the main concern

When Not to Lean on This Skill

  • non-Go work
  • interactive Bubble Tea or Charmbracelet terminal screens; use coding-guidance-go-tui
  • pure test strategy without implementation code or concrete Go test code; use tester-mindset
  • testify-specific assertion, mock, suite, or flake work; use go-testing-with-testify
  • security as the primary job; use security and compose this skill only for Go-specific implementation details
  • repo-specific framework rules that should live in local docs, generated-code policy, linter config, or domain overlays

Reference Map

Load references only when the task needs that depth:

  • go-concurrency-and-services.md for context, goroutine ownership, shared state, pipelines, backpressure, logging, REST/gRPC/CLI/worker boundaries, and transport error mapping
  • go-testing-and-validation.md for standard Go tests, comparison choices, helpers, fuzzing, benchmarks, race checks, integration-test gating, and validation command selection
  • go-performance-and-modules.md for package/module layout, go.mod/go.sum, go.work, vendoring, generated code, release metadata, dependency pressure, profiling, and hot-path allocation guidance
  • go-api-and-language-rules.md for naming, declarations, exported-contract stability, interface placement, generics, nil and collection semantics, and other detailed language rules

Read the full file on GitHub · 241 lines

Files

What ships with it

4 files 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. 4d ago First seen · 241 lines · 68 tokens per session scan A 8e7306a7f8bf

Subscribe to this mod's changes

coding-guidance-go is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed 7d ago), licensed MIT. It adds 68 tokens to every session and 2,696 once invoked, about $0.0003 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

go-style

Modern Go code style for stdlib-first programs — error wrapping with %w, sentinel errors, structured logging with log/slog, context threading, consumer-defined interfaces, nil-safe constructors, net/http servers with method-pattern routing, flag/env configuration for services, and cobra commands with viper…

bitwise-media-group/skills · 0 tokens

go-project

Scaffold a Go project with the canonical layout — cmd/ entrypoints with a thin main, private packages under internal/ (no pkg/), a separate tools module pinning Go developer CLIs (invoked directly via go tool -modfile=tools/go.mod, no GOBIN), Node tools pinned in package.json and run from nodemodules/.bin, and a…

bitwise-media-group/skills · 165 tokens

go-release

Release engineering for Go projects — GoReleaser v2 with version ldflags into an internal/version package, SBOMs and multi-arch container images, tag-triggered GitHub Actions releases, CI running build/vet/test -race/govulncheck with SHA-pinned actions, and Renovate coverage for gomod, tools, npm, and Actions. Use…

bitwise-media-group/skills · 154 tokens

go-docs

Go documentation conventions — a doc comment on every exported function, struct, type, and package, package comments in a dedicated doc.go for multi-file packages, godoc style (complete sentences beginning with the identifier's name), and LLM-ready CLI reference generation for cobra tools via a docgen helper built on…

bitwise-media-group/skills · 140 tokens

go-testing

Use when writing, reviewing, or running Go tests in test.go files — writing tests for a Go package, adding table-driven tests with t.Run subtests, testing a Go HTTP handler with httptest, adding a Go fuzz test or seed corpus, running or choosing go test flags (-race, -fuzz, -fuzztime), or deciding whether to use…

bitwise-media-group/skills · 0 tokens

go-best-practices

Use when reading or writing Go files (.go, go.mod).

aiskillstore/marketplace · 19 tokens