Handles all Go identifier naming: packages, types, functions, variables, constants, receivers. Pulls from Google and Uber style guides. Ships with a script that scans for common anti-patterns like SCREAMING_SNAKE_CASE constants, Get-prefixed getters, and receivers named "this". The flow chart alone is worth having around. It covers the scope-based variable length thing that trips people up (single letter for tiny scopes, descriptive for package-level), the MixedCaps-never-underscores rule, and why widget.NewWidget() is redundant. Honest take: naming is still subjective, but this at least keeps you from the obvious mistakes that make code feel un-Go-like.

skills.sh installs
1.3K
GitHub stars
193
last updated
Aug 21, 2026

Install

$ npx -y skills add cxuu/golang-skills --skill go-naming --agent claude-code

Installs into .claude/skills of the current project.

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 named this/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

Sponsors

Details

Repository
github.com/cxuu/golang-skills
Categories
Code Review & Quality, Go
First seen
May 16, 2026

More from cxuu/golang-skills

All 20
1neolabhq avatarreview-prneolabhq/context-engineering-kitReview an existing GitHub pull request and post inline review comments on its diff. Use when the changes are on an opened PR rather than your local working tree1.3Kskills.sh installs
2liuzhengdongfortest avatarcs-refactorliuzhengdongfortest/codestablecs refactor1.2Kskills.sh installs
3sickn33 avatararchitecturesickn33/antigravity-awesome-skillsarchitecture1.2Kskills.sh installs
4mastepanoski avatarui-design-reviewmastepanoski/claude-skillsComprehensive visual design and aesthetics evaluation. Analyzes typography, color, spacing, hierarchy, consistency, branding, and current product-category conve1.2Kskills.sh installs
5ruvnet avataragent-repo-architectruvnet/rufloAgent skill for repo-architect - invoke with $agent-repo-architect1.2Kskills.sh installs
6decebals avatarjava-code-reviewdecebals/claude-code-javaSystematic code review for Java with null safety, exception handling, concurrency, and performance checks. Use when user says "review code", "check this PR", "c1.1Kskills.sh installs