swift-standards
Installation
SKILL.md
Swift Best Practices
When to Use This Skill
This skill should be triggered when:
- Writing or reviewing Swift code
- Setting up Swift packages or Xcode projects
- Working with iOS, macOS, watchOS, tvOS, or visionOS
- Discussing Swift patterns, concurrency, or architecture
- Configuring Package.swift or build settings
Core Capabilities
- Package Management: Swift Package Manager (SPM) exclusively
- Type Safety: Strict concurrency, avoid Any, leverage generics
- Error Handling: Typed throws (Swift 6), Result types
- State Modeling: Enums with associated values for impossible states
- Concurrency: async/await, actors, structured concurrency