Skip to content
Back to skills

Names

ASecurity

Refactor code by renaming variables, methods, classes, and concepts for clearer intent. Use when asked to improve names, clarify naming, perform a naming pass, or run `/refactor:names`.

  • 8 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
businessrefactoring

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add SDiamante13/dotfiles --skill names --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Names?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Names
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sdiamante13-names/badge)](https://www.skillsdirectory.com/skills/sdiamante13-names)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: names
description: Refactor code by renaming variables, methods, classes, and concepts for clearer intent. Use when asked to improve names, clarify naming, perform a naming pass, or run `/refactor:names`.
metadata:
  legacy-name: refactor: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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.