refactor-rename-for-clarity
SKILL.md
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 |
Weekly Installs
2
Repository
cantagestudio/c…aspackerGitHub Stars
2
First Seen
Feb 26, 2026
Security Audits
Installed on
amp2
opencode2
cursor2
kimi-cli2
codex2
github-copilot2