← ClaudeAtlas

swift-project-standardlisted

Enforce a strict, model-agnostic, AI-navigable Swift project standard: Swift 6 language mode + complete strict concurrency + warnings-as-errors as a one-command zero-warning gate, the escape hatches (`!` force-unwrap / `try!` / `as!` / `@unchecked Sendable` / implicitly-unwrapped optionals) shut, `Codable` + newtypes at boundaries (parse don't validate), an SPM package with target-per-domain deep structure, a zero-SDK `Domain` target behind provider protocol seams with a default `MockProvider`, `os.Logger` with privacy interpolation, a strongly-typed `AppConfig`, a swift-format + SwiftLint double gate, a CLAUDE.md in every target, and scaffold/conformance scripts. Use whenever starting or scaffolding a Swift or SwiftUI project; setting up Package.swift / SwiftLint / swift-format / CI; deciding module or target structure; adding an LLM / embedding / vector-store dependency; wiring providers or adapters; or checking that an existing Swift project conforms. Apply it even when the user only says "start a Swift pr
VoldemortGin/AI-Coding-Skill-Bible · ★ 1 · AI & Automation · score 72
Install: claude install-skill VoldemortGin/AI-Coding-Skill-Bible
# Swift Project Standard This skill is the guiding standard for **any** Swift work. Apply it by default; don't wait to be asked. Its spine: **trust is placed not in the model, but in the machine-checkable code that constrains it.** In Swift, like Rust, most of that scaffold is the compiler — types, optionality, exhaustiveness, and (in Swift 6) data-race safety are enforced at compile time with no type erasure, so there's **no runtime type-checker to bolt on** (unlike the Python sibling's beartype). The job here is to (a) keep the few escape hatches shut and turn on Swift 6 complete strict concurrency, (b) push every external dependency behind a protocol so the model is hot-swappable, (c) organize deep and name-navigable, and (d) mechanize the implicit knowledge a human would otherwise hold — via a zero-warning gate, a per-target contract, and drift guards. The agent's output ceiling equals the tightness of that loop. Baseline: **Swift 6.x** (`// swift-tools-version: 6.0`, `swiftLanguageModes: [.v6]`), complete strict concurrency, `warnings-as-errors` at the gate, `swift-format` (toolchain-bundled), `SwiftLint` (community, `--strict`), `Codable` + newtypes, `os.Logger`, a Codable `AppConfig`, and `XcodeGen` for a thin app shell when there's a UI. This standard is the **project-level engineering charter** (the gate + architecture conventions). For *how to write the implementation inside a target*, it delegates to the existing implementation skills — `swift-concurrency`, `sw