# naming-analyzer

Reviews variable, function, class and file names for clarity, spots misleading labels and offers alternatives that follow language conventions.

- skill · `type=skill` · Claude Code · 53 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/naming-analyzer
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/naming-analyzer

## What it does

The skill scans code for naming problems: overly generic terms (`data`, `temp`), misleading labels (a `getUser` function that mutates state), unclear abbreviations (`usrCfg`), booleans without prefixes (`active` instead of `isActive`). For each issue it provides a specific explanation and a better alternative. Checks variables, constants, methods, interfaces, database tables and API paths.

Recognises conventions for JavaScript, TypeScript, Python, Java and Go: `camelCase` for variables, `PascalCase` for classes, `UPPER_SNAKE_CASE` for constants. Separates critical errors (a name that does not match behaviour) from minor lapses (inconsistent casing). The report groups findings by priority and points to exact locations in the project.

Mention the skill in a prompt to run it. Works on the whole project, a folder or a single file.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill productivity/naming-analyzer
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill naming-analyzer -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/naming-analyzer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/naming-analyzer/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/naming-analyzer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/naming-analyzer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates naming-analyzer
```

2. **Manually: put the files in place**
- File: `.github/skills/naming-analyzer/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/productivity/naming-analyzer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/naming-analyzer/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/naming-analyzer

## When to use it
- audit variable and function names for clarity
- spot boolean variables missing `is`, `has` or `can` prefixes
- identify functions whose names hide side effects
- align names with language conventions
- replace magic numbers with named constants

## Example prompts
- Check names in `src/services/UserService.js` — the `getUser` function updates `lastLogin`, which is misleading
- Review variable names in `src/utils`, lots of single letters and abbreviations
- Find boolean fields without prefixes in models and suggest corrected versions

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [codebase-design](https://affpapa.org/en/nevibecode/skills/codebase-design.md) — skill · 850344 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
