Swift Language

Installation
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

Swift Language Standards

Priority: P0

Implementation Guidelines

Optionals & Safety

  • Never Force Unwrap: Use guard let, if let, or nil coalescing (??).
  • Nil Comparison: Use value != nil instead of if let _ = value.
  • Implicitly Unwrapped: Avoid Type!. Use proper Type?.

Protocols & Extensions

  • Protocol Composition: Prefer struct + protocols over class inheritance.
  • Extensions: Use for conformance (extension MyType: Codable), not storage.
  • Protocol Witnesses: Explicitly implement all required members.

Type Safety

Related skills
Installs
GitHub Stars
488
First Seen