Claude Code Plugins

Community-maintained marketplace

Feedback

refactor-rename-for-clarity

@CANTAGESTUDIO/CosmicAtlasPacker
1
0

[Code Quality] Performs systematic renaming to improve code clarity: variables, functions, classes, files. Use when names are unclear, misleading, or inconsistent with their purpose.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name refactor-rename-for-clarity
description [Code Quality] Performs systematic renaming to improve code clarity: variables, functions, classes, files. Use when names are unclear, misleading, or inconsistent with their purpose.

Refactor: Rename for Clarity

Improve code readability through better naming.

Naming Principles

1. Names Should Reveal Intent

// BAD: let d: Int
// GOOD: let elapsedDays: Int

2. Names Should Be Searchable

// BAD: if status == 1 { }
// GOOD: if status == .active { }

3. Names Should Match Abstraction Level

// BAD: func getFromNetworkAndParseJSON()
// GOOD: func fetchUserProfile()

Common Patterns

Bad Name Better Name Why
data userResponse Specific type
temp previousValue Purpose clear
flag isEnabled Boolean pattern
doIt() submitForm() Action + target