ios-persistence
Installation
SKILL.md
iOS Persistence
Emit compile-ready GRDB code. Never produce N+1 queries. Keep all database access in the Data layer.
Load Strategy
Always read references/persistence.md.
Execution Contract
- Domain layer: repository protocol only — no GRDB imports.
- Data layer:
FetchableRecord+PersistableRecordrecords, repository implementation,DatabaseManagerusage. - Migrations are append-only — never modify existing migration identifiers.
- Aggregates must be computed in SQL (
GROUP BY,SUM,COUNT) — never in Swift loops. - Use
ValueObservationfor list views that need live updates. - Validate with a targeted build after changes.
Sister Skills
- ios-architect — app/feature scaffolding, Domain/Data/Presentation layers
- ios-testing — Swift Testing, mock repositories, DI patterns
- ios-platform — networking, navigation, privacy, Foundation Models
Related skills