$npx skillfedfor your agent

swift-ui-architect

swift-ui-architect equips AI agents with the expertise to design and implement robust SwiftUI applications using proven architectural patterns. The skill enforces separation of concerns through MVVM-C layering, Swift Package Manager organization, and coordinator-based navigation, enabling agents to generate production-ready iOS codebases that scale with team complexity.

swift-ui-architect teaches MVVM-C architecture with clear separation between Domain, Data, and Feature layers. It emphasizes using Swift Package Manager for modular organization, implementing Observable ViewModels for state management, and coordinator-based navigation patterns. The skill guides agents to enforce these boundaries consistently across projects, ensuring scalable and maintainable SwiftUI applications.

AI-generated summary based on this skill's SKILL.md

182 14 MITupdated by pproenca

Decision gist · record as of 2026-07-24

swift-ui-architect teaches MVVM-C architecture with clear separation between Domain, Data, and Feature layers. It emphasizes using Swift Package Manager for modular organization, implementing Observable ViewModels for state management, and coordinator-based navigation patterns. The skill guides agents to enforce these boundaries consistently across projects, ensuring scalable and maintainable SwiftUI applications.

manual: git clone https://github.com/pproenca/dot-skills → cp -r dot-skills/skills/.experimental/swift-ui-architect ~/.claude/skills/swift-ui-architect
skills/.experimental/swift-ui-architect/SKILL.md · version 546b5d5e

Use it when

  • swift-ui-architect provides patterns for building a DependencyContainer that manages all injectable dependencies across your SwiftUI app.
  • swift-ui-architect's MVVM-C pattern pairs ViewModels with Coordinators to handle navigation and flow logic separately from UI rendering.

Verify before relying

