# Names

> Refactors code by renaming variables, methods, classes, and types to improve clarity and intent, with automatic testing and commits after each rename.

- Skill: `sdiamante13/names` (Agent Skill)
- Install (CLI): `npx skillmds@latest add sdiamante13/names`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sdiamante13/names/raw
- Safety review: CAUTION (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools, Refactoring
- Tags: Code Quality, Naming, Refactoring, Rename
- Author: SDiamante13 (https://skillmd.com/u/sdiamante13)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/sdiamante13/names

---


# Rename Refactor

Ask the user for the file or directory to refactor. Support multiple files if a directory is provided.

## Process

Work through these steps in order, making a separate commit for each rename:

1. **Rename local variables**
   - Replace generic names (data, temp, obj, etc.) with domain-specific terms
   - Make names describe behavior and domain purpose
   - Follow language conventions (camelCase, snake_case, etc.)

2. **Rename private methods/fields**
   - Improve clarity and reveal intent
   - Ensure consistency across related names
   - Use behavior-focused names

3. **Rename public methods/fields**
   - Same as private, but broader impact
   - Ensure all references updated throughout codebase

4. **Rename classes/types**
   - Highest impact, most careful
   - Domain-driven names that reveal purpose

After EACH rename:
- Run tests automatically
- If tests fail, revert the change immediately
- Commit using: `. r rename <old> to <new>`

## Guidelines

- DO NOT CHANGE ANY BEHAVIOR - only improve names
- Use IDE rename refactoring when possible (compile-error driven)
- Ensure all references updated throughout codebase

## Output

- If no names to improve, report "No names to improve"
- Otherwise provide brief summary (e.g., "Renamed 7 variables, 3 methods, 1 class")

## Commit Format

Use Arlo's Commit Notation (ACN):
- `. r rename getData to fetchStockPrices`
- `. r rename userObj to investorProfile`

