
Go naming
Guides Go naming for packages, types, functions, errors and tests in line with Effective
Go naming is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 90
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Go naming
This skill gives the agent a set of Go naming conventions to apply when choosing or reviewing identifiers. It covers packages, files, exported and unexported names, initialisms, getters and setters, constructors, receivers, variables, interfaces, sentinel and error types, enum constants and test names. A quick-reference table and a verification checklist let the agent check a codebase against the rules, and a separate reference file holds before-and-after examples for the rules, including stuttering and initialism edge cases.
The guidance is grounded in Effective Go and Go Code Review Comments, and it notes that a project's own rules override it. When renaming, the skill directs the agent to use gopls rather than search-and-replace, and to check struct tags, templates and SQL afterwards, since gopls does not see them. It also points to companion skills for formatting, declarations and cross-codebase refactoring.
The skill expects a Go project and the Go toolchain. Its allowed tools include reading, editing and searching files plus go and gofmt commands. It ships no scripts.
When your agent uses it
Go naming conventions for packages, files, types, functions, methods, receivers, variables, constants, errors, acronyms and tests, grounded in Effective Go and Go Code Review Comments. Use when: "what should I name this", "name this package", "naming review", "is this name idiomatic", "stuttering names", "Get prefix", "acronym casing", "error variable name", "receiver name". Not for: formatting, imports and declarations (go-coding-standards), carrying out a rename across the codebase (go-semantic-tools, go-refactoring).
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (12 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.
What it does
- Package naming rules
- Guidance on short, single-word, lowercase package names that describe what the package provides.
- Stutter avoidance
- Checks that exported names do not repeat the package name at call sites.
- Initialism casing
- Keeps acronyms such as URL, ID and HTTP in one consistent case.
- Getters, constructors and receivers
- Covers getter and setter forms, New and Must constructors, and consistent short receiver names.
- Error and enum naming
- Sentinel error prefixes, error type suffixes, lowercase error strings and Unknown enum zero values.
- Test name conventions
- Names for Test, Benchmark and Example functions and subtests that work with go test -run.
Good for
- Pick a name for a new Go package or exported type
- Review a Go pull request for non-idiomatic names
- Fix stuttering names like http.HTTPClient
- Correct initialism casing such as UserId to userID
- Rename a getter that uses a Get prefix
- Check that error variables and error types follow Go conventions
Go naming FAQ
What does Go naming need to run?
It requires the Go toolchain and is designed for Claude Code or similar AI coding agents working on Go projects.
Does Go naming rename identifiers across my codebase?
No. Renaming across the codebase is handled by other skills, and this one only covers the naming rules and checks, recommending gopls for renames.
Does Go naming cover formatting or imports?
No. Formatting, imports and declarations are covered by the go-coding-standards skill.
Can a project override these conventions?
Yes. The skill states that a project skill or agent-config rule that explicitly supersedes it takes precedence.
Does Go naming run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Go naming?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Go naming?
The closest alternatives to Go naming are Go coding standards, Coding standards, Go documentation, Go refactoring and Go defensive coding.
Where this comes from
- Description: from the skill's own SKILL.md.
More from eduardo-sl/go-agent-skills

Guides Go agents in designing HTTP REST APIs, handlers, middleware and shutdown
- Open source
- 90 GitHub stars
- Developer tools

Reviews Go project structure, dependency direction and module boundaries
- Open source
- 90 GitHub stars
- Developer tools

Guides an AI agent to build Go command-line tools with clean flags, streams and exit codes
- Open source
- 90 GitHub stars
- Developer tools

Guides Go code toward constructor injection, explicit wiring and no global state
- Open source
- 90 GitHub stars
- Developer tools

Guides Go code toward idiomatic design patterns like functional options and factories
- Open source
- 90 GitHub stars
- Developer tools

Guides building Go GraphQL servers with gqlgen, covering N+1 batching and query limits
- Open source
- 90 GitHub stars
- Developer tools


