Skip to content
cccskills
FreePublished on GitHub

names

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`.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

Rebuilds session context after a clear by reading git history, plans, and beads state. Triggers on 'catch up'.

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

Generate a bullet-point summary of branch changes for a PR description. Triggers on "changelog", "pr summary", "summarize branch", or "/changelog".

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

commit

Free

Commit the current changes with quality checks, status review, staged diff inspection, appropriate tests, and a clear commit message. Use when the user says "commit", "c", asks to make a commit, or wants changes saved in git.

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

Refactor code to remove dead code, useless comments, unused variables, and unused imports. Use when asked to declutter a class, clean up noisy code, remove cruft, or run `/refactor:declutter`.

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

dry

Free

Refactor duplicated code by extracting helpers, shared abstractions, or clearer reusable structure. Use when asked to apply DRY, remove duplication, consolidate repeated logic, or run `/refactor:dry`.

The English summary is being prepared. Showing the original description.

SDiamante13/dotfiles10Updated Oct 2, 2026

See all skills by SDiamante13

Report a problem with this skill