
Go Naming
Go naming rules for packages, types, functions, variables, and receivers, with a checker script and reference docs.
- skills.sh installs
- 1.3K
- GitHub stars
- 196
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers identifier rules for packages, interfaces, receivers, constants, initialisms, functions, and variables, plus avoiding repetition and built-in shadowing
- Includes
scripts/check-naming.shfor flagging SCREAMING_SNAKE_CASE constants, Get-prefixed getters, generic package names, andthis/selfreceivers - Enforces MixedCaps for all identifiers and consistent case for initialisms such as
userIDandHTTPClient - Designed for writing or reviewing Go code and exported APIs; package organization is handled by go-packages
Install
$ npx -y skills add cxuu/golang-skills --skill go-naming -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Go Naming Conventions
Resource Routing
scripts/check-naming.sh- Run when checking SCREAMING_SNAKE_CASE constants, Get-prefixed getters, generic package names, or receivers namedthis/self.references/IDENTIFIERS.md- Read when choosing names for initialisms, exported identifiers, or package-level symbols.references/REPETITION.md- Read when names repeat package, receiver, type, or local context.references/VARIABLES.md- Read when choosing local variable names, receiver names, or loop identifiers.
Core Principle
Names should:
- Not feel repetitive when used
- Take context into consideration
- Not repeat concepts that are already clear
Naming is more art than science—Go names tend to be shorter than in other languages.
Naming Decision Flow
Details
- Repository
- github.com/cxuu/golang-skills
- Categories
- Go, Code Review & Quality
- First seen
- May 16, 2026
More from cxuu/golang-skills
All 20- Go Defensive1.3K
- Go Packages1.3K
- Go Functional Options1.3K
- Go Data Structures1.3K
- Go Control Flow1.3K
- Go Logging1.1K
- Go Functions1.1K
- Go Generics1.1K
- Go Declarations1.1K
- Go Code Review1.8K
- Go Testing1.4K
- Go Error Handling1.4K
- Go Concurrency1.4K
- Go Linting1.4K
- Go Interfaces1.4K
- Go Documentation1.3K
- Go Style Core1.3K
- Go Performance1.3K
- Go Context1.3K
Similar to Go Naming
More Go
golang-namingsamber/cc-skills-golang43K installsGo naming conventions covering packages, constructors, errors, booleans, acronyms, and enums, with the rationale for each.
go-packagescxuu/golang-skills1.3K installsGuidance for structuring Go packages, grouping imports, and avoiding init and os.Exit outside main.
go-documentationcxuu/golang-skills1.3K installsStructured guide for writing Go doc comments, with a validation script for exported symbols and package comments.
naming-analyzersoftaworks/agent-toolkit4K installsAnalyzes variable, function, and class names against language conventions to suggest clearer alternatives with rationale.
golang-structs-interfacessamber/cc-skills-golang41.7K installsGo struct and interface design guide covering composition, embedding, type assertions, and pointer vs value receivers.