Templates
Copy-paste scaffolding with folder structure, boilerplate Swift, naming conventions, DI setup, error handling, and testing examples. Swift here is illustrative — rename the sample types (Article, Checkout, etc.) and split combined files into one-type-per-file when you copy them into a real module. (They aren't part of a compiled package, so cross-file symbols won't resolve in isolation — that's expected.)
- feature_module/ — a full Swift Package feature slice
- clean_architecture_feature/ — Domain/Data/Presentation + DI + tests (with
.swiftfiles) - repository_layer/ — Domain protocol + Data impl + mapping
- networking_layer/ —
APIClient,Endpoint,NetworkError - websocket_layer/ — actor transport with state machine
- authentication_layer/ — OAuth2/PKCE + Keychain + refresh
- swiftui_screen/ — MVVM screen with state enum
- uikit_mvp_screen/ — MVP screen with injected repository and presenter tests
- unit_test_template/ — Swift Testing patterns +
URLProtocolstub (with.swiftfiles)
Each template links to the skills, standards, and architecture docs it implements.