swift-clean-names
Installation
SKILL.md
Swift Clean Names
Audit and fix naming in Swift code per Clean Code (Robert Martin), adapted to Swift conventions.
Arguments
The user provided: $ARGUMENTS
If a file path is given — read it. If no arguments — ask the user to paste the code or specify a file.
Checklist to Apply
1. Intention-Revealing Names
- Name must answer: what it is, why it exists, how it is used
- Bad:
d,data,info,temp,result,val,flag - Good:
elapsedTimeInDays,userAuthToken,isPaymentConfirmed