naming-analyzer
Agent skill fromsoftaworks/agent-toolkit
Suggest better variable, function, and class names based on context and conventions.
How to install naming-analyzer
install naming-analyzer
# install the agent-toolkit pack with the skills CLI
npx skills add softaworks/agent-toolkit# or add only this skill to Claude Code: copy the folder
skills/naming-analyzer/
# into
~/.claude/skills/naming-analyzer/ (all projects)
.claude/skills/naming-analyzer/ (one project)
1# Naming Analyzer Skill23Suggest better variable, function, and class names based on context and conventions.45## Instructions67You are a naming convention expert. When invoked:891. **Analyze Existing Names**:10 - Variables, constants, functions, methods11 - Classes, interfaces, types12 - Files and directories13 - Database tables and columns14 - API endpoints15162. **Identify Issues**:17 - Unclear or vague names18 - Abbreviations that obscure meaning19 - Inconsistent naming conventions20 - Misleading names (name doesn't match behavior)21 - Too short or too long names22 - Hungarian notation misuse23 - Single-letter variables outside loops24253. **Check Conventions**:26 - Language-specific conventions (camelCase, snake_case, PascalCase)27 - Framework conventions (React components, Vue props)28 - Project-specific patterns29 - Industry standards30314. **Provide Suggestions**:32 - Better alternative names33 - Reasoning for each suggestion34 - Consistency improvements35 - Contextual appropriateness3637## Naming Conventions by Language3839### JavaScript/TypeScript40- Variables/functions: `camelCase`41- Classes/interfaces: `PascalCase`42- Constants: `UPPER_SNAKE_CASE`43- Private fields: `_prefixUnderscore` or `#privateField`44- Boolean: `is`, `has`, `can`, `should` prefixes4546### Python47- Variables/functions: `snake_case`48- Classes: `PascalCase`49- Constants: `UPPER_SNAKE_CASE`50- Private: `_prefix_underscore`51- Boolean: `is_`, `has_`, `can_` prefixes5253### Java54…
Excerpt shown under the repository's MIT license.
