axiom-sqlitedata-migration

axiom-sqlitedata-migration is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 42 tokens per session (2,019 once invoked), scanned A, original, MIT.

A migration guide for moving from SwiftData to SQLiteData, two systems for storing structured app data. It compares their patterns and explains when the change may be appropriate.

In plain words
What is it for?
Use it to plan or carry out a gradual SwiftData-to-SQLiteData migration and translate models, queries, synchronisation, and tests.
Why use it?
It helps teams handle performance, complex queries, CloudKit sharing, concurrency, and testing concerns during a database migration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to plan or carry out a gradual SwiftData-to-SQLiteData migration and translate models, queries, synchronisation, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-sqlitedata-migration
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 ComeOnOliver/skillshub --skill axiom-sqlitedata-migration
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

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 axiom-sqlitedata-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-sqlitedata-migration/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-sqlitedata-migration)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-sqlitedata-migration"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-sqlitedata-migration/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 axiom-sqlitedata-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-sqlitedata-migration"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-sqlitedata-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,019 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 original 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.00042 $0.02019
Opus 5 $0.00021 $0.01009
Sonnet 5 $0.00008 $0.00404
Haiku 4.5 $0.00004 $0.00202

Measured 9d ago against content hash 183ef0fc58bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-sqlitedata-migration 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 9d ago.

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 existingTasks = try modelContext.fetch(descriptor)
skills/CharlesWiltgen/Axiom/axiom-sqlitedata-migration/SKILL.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrating from SwiftData to SQLiteData

When to Switch

┌─────────────────────────────────────────────────────────┐
│ Should I switch from SwiftData to SQLiteData?           │
├─────────────────────────────────────────────────────────┤
│                                                         │
│  Performance problems with 10k+ records?                │
│    YES → SQLiteData (10-50x faster for large datasets)  │
│                                                         │
│  Need CloudKit record SHARING (not just sync)?          │
│    YES → SQLiteData (SwiftData cannot share records)    │
│                                                         │
│  Complex queries across multiple tables?                │
│    YES → SQLiteData + raw GRDB when needed              │
│                                                         │
│  Need Sendable models for Swift 6 concurrency?          │
│    YES → SQLiteData (value types, not classes)          │
│                                                         │
│  Testing @Model classes is painful?                     │
│    YES → SQLiteData (pure structs, easy to mock)        │
│                                                         │
│  Happy with SwiftData for simple CRUD?                  │
│    YES → Stay with SwiftData (simpler for basic apps)   │
│                                                         │
└─────────────────────────────────────────────────────────┘

Pattern Equivalents

SwiftData SQLiteData
@Model class Item @Table nonisolated struct Item
@Attribute(.unique) @Column(primaryKey: true) or SQL UNIQUE
@Relationship var tags: [Tag] var tagIDs: [Tag.ID] + join query
@Query var items: [Item] @FetchAll var items: [Item]
@Query(sort: \.title) @FetchAll(Item.order(by: \.title))
@Query(filter: #Predicate { $0.isActive }) @FetchAll(Item.where(\.isActive))
@Environment(\.modelContext) @Dependency(\.defaultDatabase)
context.insert(item) Item.insert { Item.Draft(...) }.execute(db)
context.delete(item) Item.find(id).delete().execute(db)
try context.save() Automatic in database.write { } block
ModelContainer(for:) prepareDependencies { $0.defaultDatabase = }

Read the full file on GitHub · 294 lines

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. 9d ago First seen · 294 lines · 42 tokens per session scan A 183ef0fc58bb

Subscribe to this mod's changes

axiom-sqlitedata-migration is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 2,019 once invoked, about $0.0002 per session on Opus 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-09-03.