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.
/plugin marketplace add daispacy/py-claude-marketplace/plugin install py-plugin@py-claude-marketplaceThis skill is limited to using the following tools:
examples.mdValidate Swift code naming against Payoo Merchant project standards for clarity and consistency.
PaymentViewModel, TransactionRepositorypaymentAmount, isProcessingis, has, should, cantransactions, stores)loadTransactions(), processPayment()getTransaction(), hasPermission()amountTextField, confirmButton, tableViewRead files and identify all declarations:
For each identifier, verify:
Classes/Types:
Variables:
Functions:
IBOutlets:
# Naming Conventions Review
## Summary
- 🔴 Critical (meaningless): X
- 🟠 High (abbreviations): X
- 🟡 Medium (missing prefixes): X
- 🟢 Low (style): X
## Issues by Type
### Classes/Structs/Enums
**File**: `path/to/file.swift:line`
Current: `PayVC`
Should be: `PaymentViewController`
Reason: [Explanation]
### Variables/Properties
[List with specific fixes]
### Functions
[List with specific fixes]
### IBOutlets
[List with specific fixes]
## Batch Rename Suggestions
Found `amt` in 5 locations → Rename all to `paymentAmount`
## Good Examples Found ✅
[Acknowledge well-named elements]
class PayVC { } → PaymentViewController
let amt: Double → paymentAmount
func procPmt() { } → processPayment()
let x = transaction → currentTransaction
let a = amount → paymentAmount
class Manager { } → PaymentManager
func doSomething() { } → processRefundRequest()
func handle() { } → handlePaymentError()
let loading: Bool → isLoading: Bool
let valid: Bool → isValid: Bool
@IBOutlet weak var amount: UITextField! → amountTextField
@IBOutlet weak var btn: UIButton! → confirmButton
Use Grep to find:
(let|var)\s+[a-z]{1,3}\s*[=:]@IBOutlet.*weak var(let|var)\s+[a-z]+.*:\s*BoolFor each violation:
Prioritize:
| ❌ Bad | ✅ Good |
|---|---|
| amt | paymentAmount |
| trx, tx | transaction |
| btn | button |
| lbl | label |
| vc | viewController |
| uc | useCase |
| repo | repository |
Detailed Examples: See examples.md for extensive naming patterns and scenarios.