# Go naming

> Go naming is an open-source agent skill for developer tools. Guides Go naming for packages, types, functions, errors and tests in line with Effective. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(code-quality)/go-naming
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-naming
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(code-quality)/go-naming)
- [Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*)](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(code-quality)/go-naming/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(code-quality)/go-naming)

## Features

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

## Install

### Any agent

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

## 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, Go documentation, Go refactoring, Go defensive coding and Coding standards.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Go coding standards](https://ai-powered.com/skills/go-coding-standards): Go coding standards is an open-source agent skill for developer tools.
- [Go documentation](https://ai-powered.com/skills/go-documentation): Go documentation is an open-source agent skill for developer tools.
- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.
- [Go defensive coding](https://ai-powered.com/skills/go-defensive-coding): Go defensive coding is an open-source agent skill for developer tools.
- [Coding standards](https://ai-powered.com/skills/coding-standards-smartworldarafath): Coding standards is an open-source agent skill for developer tools.
- [Go semantic tools](https://ai-powered.com/skills/go-semantic-tools): Go semantic tools is an open-source agent skill for developer tools.
- [Go interface design](https://ai-powered.com/skills/go-interface-design): Go interface design is an open-source agent skill for developer tools.
- [Coding guidelines](https://ai-powered.com/skills/coding-guidelines): Coding guidelines is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-naming
