Agent skill
Preferences Store Expert
Work with Leavn PreferencesStore - SwiftData persistence, snapshot patterns, async observation, entity relationships, migration from UserDefaults
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/preferences-store-expert
SKILL.md
Preferences Store Expert
Expert in PreferencesStore architecture:
Pattern:
- Entities in SwiftData
- Snapshots (Sendable, Codable)
- Async observation
- Single source of truth
Key files:
- PreferencesStore.swift
- PreferenceModels.swift
- PreferencesStore+{Domain}.swift extensions
Operations:
loadX()→ snapshotupdateX { }→ mutationobserveSnapshots()→ AsyncStream
Use when: Preferences issues, settings persistence, SwiftData, user data
Didn't find tool you were looking for?