Check Swift naming conventions for iOS code. Validates class names, variables, functions, and IBOutlets against project standards. Use when reviewing code readability, checking abbreviations, or enforcing naming consistency in Swift files.
View on GitHubdaispacy/py-claude-marketplace
py-plugin
py-plugin/skills/ios-naming-conventions/SKILL.md
January 20, 2026
Select agents to install to:
npx add-skill https://github.com/daispacy/py-claude-marketplace/blob/main/py-plugin/skills/ios-naming-conventions/SKILL.md -a claude-code --skill ios-naming-conventionsInstallation paths:
.claude/skills/ios-naming-conventions/# iOS Naming Conventions Checker Validate Swift code naming against Payoo Merchant project standards for clarity and consistency. ## When to Activate - "check naming", "naming conventions", "code readability" - "abbreviations", "variable names", "rename" - Reviewing code quality or consistency - Onboarding new developers ## Naming Rules Summary ### Types (Classes, Structs, Enums, Protocols) - **PascalCase**: `PaymentViewModel`, `TransactionRepository` - **Descriptive**: Purpose immediately clear - **Proper suffixes**: ViewModel, ViewController, UseCase, Repository ### Variables & Properties - **camelCase**: `paymentAmount`, `isProcessing` - **Meaningful**: No abbreviations (except URL, ID, VC, UC) - **Booleans**: Prefix `is`, `has`, `should`, `can` - **Collections**: Plural names (`transactions`, `stores`) ### Functions & Methods - **camelCase** with verb prefix - **Actions**: `loadTransactions()`, `processPayment()` - **Queries**: `getTransaction()`, `hasPermission()` ### IBOutlets - **Type suffix**: `amountTextField`, `confirmButton`, `tableView` ## Review Process ### Step 1: Scan Code Read files and identify all declarations: - Class/struct/enum/protocol declarations - Variable and property declarations - Function declarations - IBOutlet declarations ### Step 2: Check Against Rules For each identifier, verify: **Classes/Types**: - ✅ PascalCase - ✅ Descriptive (not generic like "Manager") - ✅ No abbreviations (except standard ones) - ✅ Proper suffix (ViewModel, UseCase, etc.) **Variables**: - ✅ camelCase - ✅ Meaningful names - ✅ Boolean prefixes (is/has/should/can) - ✅ Plural for collections - ✅ No single letters (except loop indices) **Functions**: - ✅ Verb-based names - ✅ Clear action or query intent - ✅ No generic names (doSomething, handle) **IBOutlets**: - ✅ Type suffix included ### Step 3: Generate Report ```markdown # Naming Conventions Review ## Summary - 🔴 Critical (meaningless): X - 🟠 High (abbreviations): X - 🟡 Medium (missing pre