BigHugger
sk Skill · samber

golang-naming

Go (Golang) naming conventions — covers packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters/setters, functional options, acronyms, test functions, and subtest names. Use this skill when writing new Go code, reviewing or refactoring, choosing between naming alternatives (New vs NewTypeName, isConnected vs connected, ErrNotFound vs NotFoundError, StatusReady vs…

installs 8w
4,647
30-day movement
starts with the next reading
Related entries
1
Connections
1
goGo

golang-naming is an agent skill (a SKILL.md) that a coding agent loads to apply Go naming conventions. It bundles reference files on identifiers, functions and methods, packages and files, types and errors, and testing, plus a pitfalls section.

Reach for it when a naming decision in Go code is ambiguous or contested and you want convention-correct choices without hunting through style guides.

Use it to

  • Resolve constructor naming choices like New vs NewTypeName
  • Decide boolean, error, and iota-constant names per convention
  • Reject utils/helpers package names during review
  • Fix Get-prefix getters and ALL_CAPS constants
  • Name test functions and subtests correctly

For Go developers and reviewers using an agent coding harness

Host repository
samber/cc-skills-golang
Version
1.2.1
Installs, lifetime
39k
Installs, 8 weeks
4,647
Allowed tools
Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,292
Host language
Go
topicsgonamingconventionscode-reviewrefactoringagent-skill