Agent Skills: iOS Xcode & Tooling Best Practices

Xcode setup and tooling guidance for iOS 26 / Swift 6.2 clinic modular MVVM-C projects covering project configuration, SwiftData container wiring, testing, debugging, profiling, and distribution workflows. Use when configuring App-target infrastructure or day-to-day tooling around clinic architecture modules.

UncategorizedID: pproenca/dot-skills/ios-xcode

Install this agent skill to your local

pnpm dlx add-skill https://github.com/pproenca/dot-skills/tree/HEAD/skills/.experimental/ios-xcode

Skill Files

Browse the full folder contents for ios-xcode.

Download Skill

Loading file tree…

skills/.experimental/ios-xcode/SKILL.md

Skill Metadata

Name
ios-xcode
Description
Xcode setup and tooling guidance for iOS 26 / Swift 6.2 clinic modular MVVM-C projects covering project configuration, SwiftData container wiring, testing, debugging, profiling, and distribution workflows. Use when configuring App-target infrastructure or day-to-day tooling around clinic architecture modules.

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 + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • 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 | data- | | 2 | Project & Platform | HIGH | platform- | | 3 | Testing | HIGH | test- | | 4 | Debugging & Profiling | MEDIUM-HIGH | debug-, perf- | | 5 | Distribution | MEDIUM | dist- | | 6 | Specialty Platforms | MEDIUM | ml-, spatial- |

Quick Reference

1. Project & Platform (HIGH)

2. SwiftData & Persistence (CRITICAL)

3. Testing (HIGH)

4. Debugging & Profiling (MEDIUM-HIGH)

5. Distribution (MEDIUM)

6. Specialty Platforms (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description | |------|-------------| | references/_sections.md | Category definitions and ordering | | assets/templates/_template.md | Template for new rules |