Skip to content

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
View on GitHub

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

Installs 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-naming skill 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

Similar to Golang Naming

More Go