This is a practical pattern for local data persistence in Swift 5.5+ that uses actors instead of manual locks or DispatchQueues. You get an in-memory dictionary cache backed by JSON file storage, with compile-time guarantees against data races. The generic repository works with any Codable and Identifiable type, giving you O(1) lookups and atomic file writes. It's most useful for offline-first apps or anywhere you need thread-safe access to shared state without the ceremony of traditional synchronization primitives. The synchronous init load is a reasonable tradeoff that avoids async initialization complexity for local files.
npx -y skills add affaan-m/everything-claude-code --skill swift-actor-persistence --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
sickn33/antigravity-awesome-skills
wshobson/agents
kotlin/kotlin-agent-skills