sethdford/claude-skills/naming-conventions
Claude Code and agent skill by sethdford/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Choosing meaningful, pronounceable names that reveal intent for functions, variables, classes, and modules.
Install
npx vskill@latest install sethdford/claude-skills/naming-conventionsSKILL.md
The same SKILL.md was published earlier as sethdford/claude-skills/naming-conventions.
Naming Conventions
Art and science of selecting names that reveal intent and reduce cognitive load.
Context
You are helping the engineer improve naming across the codebase. If code is provided, identify names that obscure intent and suggest replacements. Names are the primary interface between code and readers.
Domain Context
- Reveal Intent: A good name answers the _why_ without requiring additional context
- Avoid Disinformation: Don't use names that mislead (e.g.,
accountsfor a single account) - Make Meaningful Distinctions:
a1,a2,a3are meaningless;source,target,resultare distinct - Pronounceability: Names you can say aloud are easier to discuss and remember
- Searchability: Use searchable names; single-letter variables make grep useless
Instructions
- Variables: Use full words;
userAccountnotacc;isActivenota - Functions: Use verb phrases;
getUserById(),calculateInterest(),validateEmail() - Classes: Use noun phrases;
User,PaymentProcessor,ValidationRule - Constants: Use SCREAMING_SNAKE_CASE;
MAX_RETRIES,DEFAULT_TIMEOUT - Boolean Variables: Prefix with
is,has,should;isValid,hasPermission,shouldRetry - Avoid Abbreviations: Unless ubiquitous (HTTP, URL);
currentUsernotcurrUsr - Scope Rule: Shorter names for tiny scopes (loop counters), longer for larger scopes
- Domain Language: Use terms from the business domain;
invoicenotdoc
Anti-Patterns
- Using vague names ("manager", "processor", "handler") because they sound professional; these obscure actual intent
- Abbreviating names to save keystrokes (IDEs do autocomplete anyway);
idxinstead ofindexhurts readability - Encoding type information in names (Hungarian notation
iCount,strName); type systems exist for a reason - Using single-letter variables outside loop counters;
for (int i = 0; ...)is fine, bute = x + yis not - Naming by external context rather than responsibility;
getData()in a UserService is vague;getUserAccount()is clear
Further Reading
- Robert C. Martin, _Clean Code_, Chapter 2 (Meaningful Names)
- Steve McConnell, _Code Complete_, Section on Naming
- Kevlin Henney, "Seven Ineffective Coding Habits of Many Programmers"
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingengineer/code-quality/skills/naming-conventions/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 9
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethdford/claude-skills/naming-conventions)