Suggest better variable, function, and class names based on context and conventions.
A skill for Claude Code that analyzes code naming conventions and suggests better variable, function, class, and other identifier names based on context and industry standards.
Good naming is one of the most important aspects of readable, maintainable code. This skill helps developers:
Poor naming leads to bugs, confusion, and wasted time. This skill acts as an expert code reviewer focused specifically on naming quality.
Use this skill when you want to:
Trigger phrases:
Analysis Phase: The skill examines all identifiers in the target code:
Issue Detection: Each identifier is evaluated for common problems:
data, info, temp, x)usrCfg, calcTtl)camelCase and snake_case)getUser that also updates data)active instead of isActive)Convention Checking: The skill validates against language-specific standards:
Report Generation: A structured report is produced with:
Understands naming conventions for JavaScript, TypeScript, Python, Java, Go, and more. Automatically adapts recommendations to the language being analyzed.
Issues are categorized by impact:
| Severity | Description | Example |
|----------|-------------|---------|
| Critical | Misleading names that could cause bugs | getUser() that also modifies data |
| Major | Unclear names requiring mental effort to understand | proc(data) instead of processApiResponse(response) |
| Minor | Convention violations that affect consistency | API_url instead of API_URL |
Enforces clear boolean prefixes:
is for state: isActive, isVisible, isEnabledhas for possession: hasPermission, hasError, hasChildrencan for ability: canEdit, canDelete, canAccessshould for decisions: shouldRender, shouldValidate, shouldRefreshIdentifies unnamed numeric literals and suggests meaningful constant names:
// Before
if (age > 18) { }
setTimeout(callback, 3600000);
// After
const LEGAL_AGE = 18;
const ONE_HOUR_IN_MS = 60 * 60 * 1000;
if (age > LEGAL_AGE) { }
setTimeout(callback, ONE_HOUR_IN_MS);
Can generate refactoring scripts to apply naming changes across the codebase while maintaining git history.
Analyze a single file:
@naming-analyzer UserService.js
Analyze an entire directory:
@naming-analyzer src/
Show naming conventions reference:
@naming-analyzer --conventions
Analyze and suggest fixes for all issues:
@naming-analyzer --fix-all
General invocation:
@naming-analyzer
Then provide the code or file path when prompted.
The skill produces a detailed markdown report containing:
## Summary
- Items analyzed: 156
- Issues found: 23
- Critical: 5 (misleading names)
- Major: 12 (unclear/vague)
- Minor: 6 (convention violations)
Each issue includes:
Prioritized list of all recommended changes:
userConfig not usrCfgemailAddress not strisEnabled, hasPermissionTIMEOUT_MS, MAX_SIZE_MBi, j, k)data, info, temp, x, resultcalculateTotal not calcTtlSome abbreviations are well-known and acceptable:
html, api, url, id, db, io, uimin, max, src, dest, config, envreq, res (in HTTP context)err (in error handling context)Is it a boolean?
├─ Yes → Use is/has/can/should prefix
└─ No → Is it a function?
├─ Yes → Use verb phrase (action)
└─ No → Is it a class?
├─ Yes → Use noun (PascalCase)
└─ No → Is it a constant?
├─ Yes → Use UPPER_SNAKE_CASE
└─ No → Use descriptive noun (camelCase/snake_case)
i, j - not every short name is badhtml, api, url, id are universally understoodCreate or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Category:developer