mcpField
I
ios-xcode

ios-xcode

github.com/pproencaDevelopment218295 installsUpdated 11w ago
Repository

About ios-xcode

A best-practices reference for iOS developers working with Xcode, SwiftData, testing, debugging, profiling, and distribution. Its rules assume a modular MVVM-C architecture.

Key features

  1. 01Xcode project and platform setup
  2. 02SwiftData persistence practices
  3. 03Swift Testing and preview guidance
  4. 04Debugging and Instruments profiling
  5. 05TestFlight distribution and specialty platform guidance

Use cases

  1. 01Setting up AppStorage and app lifecycle handling
  2. 02Implementing SwiftData models and CRUD
  3. 03Writing tests and creating preview samples
  4. 04Investigating issues with breakpoints and Instruments

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill ios-xcode

After installing, type/ios-xcodein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

metadata.json
assets/templates/
_template.md
references/
_sections.md
data-crud-operations.md
data-model-container.md
data-model-macro.md
data-query-for-fetching.md
data-relationships.md
debug-breakpoints.md
debug-console-output.md
dist-app-icons.md
dist-testflight.md
ml-natural-language.md
perf-instruments-profiling.md
platform-app-storage.md
platform-scene-phase.md
platform-system-features.md
platform-widget-integration.md
spatial-visionos-windows.md
test-preview-macro.md
test-preview-sample-data.md
test-swift-testing.md

Details

From the project README

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

PriorityCategoryImpactPrefix
1SwiftData & PersistenceCRITICALdata-
2Project & PlatformHIGHplatform-
3TestingHIGHtest-
4Debugging & ProfilingMEDIUM-HIGHdebug-, perf-
5DistributionMEDIUMdist-
6Specialty PlatformsMEDIUMml-, 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

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules

Comments

Markdown supported