swiftdata-architecture

swiftdata-architecture is a skill for Claude Code from damacus/agent-skills. It costs 41 tokens per session (1,048 once invoked), scanned A, original, no licence file.

A guide to SwiftData, Apple's framework for storing and querying app data. It covers data model design, queries, repository structure, and performance.

In plain words
What is it for?
Use it when designing SwiftData models, writing queries, structuring data access, or improving database performance in an app.
Why use it?
It helps developers choose a suitable way to organise stored data and avoid slow or difficult-to-maintain SwiftData code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when designing SwiftData models, writing queries, structuring data access, or improving database performance in an app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/damacus/agent-skills/swiftdata-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add damacus/agent-skills --skill swiftdata-architecture
Clone the repo
git clone --depth 1 https://github.com/damacus/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swiftdata-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/damacus/agent-skills/swiftdata-architecture/github.svg)](https://agentmods.dev/skills/damacus/agent-skills/swiftdata-architecture)
Your own site
<a href="https://agentmods.dev/skills/damacus/agent-skills/swiftdata-architecture"><img src="https://agentmods.dev/badge/skills/damacus/agent-skills/swiftdata-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swiftdata-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/damacus/agent-skills/swiftdata-architecture"><img src="https://agentmods.dev/badge/skills/damacus/agent-skills/swiftdata-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,048 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01048
Opus 5.5 $0.00016 $0.00419
Sonnet 5.5 $0.00008 $0.00210
Haiku 4.5 $0.00004 $0.00105

Measured today against content hash e08d29df49eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swiftdata-architecture scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

let allDocs = try modelContext.fetch(descriptor)
skills/macos-development/swiftdata-architecture/SKILL.md · 146 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 146 lines · 41 tokens per session scan A e08d29df49eb

Subscribe to this mod's changes

swiftdata-architecture is a skill published in the GitHub repository damacus/agent-skills (2 stars, last pushed today), with no licence file. It adds 41 tokens to every session and 1,048 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

Other skills, from other repositories

kotlin-exposed-patterns

JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.

hashgraph-online/awesome-codex-plugins · 36 tokens

guide-swiftdata

SwiftData patterns — autosave, relationships, dangerous predicates, CloudKit constraints, indexing, class inheritance. Use when writing, reviewing, or debugging SwiftData code.

Prisma-Labs-Dev/apple-skills · 38 tokens

cratis-arc-spring-data-kotlin

Use when wiring Spring Data JPA or MongoDB persistence, current-state injection or storage-backed observations in JVM Arc. Not for Chronicle projections, C# EF Core or query transport alone.

Cratis/AI · 47 tokens

bmob-database-swift

Use when implementing Bmob NoSQL database CRUD or realtime data listening with the pure Swift BmobSwiftSDK for iOS 15+ / macOS 12+ using Swift Package Manager or CocoaPods, import BmobSDK, async/await, Bmob.initialize(appKey:), BmobObject, BmobQuery, BmobUser, BmobFile, BmobPointer, BmobRelation, BmobGeoPoint…

bmob/agent-skills · 212 tokens

jpa-spring-data-kotlin-mapper

Model Kotlin persistence code correctly for Spring Data JPA and Hibernate, including entity design, relationships, fetch plans, repository queries, lazy loading, and common performance traps. Use when creating or reviewing entities and repositories, diagnosing N+1 or LazyInitializationException, placing indexes and…

JetBrains/skills · 91 tokens

kotlin-backend-jpa-entity-mapping

Model Kotlin persistence code correctly for Spring Data JPA and Hibernate. Covers entity design, identity and equality, uniqueness constraints, relationships, fetch plans, and common ORM (Object-Relational Mapping) traps specific to Kotlin. Use when creating or reviewing JPA (Java Persistence API) entities, diagnosing…

JetBrains/skills · 104 tokens