Skills for Real Engineers. Straight from my .agents directory.
golang-naming
Agent skill fromsamber/cc-skills-golang
Go (Golang) naming conventions — covers packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters/setters, functional options, acronyms, test functions, and subtest names. Use this skill when writing new Go code, reviewing or refactoring, choosing between naming alternatives (New vs NewTypeName, isConnected vs connected, ErrNotFound vs NotFoundError, StatusReady vs StatusUnknown at iota 0), debating Go package names (utils/helpers anti-patterns), or asking about Go naming best practices. Also trigger when the user mentions MixedCaps vs snake_case, ALL_CAPS constants, Get-prefix on getters, or error string casing. Do NOT use for general Go implementation questions that don't involve naming decisions.
How to install golang-naming
npx skills add samber/cc-skills-golang# or add only this skill to Claude Code: copy the folder
skills/golang-naming/
# into
~/.claude/skills/golang-naming/ (all projects)
.claude/skills/golang-naming/ (one project)
1> **Community default.** A company skill that explicitly supersedes `samber/cc-skills-golang@golang-naming` skill takes precedence.23# Go Naming Conventions45Go favors short, readable names. Capitalization controls visibility — uppercase is exported, lowercase is unexported. All identifiers MUST use MixedCaps, NEVER underscores.67> "Clear is better than clever." — Go Proverbs8>9> "Design the architecture, name the components, document the details." — Go Proverbs1011To ignore a rule, just add a comment to the code.1213## Quick Reference1415| Element | Convention | Example |16| --- | --- | --- |17| Package | lowercase, single word, \_test suffix OK for test files | `json`, `http`, `tabwriter`, `http_test` |18| File | lowercase, underscores OK | `user_handler.go` |19| Exported name | UpperCamelCase | `ReadAll`, `HTTPClient` |20| Unexported | lowerCamelCase | `parseToken`, `userCount` |21| Interface | method name + `-er` | `Reader`, `Closer`, `Stringer` |22| Struct | MixedCaps noun | `Request`, `FileHeader` |23| Constant | MixedCaps (not ALL_CAPS) | `MaxRetries`, `defaultTimeout` |24| Receiver | 1-2 letter abbreviation | `func (s *Server)`, `func (b *Buffer)` |25| Error variable | `Err` prefix | `ErrNotFound`, `ErrTimeout` |26| Error type | `Error` suffix | `PathError`, `SyntaxError` |27| Constructor | `New` (single type) or `NewTypeName` (multi-type) | `ring.New`, `http.NewRequest` |28| Boolean field | `is`, `has`, `can` prefix on **fields** and methods | `isReady`, `IsConnected()` |29…
Excerpt shown under the repository's MIT license.
More skills in cc-skills-golang
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
