
Description
swift-actor-persistence is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out patterns for a thread-safe data persistence layer in Swift built on actors. The approach combines an in-memory cache with file-backed storage, and the actor model serialises access to the shared state so that data races are ruled out by the compiler, without manual locks or dispatch queues. The main pattern is an actor-based repository. The skill applies when building a persistence layer in Swift 5.5 or later, when code needs safe access to shared mutable state, when a team wants to drop hand-written synchronisation, and when building offline-first apps that store data locally. Because it is a SKILL.md file of instructions, an AI coding agent loads it for those tasks and writes the repository in the same form each time. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Actor-based repository pattern
- In-memory cache with file storage
- Compiler-enforced data race safety
- Offline-first local storage
Ratings & Reviews
No ratings yet
Be the first to rate swift-actor-persistence.
People also visit
swift-actor-persistence FAQ
What does the swift-actor-persistence skill do?
It guides an agent in building a thread-safe Swift storage layer with an actor-based repository, an in-memory cache and file-backed storage.
Which Swift version does it need?
Swift 5.5 or later, according to the listing.
Does it still use locks?
No. The skill uses the actor model in place of manual locks and dispatch queues.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill swift-actor-persistence
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best swift-actor-persistence alternatives?
Popular alternatives to swift-actor-persistence include swift-concurrency-6-2, foundation-models-on-device and rust-patterns. See all swift-actor-persistence alternatives









