swift-clean-advisor
Installation
SKILL.md
Swift Clean Code Advisor
This skill activates automatically when you are writing or reviewing Swift code to ensure Clean Code principles (Robert Martin) are applied throughout.
When This Skill Applies
Activate when:
- Creating or editing
.swiftfiles - Implementing new Swift functions, classes, structs, enums, or protocols
- The user mentions: "clean code", "SOLID", "refactor", "code quality", "naming", "best practices" in a Swift context
- Reviewing existing Swift code for quality
Core Principles to Enforce (Swift Edition)
While Writing New Code
Names first:
- Choose the name before writing the body; if you can't name it cleanly, the design is wrong
- Types: PascalCase. Values/functions: camelCase. Booleans:
is*/has*/can*