swift-actor-persistence

Installation
SKILL.md

Swift Actors for Thread-Safe Persistence

Lifecycle Position

Phase 3 (Implement). Load when building local data storage, offline-first patterns, or caching layers. Related: swift-concurrency for general actor patterns, swift-networking for server sync.

When to Use

  • Building a local data persistence layer
  • Need thread-safe access to shared mutable state with disk backing
  • Want compile-time data race elimination (no manual locks or queues)
  • Building offline-first apps with local storage
  • Replacing legacy DispatchQueue-based file managers

Core Pattern: Actor-Based Repository

The actor model guarantees serialized access — no data races, enforced by the compiler.

Installs
4
GitHub Stars
1
First Seen
Mar 14, 2026
swift-actor-persistence — kmshdev/claude-swift-toolkit