install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/ios-xcode" ~/.claude/skills/comeonoliver-skillshub-ios-xcode && rm -rf "$T"
manifest:
skills/pproenca/dot-skills/ios-xcode/SKILL.mdsource content
iOS Xcode & Tooling Best Practices
Comprehensive guide for Xcode project configuration, SwiftData persistence, testing, debugging, profiling, and app distribution. Contains 19 rules across 6 categories.
Clinic Architecture Contract (iOS 26 / Swift 6.2)
All guidance in this skill assumes the clinic modular MVVM-C architecture:
- Feature modules import
+Domain
only (neverDesignSystem
, never sibling features)Data - App target is the convergence point and owns
, concrete coordinators, and Route Shell wiringDependencyContainer
stays pure Swift and defines models plus repository,Domain
,*Coordinating
, andErrorRouting
contractsAppError
owns SwiftData/network/sync/retry/background I/O and implements Domain protocolsData- Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
- ViewModels call repository protocols directly (no default use-case/interactor layer)
When to Apply
Reference these guidelines when:
- Setting up Xcode projects with AppStorage, ScenePhase, or widgets
- Implementing SwiftData models, queries, and CRUD operations
- Writing tests with Swift Testing framework
- Debugging with breakpoints and console output
- Profiling performance with Instruments
- Distributing apps via TestFlight
- Building for visionOS or integrating ML features
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | SwiftData & Persistence | CRITICAL | |
| 2 | Project & Platform | HIGH | |
| 3 | Testing | HIGH | |
| 4 | Debugging & Profiling | MEDIUM-HIGH | , |
| 5 | Distribution | MEDIUM | |
| 6 | Specialty Platforms | MEDIUM | , |
Quick Reference
1. Project & Platform (HIGH)
- Use AppStorage for user preferencesplatform-app-storage
- Respond to app lifecycle with ScenePhaseplatform-scene-phase
- Design for widget and Live Activity integrationplatform-widget-integration
- Integrate system features nativelyplatform-system-features
2. SwiftData & Persistence (CRITICAL)
- Define models with @Model macrodata-model-macro
- Use @Query for fetching datadata-query-for-fetching
- Configure model containersdata-model-container
- Define model relationshipsdata-relationships
- Implement CRUD operationsdata-crud-operations
3. Testing (HIGH)
- Use Swift Testing frameworktest-swift-testing
- Create preview sample datatest-preview-sample-data
- Use #Preview macro for rapid iterationtest-preview-macro
4. Debugging & Profiling (MEDIUM-HIGH)
- Use breakpoints for debuggingdebug-breakpoints
- Use console output for debuggingdebug-console-output
- Profile SwiftUI with Instrumentsperf-instruments-profiling
5. Distribution (MEDIUM)
- Distribute via TestFlightdist-testflight
- Design app icons for distributiondist-app-icons
6. Specialty Platforms (MEDIUM)
- Integrate Natural Language MLml-natural-language
- Build for visionOS spatial computingspatial-visionos-windows
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions - Category structure and impact levels
- Rule template - Template for adding new rules
Reference Files
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |