swift-architecture-skill▌
efremidze/swift-architecture-skill · updated Apr 8, 2026
Use this skill to pick the best Swift architecture playbook for SwiftUI/UIKit codebases and apply it to the user’s task.
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:
- task type (new feature, refactor, PR review, debugging)
- UI stack (SwiftUI, UIKit, or mixed)
- scope (single screen, multi-screen, app-wide)
- existing conventions to preserve
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:
- validate against UI stack fit (SwiftUI/UIKit/mixed), state complexity, effect orchestration needs, team familiarity, and existing codebase conventions
- if it fits, proceed with the requested architecture
- if it mismatches key constraints, explicitly explain the mismatch and recommend the closest-fit alternative from
references/selection-guide.md - if the user still insists on a mismatched architecture, proceed with a risk-mitigated plan and state the risks up front
When 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:
- MVVM →
references/mvvm.md - MVI →
references/mvi.md - TCA →
references/tca.md - Clean Architecture →
references/clean-architecture.md - VIPER →
references/viper.md - Reactive →
references/reactive.md - MVP →
references/mvp.md - Coordinator →
references/coordinator.md
Step 3: Analyze Existing Codebase (When Applicable)
When code already exists:
- detect current architecture and DI style
- note concurrency model (async/await, Combine, GCD, mixed)
- align recommendations to local conventions
Step 4: Produce Concrete Deliverables
Read the selected architecture reference and convert its guidance into deliverables tailored to the user's request:
- File and module structure: directory layout with file names specific to the feature
- State and dependency boundaries: concrete types, protocols, and injection points
- Async strategy: cancellation, actor isolation, and error paths
- Testing strategy: what to test, how to stub dependencies, and example test structure
- Migration path (for refactors): incremental steps to move from current to target architecture
- UI stack adaptation: where SwiftUI and UIKit guidance should differ for the chosen architecture
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
- Keep recommendations scoped to the requested feature or review task.
- Prefer protocol-based dependency injection and explicit state modeling.
- Flag anti-patterns found in existing code and provide direct fixes.
- Include cancellation and error handling in all async flows.
- For explicit architecture requests, include a short fit result (
fitormismatch) with 1-2 reasons. - For mismatch cases, include one closest-fit alternative and why it better matches the stated constraints.
- When writing code, include only the patterns relevant to the task — do not dump entire playbooks.
- Treat reference snippets as illustrative by default; add full compile scaffolding only if the user asks for runnable code.
- Ask only minimum blocking questions; otherwise proceed with explicit assumptions stated up front.
- When reviewing PRs, use the architecture-specific checklist and call out specific violations with line-level fixes.
Ratings
4.6★★★★★38 reviews- ★★★★★Pratham Ware· Dec 16, 2024
Solid pick for teams standardizing on skills: swift-architecture-skill is focused, and the summary matches what you get after install.
- ★★★★★Zaid Smith· Dec 12, 2024
We added swift-architecture-skill from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Zaid Haddad· Dec 8, 2024
swift-architecture-skill is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★William Mehta· Dec 8, 2024
swift-architecture-skill reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Noor Verma· Dec 4, 2024
Keeps context tight: swift-architecture-skill is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Noor Martin· Nov 27, 2024
I recommend swift-architecture-skill for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Yash Thakker· Nov 7, 2024
We added swift-architecture-skill from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Olivia Flores· Nov 3, 2024
Solid pick for teams standardizing on skills: swift-architecture-skill is focused, and the summary matches what you get after install.
- ★★★★★Dhruvi Jain· Oct 26, 2024
swift-architecture-skill fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kwame Li· Oct 22, 2024
swift-architecture-skill has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 38