What problem does it solve?
It helps you avoid outdated Swift patterns and common language pitfalls by providing modern, idiomatic guidance for core Swift (non-concurrency, non-SwiftUI) code.
Core Features & Use Cases
- Modern control flow as expressions: Use if/switch expressions for concise initialization, assignment, and return value logic (Swift 5.9+).
- Swift 6 typed throws: Model clear domain-specific errors and enable exhaustive handling without manual casting.
- Type system clarity: Choose correctly between opaque types (some) and existential types (any) based on performance and requirements.
- Safer, more expressive patterns: Prefer guard patterns for preconditions, use Never appropriately, and apply Regex builders for compile-time-checked patterns.
- Better Codable and collections: Use CodingKeys/custom decoding for stable APIs, and favor modern collection APIs and FormatStyle for correctness and readability.
- String and formatting best practices: Use .formatted() and clean interpolation patterns, plus reusable string interpolation extensions.
Quick Start
Apply the swift-language skill to the Swift file you’re working on and ask it to rewrite the core functions using modern Swift 6 idioms, including typed throws where appropriate, then provide a brief review checklist against common mistakes.