Read SKILL.md below before installing (47 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

pproenca/dot-skills/swift-ui-architect · repository language: Shell

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What swiftui architecture best practices does swift-ui-architect teach?

swift-ui-architect teaches MVVM-C architecture with clear separation between Domain, Data, and Feature layers. It emphasizes using Swift Package Manager for modular organization, implementing Observable ViewModels for state management, and coordinator-based navigation patterns. The skill guides agents to enforce these boundaries consistently across projects, ensuring scalable and maintainable SwiftUI applications.

How do you set up dependency injection in swift-ui-architect?

swift-ui-architect provides patterns for building a DependencyContainer that manages all injectable dependencies across your SwiftUI app. The container registers services at the Domain and Data layers, then injects them into Feature modules via coordinator initialization. This approach decouples components, simplifies testing, and keeps dependency graphs explicit and traceable.

What is the mvvm-c coordinator pattern in swift-ui-architect?

swift-ui-architect's MVVM-C pattern pairs ViewModels with Coordinators to handle navigation and flow logic separately from UI rendering. Coordinators manage route shells and transitions between features, while ViewModels handle state and business logic. This separation makes navigation testable and keeps SwiftUI views focused on presentation only.

How should you organize swiftui projects with SPM packages?

swift-ui-architect recommends structuring projects as SPM packages divided into Domain (entities and protocols), Data (repositories and networking), and Feature (UI and coordinators) layers. Each layer becomes its own package with explicit dependencies, preventing circular imports and enabling independent testing. This modular approach scales as team complexity grows.

What role do Observable ViewModels play in swift-ui-architect?

swift-ui-architect uses Observable ViewModels (Swift 6 style) to drive reactive UI updates without @Published boilerplate. ViewModels expose state as @Observable properties, triggering SwiftUI re-renders automatically. Combined with coordinators for navigation, this pattern keeps state management clean and navigation logic decoupled from view rendering.

How does swift-ui-architect handle swiftui navigation and routing?

swift-ui-architect implements navigation through route shells managed by Coordinators. Each feature defines its own routes and transitions; coordinators interpret those routes and push new screens or present modals. This centralizes navigation logic, making it testable and reusable across the app without scattering NavigationStack or sheet modifiers throughout views.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

SwiftUI Modular MVVM-C Architecture

Opinionated architecture enforcement for SwiftUI clinic-style apps. This skill aligns to the iOS 26 / Swift 6.2 clinic architecture: modular MVVM-C in local SPM packages, concrete coordinators and route shells in the App target, pure Domain protocols, and Data as the only I/O layer.

Mandated Architecture Stack

``` ┌───────────────────────────────────────────────────────────────┐ │ App target: DependencyContainer, Coordinators, Route Shells │ ├───────────────┬───────────────┬───────────────┬──────────────┤ │ Feature SPM │ Feature SPM │ Feature SPM │ Feature SPM │ │ View + VM │ View + VM │ View + VM │

(truncated - see the full file via the links below)

File tree — 15 files
skills/.experimental/swift-ui-architect/SKILL.md
skills/.experimental/swift-ui-architect/assets/templates/_template.md
skills/.experimental/swift-ui-architect/metadata.json
skills/.experimental/swift-ui-architect/references/_sections.md
skills/.experimental/swift-ui-architect/references/data-async-init.md
skills/.experimental/swift-ui-architect/references/data-cancellation.md
skills/.experimental/swift-ui-architect/references/data-combine-avoid.md
skills/.experimental/swift-ui-architect/references/data-error-loadable.md
skills/.experimental/swift-ui-architect/references/data-task-modifier.md
skills/.experimental/swift-ui-architect/references/di-container-composition.md
skills/.experimental/swift-ui-architect/references/di-environment-injection.md
skills/.experimental/swift-ui-architect/references/di-mock-testing.md
skills/.experimental/swift-ui-architect/references/di-protocol-abstraction.md
skills/.experimental/swift-ui-architect/references/diff-avoid-anyview.md
skills/.experimental/swift-ui-architect/references/diff-closure-skip.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Enforce modular MVVM-C architecture with SPM packages and coordinators”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

swift-data
by pproenca · pproenca/dot-skills

This skill equips AI agents with the knowledge to architect scalable data persistence solutions in Swift using SwiftData's modern ORM capabilities. It covers entity modeling, repository patterns, and clean architecture principles tailored for MVVM-C workflows. Developers gain practical guidance on structuring data layers that remain maintainable as iOS projects grow in complexity.

MITupdated Jul 2026
★ 182repo stars
swift-refactor
by pproenca · pproenca/dot-skills

swift-refactor helps developers modernize SwiftUI applications by transforming existing code into clean, modular MVVM-C patterns. It leverages Swift's @Observable macro and SPM package boundaries to create maintainable, scalable architectures that separate concerns and improve testability.

MITupdated Jul 2026
★ 182repo stars
ios-testing
by pproenca · pproenca/dot-skills

This skill equips developers with structured testing methodologies tailored for iOS applications built on modular MVVM-C architecture. Explore practical approaches to unit testing, integration testing, and UI automation while maintaining clean separation of concerns across your codebase. Strengthen your testing foundation to build more reliable and maintainable iOS applications.

MITupdated Jul 2026
★ 182repo stars
ios-hig
by pproenca · pproenca/dot-skills

This skill equips developers with Apple's Human Interface Guidelines, providing essential design principles and patterns for building polished SwiftUI applications. Access curated rules, accessibility requirements, and platform-specific best practices to ensure your iOS apps meet Apple's quality standards and deliver excellent user experiences.

MITupdated Jul 2026
★ 182repo stars
ios-xcode
by pproenca · pproenca/dot-skills

ios-xcode equips AI agents with specialized capabilities for iOS development workflows, enabling configuration of Xcode projects with SwiftData persistence layers and clinic-pattern MVVM-C architecture. This skill extends coding agents with domain knowledge for building structured, maintainable iOS applications.

MITupdated Jul 2026
★ 182repo stars
ios-design-system
by pproenca · pproenca/dot-skills

This skill collection provides AI agents with specialized capabilities for constructing and improving iOS design systems. It enables systematic management of design tokens, component styling, and architectural patterns to maintain consistency across iOS applications. Leverage these domain-specific tools to streamline design system workflows and enhance code maintainability.

MITupdated Jul 2026
★ 182repo stars

More skills ios-storyboard (MIT)

Tags
modular-architecturedependency-injectioncoordinator-patternobservable-statespm-packageslayer-separationnavigation-routingdata-persistenceasync-patternscode-organization