ios-state-management
БесплатноБез исполняемых скриптовНе проверенImplement reactive state with Combine, Observation framework, and UDF patterns. Use when implementing state management with Combine, @Observable, or reactive…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
iOS State Management
Priority: P0 (CRITICAL)
Implementation Workflow
- Choose observation approach — Use
@Observable(iOS 17+) for modern SwiftUI;Combinewith@Publishedfor UIKit or broader compatibility. - Expose state clearly — Use UDF pattern: ViewModel exposes
Inputenum (events) andOutputstruct (state). - Manage subscriptions — Store Combine subscriptions in
Set<AnyCancellable>with.store(in: &cancellables). - Dispatch to main thread — Use
@MainActoror.receive(on: DispatchQueue.main)for UI updates. - Use exhaustive ViewState — Prefer single
ViewStateenum (.loading,.success(data),.error(failure)).
See Combine and Observation framework examples
Anti-Patterns
- No Uncleared Subscriptions: Always use
.store(in: &cancellables) - No Background UI Updates: Use
.receive(on: .main)or@MainActor - No Manual
objectWillChange.send(): Use@Publishedor@Observableinstead
References
Установить ios-state-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ios-state-management?
Implement reactive state with Combine, Observation framework, and UDF patterns. Use when implementing state management with Combine, @Observable, or reactive patterns in iOS.
Как установить скилл ios-state-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-state-management запускает скрипты?
Нет, скилл состоит только из инструкций (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