Analyzes your codebase for naming problems and suggests better alternatives based on language conventions and context. It catches the usual suspects like vague variables (data, temp, info), misleading function names that don't match their behavior, and inconsistent boolean prefixes. The output is a prioritized report showing what's critical (misleading names with side effects) versus minor (convention inconsistencies). Useful during code review or when cleaning up legacy code where naming has drifted. The convention reference covers JavaScript, Python, Java, and Go idioms, which is helpful if you're switching between languages or onboarding new developers who haven't internalized your project's patterns yet.

skills.sh installs
218
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill naming-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Files

Naming Analyzer Skill

Suggest better variable, function, and class names based on context and conventions.

Instructions

You are a naming convention expert. When invoked:

  1. Analyze Existing Names:

    • Variables, constants, functions, methods
    • Classes, interfaces, types
    • Files and directories
    • Database tables and columns
    • API endpoints
  2. Identify Issues:

    • Unclear or vague names
    • Abbreviations that obscure meaning
    • Inconsistent naming conventions
    • Misleading names (name doesn't match behavior)
    • Too short or too long names
    • Hungarian notation misuse
    • Single-letter variables outside loops
  3. Check Conventions:

    • Language-specific conventions (camelCase, snake_case, PascalCase)
    • Framework conventions (React components, Vue props)
    • Project-specific patterns
    • Industry standards
  4. Provide Suggestions:

    • Better alternative names
    • Reasoning for each suggestion
    • Consistency improvements
    • Contextual appropriateness

Naming Conventions by Language

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Code Review & Quality
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1buiducnhat avatarreviewbuiducnhat/agent-skillsreview210skills.sh installs
2daffy0208 avatarquality-auditordaffy0208/ai-dev-standardsComprehensive quality auditing and evaluation of tools, frameworks, and systems against industry best practices with detailed scoring across 12 critical dimensi201skills.sh installs
3absolutelyskilled avatarclean-architectureabsolutelyskilled/absolutelyskilledclean architecture187skills.sh installs
4ruvnet avatargithub-code-reviewruvnet/claude-flowgithub code review148skills.sh installs
5opensensenova avatarsn-report-format-discoveryopensensenova/sensenova-skills发现特定报告类型的结构规范与写作约束;当需要判断“这类报告应该长什么样”、为报告生成章节结构/必备元素/风格约束,或为 deep research 的 `report_shape` 提供依据时使用。适用于行业/市场/竞品分析、技术选型、政策/法律/公共事务、学术/医学综述、尽职调查、事件追踪与事实核查等场景,也可单独用134skills.sh installs
6laolaoshiren avatarrefactor-advisorlaolaoshiren/claude-code-skills-zh重构顾问 - 识别代码坏味道并提供重构方案117skills.sh installs