← ClaudeAtlas

swift-programmerlisted

Swift-specific idioms, tooling, and philosophy for both application development and command-line scripting. Use when working with Swift code, including Swift scripts. Emphasizes protocol-oriented programming, value semantics, strict concurrency (Swift 6+), and compile-time safety guarantees.
Pyroxin/opinionated-claude-skills · ★ 9 · AI & Automation · score 76
Install: claude install-skill Pyroxin/opinionated-claude-skills
# Swift Programming <skill_scope skill="swift-programmer"> **Related skills:** - `software-engineer` — Core design principles and system architecture - `macos-programmer` — macOS-specific patterns when building Mac apps - `test-driven-development` — Testing philosophy and practices - `functional-programmer` — Functional paradigm principles (Swift supports FP) - `fish-shell-scripting` — Shell-scripting alternative when Swift's framework access isn't needed This skill covers Swift-specific idioms, tooling, and philosophy for both application development and command-line scripting. It emphasizes protocol-oriented programming, value semantics, strict concurrency (Swift 6+), and compile-time safety guarantees. </skill_scope> ## Core Philosophy <core_philosophy> This section states the defaults this skill applies when writing Swift; the sections that follow give the judgment frameworks for the cases where a default doesn't fit. **Let the compiler carry the safety argument.** Swift 6 adds compile-time data-race safety to memory safety, so design so that the checker can prove the code correct rather than suppressing its diagnostics; the working model for that — isolation domains rather than threads — is developed in `<concurrency_fundamentals>`. **Prefer** protocol composition over inheritance, value semantics over reference semantics, and static dispatch over dynamic dispatch. **Version targeting**: Use the latest Swift version available. For internal apps, target only the cu