Agent Skills: Preferences Store Expert

Work with Leavn PreferencesStore - SwiftData persistence, snapshot patterns, async observation, entity relationships, migration from UserDefaults

UncategorizedID: willsigmon/sigstack/preferences-store-expert

Install this agent skill to your local

pnpm dlx add-skill https://github.com/willsigmon/sigstack/tree/HEAD/plugins/app-dev/skills/preferences-store-expert

Skill Files

Browse the full folder contents for preferences-store-expert.

Download Skill

Loading file tree…

plugins/app-dev/skills/preferences-store-expert/SKILL.md

Skill Metadata

Name
Preferences Store Expert
Description
Work with Leavn PreferencesStore - SwiftData persistence, snapshot patterns, async observation, entity relationships, migration from UserDefaults

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() → snapshot
  • updateX { } → mutation
  • observeSnapshots() → AsyncStream

Use when: Preferences issues, settings persistence, SwiftData, user data