Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

SwiftData persistence in modular architecture v1.0.0

Use this resource to model and persist data with SwiftData inside a modular architecture

New

  • 364 downloads
  • 166 likes
  • 131 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install swiftdata-persistence-architecture

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies modelling, persistence setup and CRUD rules while keeping SwiftData types inside the Data layer. You get a data access layer that stays testable and decoupled from the interface.

Mostly picked by

Updated November 2, 2026

Card for the “SwiftData persistence in modular architecture” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/crud-save-error-handling.md: save error handling
  • references/model-class-for-persistence.md: model classes for persistence
  • references/crud-undo-cancel.md: cancelling an edit

Good fit for

  • You are adding a local SwiftData store to an iOS app
  • Your edits are lost or saved incorrectly

Not for

    Tags

    • swiftdata
    • ios
    • persistence
    • architecture

    About

    You say

    “Add SwiftData persistence for the app's notes and handle save errors.”

    Card for the “SwiftData persistence in modular architecture” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to model and persist data with SwiftData inside a modular architecture
    3. Review and adjust the result

    Content preview

    Files

    • assets/templates/_template.md0.6 KB
    • LICENSE1.1 KB
    • metadata.json2.8 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md3.2 KB
    • references/crud-cancel-delete.md3.2 KB
    • references/crud-delete-indexset.md3.4 KB
    • references/crud-dismiss-save.md2.9 KB
    • references/crud-edit-button.md2.3 KB
    • references/crud-insert-context.md3.1 KB
    • references/crud-save-error-handling.md3.1 KB
    • references/crud-sheet-creation.md4.1 KB
    • references/crud-undo-cancel.md4 KB
    • references/model-class-for-persistence.md1.3 KB
    • references/model-computed-properties.md1.8 KB
    • references/model-custom-types.md1.7 KB
    • references/model-defaults.md2.3 KB
    • references/model-domain-mapping.md4.2 KB
    • references/model-external-storage.md1.8 KB
    • references/model-identifiable.md1.5 KB
    • references/model-initializer.md1.5 KB
    • references/model-transient.md1.9 KB
    • references/persist-app-group.md2.4 KB
    • references/persist-autosave.md2.1 KB
    • references/persist-container-error-recovery.md3.3 KB
    • references/persist-container-setup.md2.3 KB
    • references/persist-context-environment.md2.8 KB
    • references/persist-enumerate-batch.md2.1 KB
    • references/persist-identifier-transfer.md2 KB
    • references/persist-in-memory-config.md2.1 KB
    • references/persist-model-actor.md2.9 KB
    • references/persist-model-macro.md1.7 KB
    • references/persist-repository-wrapper.md5.5 KB
    • references/preview-in-memory.md1.6 KB
    • references/preview-main-actor.md2.1 KB
    • references/preview-sample-singleton.md2.8 KB
    • references/preview-static-data.md1.9 KB
    • references/query-background-refresh.md3 KB
    • references/query-dynamic-init.md2.3 KB
    • references/query-expression.md1.7 KB
    • references/query-fetch-descriptor.md1.9 KB
    • references/query-fetch-tuning.md2.2 KB
    • references/query-localized-search.md1.4 KB
    • references/query-predicates.md1.8 KB
    • references/query-property-wrapper.md3 KB
    • references/query-sort-descriptors.md1.5 KB
    • references/rel-array-many.md1.4 KB
    • references/rel-delete-rules.md2.1 KB
    • references/rel-explicit-sort.md1.8 KB
    • references/rel-inverse-auto.md1.6 KB
    • references/rel-optional-single.md2 KB
    • references/schema-configuration.md2.9 KB
    • references/schema-define-all-types.md1.7 KB
    • references/schema-index.md2.3 KB
    • references/schema-migration-plan.md3 KB
    • references/schema-migration-recovery.md3.7 KB
    • references/schema-unique-attributes.md2.5 KB
    • references/schema-unique-macro.md2 KB
    • references/state-bindable.md2 KB
    • references/state-business-logic-placement.md2.3 KB
    • references/state-dependency-injection.md4.3 KB
    • references/state-local-state.md2 KB
    • references/state-query-vs-viewmodel.md5.2 KB
    • references/state-wrapper-views.md2.5 KB
    • references/sync-conflict-resolution.md4.6 KB
    • references/sync-fetch-persist.md5.1 KB
    • references/sync-offline-first.md4.2 KB
    • SKILL.md13.9 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/swift-data
    Licence
    MIT

    Notice

    « swift-data » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.