swift-clean-review
Installation
SKILL.md
Swift Clean Code — Full Review
Perform a complete Clean Code audit of the provided Swift code, covering all principles from Robert Martin's book adapted to Swift.
Arguments
The user provided: $ARGUMENTS
If a file path is given — read it. If a directory — find all .swift files and audit them. If no arguments — ask the user to specify.
Instructions
Step 1: Discover Files
- If a directory:
find $ARGUMENTS -name "*.swift" -not -path "*/build/*" -not -path "*/.build/*" - Read each file
Step 2: Run All Checks in Order
For each file, check the following categories: