ios-persistence
БесплатноБез исполняемых скриптовНе проверенImplement local persistence with SwiftData, Core Data, and secure storage. Use when setting up SwiftData models, Core Data stacks, or local persistence in iOS.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
iOS Persistence
Priority: P0 (CRITICAL)
Implementation Workflow
- Choose storage tier — SwiftData for iOS 17+, Core Data for legacy, Apple secure credential storage for secrets, UserDefaults for flags only.
- Define models — Use
@Modelmacro (SwiftData) or.xcdatamodeld(Core Data). - Configure container — Use
@MainActorforModelContainer(SwiftData) orNSPersistentContainer(Core Data). - Perform background writes — Use
newBackgroundContext()(Core Data) to avoid UI lag; never heavy I/O onviewContext. - Secure sensitive data — Use secure storage for tokens and PII; never store in
UserDefaults.
See SwiftData and Core Data implementation examples
Anti-Patterns
- No Heavy I/O on
viewContext: Use private background contexts - No String-based Predicates: Use KeyPaths or generated helpers
- No Missing Merge Strategy: Set the merge policy (
mergePolicy) explicitly (e.g.,mergeByPropertyObjectTrump)
References
Установить ios-persistence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ios-persistence?
Implement local persistence with SwiftData, Core Data, and secure storage. Use when setting up SwiftData models, Core Data stacks, or local persistence in iOS.
Как установить скилл ios-persistence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-persistence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic