Golang Naming
Go naming conventions covering packages, constructors, errors, booleans, acronyms, and enums, with the rationale for each.
- CCM score
- 73 of 100
- skills.sh installs
- 43.9K
- GitHub stars
- 4K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters, functional options, acronyms, and test names
- Includes a quick-reference table plus detailed reference files on packages, identifiers, functions, and types with error conventions
- Enforces MixedCaps over underscores, avoids stuttering such as
http.HTTPClient, and requires lowercase error strings - Designed for writing, reviewing, or refactoring Go code when naming choices come up
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-naming -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Community default. A company skill that explicitly supersedes
samber/cc-skills-golang@golang-namingskill takes precedence.
Go Naming Conventions
Go favors short, readable names. Capitalization controls visibility — uppercase is exported, lowercase is unexported. All identifiers MUST use MixedCaps, NEVER underscores.
"Clear is better than clever." — Go Proverbs
"Design the architecture, name the components, document the details." — Go Proverbs
To ignore a rule, just add a comment to the code.
Quick Reference
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Go, Code Review & Quality
- First seen
- Apr 16, 2026
Questions
What is the golang-naming skill for?
The golang-naming skill covers Go naming conventions for packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters and setters, functional options, acronyms, test functions and subtest names. It helps an agent choose between naming alternatives when writing, reviewing or refactoring Go code.
How do I install the golang-naming skill?
Run npx -y skills add samber/cc-skills-golang --skill golang-naming -y in your project. The agent then gets the Go naming rules and applies them when you write or review Go code.
Where does golang-naming rank in the Go category?
The golang-naming skill ranks in the top 10 on the Go category page on Claude Marketplaces. Its sibling skills in the same category include golang-code-style, golang-testing, golang-error-handling, golang-design-patterns and golang-concurrency.
Does golang-naming need any tools or accounts?
The skill lists Go as its required binary, and its allowed tools include go and golangci-lint commands along with git. It needs no accounts or API keys, and it triggers on Go files.
More from samber/cc-skills-golang
All 47- Golang Safety43.7K
- Golang Project Layout43.5K
- Golang Modernize43.3K
- Golang Lint43.3K
- Golang Documentation43.3K
- Golang Data Structures43.1K
- Golang Observability42.9K
- Golang Troubleshooting42.8K
- Golang Dependency Management42.7K
- Golang Structs Interfaces42.6K
- Golang Cli42.3K
- Golang Benchmark42.3K
- Golang Dependency Injection42.3K
- Golang Popular Libraries42.2K
- Golang Stretchr Testify42.1K
- Golang Continuous Integration42.1K
- Golang Grpc42K
- Golang Samber Lo41.1K
- Golang Stay Updated41.1K
- Golang Samber Do41K
- Golang Samber Slog40.9K
- Golang Samber Oops40.8K
- Golang Samber Mo40.8K
- Golang Samber Hot40.8K
Similar to Golang Naming
More Gogo-namingcxuu/golang-skills1.4K installsGo naming rules for packages, types, functions, variables, and receivers, with a checker script and reference docs.
golang-design-patternssamber/cc-skills-golang45.3K installsIdiomatic Go design patterns covering constructors, error flow, lifecycle, and architecture choices for production code.
golang-code-stylesamber/cc-skills-golang47.9K installsClear, opinionated Go style rules for line breaking, variable declarations, and control flow that linters cannot judge.
naming-analyzersoftaworks/agent-toolkit4K installsAnalyzes variable, function, and class names against language conventions to suggest clearer alternatives with rationale.
go-declarationscxuu/golang-skills1.1K installsGo declaration style guide covering var vs :=, iota enums, scope, struct and map initialization, and literal formatting.