Skip to main content
Back to registry

swift-actor-persistence

affaan-m/everything-claude-code

Patterns for building thread-safe data persistence layers using Swift actors. Combines in-memory caching with file-backed storage, leveraging the actor model to eliminate data races at compile time.

Installs580
Install command
npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-actor-persistence
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Patterns for building thread-safe data persistence layers using Swift actors. Combines in-memory caching with file-backed storage, leveraging the actor model to eliminate data races at compile time. The actor model guarantees serialized access — no data races, enforced by the compiler. All calls are automatically async due to actor isolation: - Building a data persistence layer in Swift 5.5+ - Need thread-safe access to shared mutable state - Want to eliminate manual synchronization (locks, DispatchQueues) - Building offline-first apps with local storage - Use Sendable types for all data crossing actor boundaries - Keep the actor's public API minimal — only expose domain operations, not persistence details - Use .atomic writes to prevent data corruption if the app crashes mid-write - Load synchronously in init — async initializers add complexity with minimal benefit for local files - Combine with @Observable ViewModels for reactive UI updates - Using DispatchQueue or NSLock instead of actors for new Swift concurrency code - Exposing the internal cache dictionary to external callers - Making the file URL configurable without validation - Forgetting that all actor method calls are await — callers must handle async context - Using nonisolated to bypass actor isolation (defeats the purpose) - Local data storage in iOS/macOS apps (user data, settings, cached content) -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does swift-actor-persistence do?

Patterns for building thread-safe data persistence layers using Swift actors. Combines in-memory caching with file-backed storage, leveraging the actor model to eliminate data races at compile time.

Is swift-actor-persistence good?

swift-actor-persistence does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does swift-actor-persistence work with?

swift-actor-persistence currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, github-copilot.

What are alternatives to swift-actor-persistence?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install swift-actor-persistence?

npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-actor-persistence

Related skills

More from affaan-m/everything-claude-code

Related skills

Alternatives in Software Engineering