Swift Architecture Skill
by @efremidze
Agent Skill for Swift architecture design and implementation patterns, with architecture-specific playbooks and review checklists. Use when designing new fea...
clawhub install swift-architecture-skillπ About This Skill
name: swift-architecture-skill description: Agent Skill for Swift architecture design and implementation patterns, with architecture-specific playbooks and review checklists. Use when designing new features, refactoring existing modules, reviewing pull requests, or debugging maintainability issues in SwiftUI/UIKit projects and you need concrete guidance for MVVM, MVI, TCA, Clean Architecture, VIPER, or Reactive patterns.
Swift Architecture Skill
Overview
Use this skill to pick the best Swift architecture playbook for SwiftUI/UIKit codebases and apply it to the userβs task.
Workflow
Step 1: Analyze the Request Context
Before selecting an architecture, capture:
Step 2: Select the Architecture
If the user explicitly names an architecture, treat it as the initial candidate and run a fit check before committing:
references/selection-guide.mdWhen no architecture is named, load references/selection-guide.md and infer the best fit from stated constraints (state complexity, team familiarity, testing goals, effect orchestration needs, and framework preferences). Explain the recommendation briefly.
Architecture reference mapping:
references/mvvm.mdreferences/mvi.mdreferences/tca.mdreferences/clean-architecture.mdreferences/viper.mdreferences/reactive.mdStep 3: Analyze Existing Codebase (When Applicable)
When code already exists:
Step 4: Produce Concrete Deliverables
Read the selected architecture reference and convert its guidance into deliverables tailored to the user's request:
Step 5: Validate with Checklist
End with the architecture-specific PR review checklist from the reference file, adapted to the user's feature.
Output Requirements
fit or mismatch) with 1-2 reasons.