swift-api-design-guidelines
Installation
SKILL.md
Swift API Design Guidelines
Naming and interface-design rules from Apple's official API Design Guidelines. The prime directive: clarity at the point of use is the goal, and clarity is more important than brevity. A declaration is written once and read at every call site — optimize the call site.
- Enforcement: most of this is judgment a linter can't check;
swiftlintcatches the mechanical subset (identifier casing, redundant names). See theswiftlintskill. - Language idioms (optionals, generics, protocol design mechanics):
swift-patterns. - KMP boundary: the Swift signatures a shared Kotlin module exposes are named by Kotlin/SKIE, not by you — audit them against these rules and rename with
@ObjCName/ SKIE where the generated names read poorly. Seekmp-ios-integration.