ios-architecture
БесплатноБез исполняемых скриптовНе проверенApply MVVM, Coordinators, and Clean Architecture (VIP/VIPER) in iOS apps. Use when applying MVVM, Coordinators, or VIP/VIPER architecture in iOS apps.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
iOS Architecture Standards
Priority: P0 (CRITICAL)
Implementation Guidelines
MVVM (Model-View-ViewModel)
- ViewModel Responsibility: Handle business logic, formatting, and state. No UIKit imports (except for platform types like
UIImageif strictly necessary). - ViewState: Use single state object or discrete
@Publishedproperties for UI updates. Expose state asprivate(set)or using publishers. - Inputs/Outputs: Define explicit protocols or nested types for inputs (events from View) and outputs (state for View).
Coordinator Pattern
- Navigation Logic: Decouple ViewControllers from navigation logic. Coordinator handles instantiation and push/present. ** NOT use
navigationControllerdirectly in ViewController for screen transitions.** - Dependency Injection: Pass dependencies (Services, Repositories) through Coordinator into ViewModels.
- Child Coordinators: Maintain hierarchy; correctly remove child coordinators from parent's collection when their flow finished.
Clean Architecture (VIP/VIPER)
- VIP (Clean Swift): Use Interactor for logic, Presenter for UI formatting, and ViewController for display.
- Unidirectional Flow: Data flows: View -> Interactor -> Presenter -> View.
- VIPER: (View, Interactor, Presenter, Entity, Router) — another common architectural pattern for iOS apps.
Anti-Patterns
- No Logic in VC: Move business logic to ViewModel/Interactor.
- No Public ViewModel State: Keep state private(set) or using publishers.
- No Direct Navigation: Use Coordinator for screen transitions. Never use
navigationControllerdirectly.
Verification Checklist (Mandatory)
- Pure ViewModel: ViewModel any
UIKitimports? (Prohibited) - Navigation:
navigationControllerused directly in VC for transitions? (Use Coordinator) - State Access: ViewModel state exposed as
public var? (Useprivate(set)or publishers) - Deallocation: child coordinators correctly removed from parent's collection on finish?
- VIP Unidirection: data flow unidirectional (View -> Interactor -> Presenter -> View)?
References
Установить ios-architecture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ios-architecture?
Apply MVVM, Coordinators, and Clean Architecture (VIP/VIPER) in iOS apps. Use when applying MVVM, Coordinators, or VIP/VIPER architecture in iOS apps.
Как установить скилл ios-architecture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-architecture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic