swift-architecture-skill

Analyze Swift project constraints to recommend MVVM, TCA, or Clean Architecture patterns.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/PicoMLX/SwiftSQLite --skill swift-architecture-skill-picomlx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-architecture-skill
Source: https://github.com/PicoMLX/SwiftSQLite/tree/main/.agents/skills/swift-architecture-skill
Command: npx skills add https://github.com/PicoMLX/SwiftSQLite --skill swift-architecture-skill-picomlx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill resolves architectural uncertainty in Swift projects by providing standardized, testable, and scalable patterns for SwiftUI and UIKit codebases.

Core Features & Use Cases

  • Architecture Selection: Get data-driven recommendations for MVVM, TCA, Clean Architecture, and more based on your specific UI stack and state complexity.
  • Implementation Playbooks: Access detailed guides for dependency injection, navigation, and concurrency that align with modern Swift best practices.
  • Use Case: If you are refactoring a legacy UIKit screen to SwiftUI, use this Skill to generate a migration plan that preserves your existing business logic while adopting a clean, testable architecture.

Quick Start

Use the swift-architecture-skill to recommend the best architecture for a new SwiftUI feature with complex state and provide a concrete implementation plan.

Frequently Asked Questions about swift-architecture-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to structure a complex SwiftUI feature module?

The best way to structure a complex SwiftUI feature is by adopting a scalable architecture like MVVM or TCA. This Skill analyzes your project constraints to recommend a specific design pattern and provides an implementation playbook for consistent code structure and navigation logic.

How do I refactor a legacy UIKit screen to SwiftUI while preserving business logic?

To refactor a legacy UIKit screen to SwiftUI, you need a migration plan that separates business logic from UI components. This Skill generates concrete steps to transition your codebase into a clean, testable architecture without losing existing functionality.

How do I choose between MVVM and Clean Architecture for my iOS app?

Choosing between MVVM and Clean Architecture depends on your UI stack and state complexity. This Skill provides data-driven recommendations by analyzing your specific project constraints to select the most suitable pattern for your Swift codebase.

Can I implement dependency injection and navigation logic across mixed UIKit and SwiftUI codebases?

Yes, you can implement dependency injection and navigation logic across mixed UIKit and SwiftUI codebases. This Skill provides detailed implementation playbooks that align with modern Swift best practices to ensure consistent architectural structure across all iOS feature modules.