Covers the full spectrum of Go naming conventions, from the obvious (MixedCaps, no underscores) to the stuff that actually trips people up: when to use New versus NewTypeName, why boolean fields need the is/has prefix but the zero value in enums should be StatusUnknown not StatusReady, and why error strings stay lowercase even for acronyms. Includes a quick reference table and detailed breakdowns across packages, identifiers, functions, and error types. Useful when you're in a naming debate during code review, refactoring a codebase to match Go idioms, or just want to stop second-guessing whether it should be ErrNotFound or NotFoundError. Written by samber, who maintains several Go tooling projects.

skills.sh installs
42.5K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-naming --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/samber/cc-skills-golang
Categories
Testing & QA, Documentation, Code Review & Quality, Debugging, Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47
1samber avatargolang-databasesamber/cc-skills-golangComprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connec42.5Kskills.sh installs
2addyosmani avatarconstraint-driven-developmentaddyosmani/agent-skillsEstablishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane de42.4Kskills.sh installs
3samber avatargolang-clisamber/cc-skills-golangGolang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration la41.1Kskills.sh installs
4convex avatarconvex-migrate-rehearseconvex/agent-skillsRehearse a live-app schema change + backfill on a snapshot-seeded preview deployment, verify, then promote the proven change to prod with the snapshot as rollba41.1Kskills.sh installs
5samber avatargolang-grpcsamber/cc-skills-golangProvides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gR40.7Kskills.sh installs
6limrun-inc avatarlimrun-android-emulatorlimrun-inc/skillsDrive an app running on a Limrun cloud Android emulator: install an APK, launch and terminate apps with crash reports, tap, type, read the UI element tree, scre40.2Kskills.sh installs