swift-actor-persistence

swift actor persistence

affaan-m 232k ↓ 5.1k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • 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

Requirements & configuration

  • Need thread-safe access to shared mutable state

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

swift actor persistence

Source

Repository: https://github.com/affaan-m/everything-claude-code

swift-actor-persistence FAQ

What does the swift-actor-persistence skill do?

Thread-safe data persistence in Swift using actors — in-memory cache with file-backed storage, eliminating data races by design. Building a data persistence layer in Swift 5.5+ Need thread-safe access to shared mutable state

What does swift-actor-persistence require?

Need thread-safe access to shared mutable state

How do I install swift-actor-persistence?

Run: npx -y skills add https://github.com/affaan-m/everything-claude-code --skill swift-actor-persistence --agent claude-code — the source lives at github.com/affaan-m/everything-claude-code.

Maintain swift-actor-persistence?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

swift-actor-persistence on getagentictools
[![swift-actor-persistence on getagentictools](https://getagentictools.com/badge/skills/affaan-m-everything-claude-code-swift-actor-persistence.svg)](https://getagentictools.com/skills/affaan-m-everything-claude-code-swift-actor-persistence?ref=badge)
npx agentictools info skills/affaan-m-everything-claude-code-swift-actor-persistence

The second line is the CLI lookup for this page — handy in READMEs and docs.