A skill your agent uses when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync.

MITAuto-check passedDatabases

Install Sqlite Data

skills CLI
$ npx skills add johnrogers/claude-swift-engineering --skill sqlite-data -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install johnrogers/claude-swift-engineering sqlite-data --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/johnrogers/claude-swift-engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/swift-engineering/skills/sqlite-data .claude/skills/sqlite-data && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sqlite-data
GitHub stars
231
Token cost
~924 tokens
SKILL.md length
375 words
Files
14 (incl. references)
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync.

  • Works in 5 steps: Define table models with @Table macro → Use @FetchAll/@FetchOne property… → Access database via… → …
  • Working with SQLiteData library (@Table
  • SKILL.md covers Reference Loading Guide, Core Workflow and Common Mistakes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Sqlite Data is an agent skill from johnrogers/claude-swift-engineering. Use when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync.

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `references/advanced-optimization.md`, `references/advanced-queries.md` and `references/cloudkit.md`).

It sits in Databases, covering iOS development. It works with SQLite and SwiftUI. The repository describes itself as: A collection of agents and skills to aid in the planning, implementation, documentation and testing of Swift/TCA code. The licence is MIT.

When your agent uses it

  • Working with SQLiteData library (@Table
  • @FetchOne macros) for SQLite persistence
  • CloudKit private database sync

Example prompts

  • “/sqlite-data”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Define table models with @Table macro
  2. Use @FetchAll/@FetchOne property wrappers in views or @Observable models
  3. Access database via @Dependency(.defaultDatabase)
  4. Perform writes in database.write { } transactions
  5. Set up migrations before first use

What it can do on your machine

Read from SKILL.md and the folder at commit 1dc2cf4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sqlite Data loads about 924 tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 45 tokens; SKILL.md has 375 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~924
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from johnrogers/claude-swift-engineering at commit 1dc2cf4, republished under its MIT licence (© johnrogers). 375 words, ~924 tokens.

Download SKILL.mdSave it as .claude/skills/sqlite-data/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
sqlite-data
description
Use when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync.

SQLite Data

SQLiteData provides type-safe SQLite access through Swift macros, simplifying database modeling and queries while handling CloudKit sync, migrations, and async patterns automatically.

Reference Loading Guide

ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.

ReferenceLoad When
Table ModelsDefining tables with @Table, setting up primary keys, columns, or enums
Queries - BasicsUsing @FetchAll, @FetchOne, @Selection, filtering, ordering, or joins
Queries - AdvancedUsing @Fetch with FetchKeyRequest, dynamic queries, recursive CTEs, or direct reads
WritesInserting, updating, upserting, deleting records, or managing transactions
Views - SwiftUIUsing @FetchAll/@FetchOne in SwiftUI views, @Observable models, or animations
Views - IntegrationUIKit integration, dynamic query loading, TCA integration, or observe {}
MigrationsCreating database migrations with DatabaseMigrator or #sql() macro
CloudKit SyncSetting up CloudKit private database sync, sharing, or sync delegates
DependenciesInjecting database/sync engine via @Dependency, bootstrap patterns, or TCA integration
TestingSetting up test databases, seeding data, or writing assertions for SQLite code
Advanced - QueriesImplementing triggers, custom database functions, or full-text search (FTS5)
Advanced - OptimizationPerformance tuning, indexes, custom aggregates, JSON aggregation, or self-joins
Schema CompositionUsing @Selection column groups, single-table inheritance, or database views
Show full SKILL.md (169 more words)Show less

Core Workflow

When working with SQLiteData:

  1. Define table models with @Table macro
  2. Use @FetchAll/@FetchOne property wrappers in views or @Observable models
  3. Access database via @Dependency(\.defaultDatabase)
  4. Perform writes in database.write { } transactions
  5. Set up migrations before first use

Common Mistakes

  1. N+1 query patterns — Loading records one-by-one in a loop (e.g., fetching user then fetching all their posts separately) kills performance. Use joins or batch fetches instead.

  2. Missing migrations on schema changes — Modifying @Table without creating a migration causes crashes at runtime. Always create migrations for schema changes before deploying.

  3. Improper transaction handling — Long-running transactions outside of database.write { } block can cause deadlocks or data loss. Keep write blocks short and focused.

  4. Ignoring CloudKit sync delegates — Setting up CloudKit sync without implementing SyncDelegate means you miss error handling and conflict resolution. Implement all delegate methods for production.

  5. Over-fetching in SwiftUI views — Using @FetchAll without filtering/limiting can load thousands of records, freezing the UI. Use predicates, limits, and sorting to keep in-memory footprint small.

© johnrogers, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (references) in plugins/swift-engineering/skills/sqlite-data of johnrogers/claude-swift-engineering.

  • SKILL.md
  • references/advanced-optimization.md
  • references/advanced-queries.md
  • references/cloudkit.md
  • references/dependencies.md
  • references/migrations.md
  • references/models.md
  • references/queries-advanced.md
  • references/queries-basics.md
  • references/schema-composition.md
  • references/testing.md
  • references/views-integration.md
  • references/views-swiftui.md
  • references/writes.md

Open the folder on GitHubat commit 1dc2cf4

Compare with similar skills

Sqlite Data next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sqlite Data compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sqlite Data this skilljohnrogers/claude-swift-engineering231—~924Automated safety check: PassMIT
Swiftdata ArchitectureKartikLabhshetwar/better-shot2.4k2 repos~1.2kAutomated safety check: PassCustom licence
Init Tauri Appglebis/claude-skills390—~1.5kAutomated safety check: PassMIT
Swiftui Protwostraws/SwiftUI-Agent-Skill5.2k2 repos~1.5kAutomated safety check: PassMIT
Update Swiftui APIsAvdLee/SwiftUI-Agent-Skill3.7k—~1.2kAutomated safety check: PassMIT
Swiftui Liquid Glassharperreed/dotfiles3348 repos~941Automated safety check: PassNone

Similar skills

  • Swiftdata Architecture

    KartikLabhshetwar/better-shot

    Deep dive into SwiftData design patterns and best practices.

    2.4k GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Init Tauri App

    glebis/claude-skills

    Scaffold a new Tauri v2 project with the cenno/cull house conventions — delegates boilerplate to npm create tauri-app, then layers an opinionated core plus opt-in modules (CLI+MCP, SQLite…

    390 GitHub stars~1.5k tokensUpdated yesterday
    MobileAuto-check passed
  • Swiftui Pro

    twostraws/SwiftUI-Agent-Skill

    Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.

    5.2k GitHub starsUsed in 2 repos~1.5k tokens
    MobileAuto-check passed
  • Update Swiftui APIs

    AvdLee/SwiftUI-Agent-Skill

    Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.

    3.7k GitHub stars~1.2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Swiftui Liquid Glass

    harperreed/dotfiles

    Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API.

    334 GitHub starsUsed in 8 repos~941 tokens
    MobileAuto-check passed
  • Swiftui Expert Skill

    omarshahine/HomeClaw

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management, view composition, performance, Liquid Glass adoption, or Instruments .trace…

    175 GitHub starsUsed in 4 repos~2.8k tokens
    MobileAuto-check passed

More from johnrogers/claude-swift-engineering

All 17 skills in this repo
  • Localization

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing internationalization (i18n), String Catalogs, pluralization, or right-to-left layout support.

    231 GitHub stars~749 tokensUpdated 8 mo ago
    Auto-check passed
  • Storekit

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing in-app purchases, StoreKit 2 subscriptions, consumables, non-consumables, or transaction handling.

    231 GitHub stars~799 tokensUpdated 8 mo ago
    Auto-check passed
  • Swift Style

    johnrogers/claude-swift-engineering

    Swift code style conventions for clean, readable code. An agent skill from johnrogers/claude-swift-engineering.

    231 GitHub stars~828 tokensUpdated 8 mo ago
    Auto-check passed
  • Composable Architecture

    johnrogers/claude-swift-engineering

    A skill your agent uses when building features with TCA (The Composable Architecture), structuring reducers, managing state, handling effects, navigation, or testing TCA features.

    231 GitHub stars~982 tokensUpdated 8 mo ago
    Auto-check passed
  • Foundation Models

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing on-device AI with Apple's Foundation Models framework (iOS 26+), building summarization/extraction/classification features, or using @Generable for…

    231 GitHub stars~869 tokensUpdated 8 mo ago
    Auto-check passed
  • Grdb

    johnrogers/claude-swift-engineering

    A skill your agent uses when writing raw SQL with GRDB, complex joins across 4+ tables, window functions, ValueObservation for reactive queries, or dropping down from SQLiteData for performance.

    231 GitHub stars~719 tokensUpdated 8 mo ago
    Auto-check passed

Works with

Categories

Questions about Sqlite Data

What does Sqlite Data do?

A skill your agent uses when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync. Sqlite Data is an agent skill from johnrogers/claude-swift-engineering. Use when working with SQLiteData library (@Table, @FetchAll, @FetchOne macros) for SQLite persistence, queries, writes, migrations, or CloudKit private database sync.

When should I use Sqlite Data?

Sqlite Data fits situations like: working with SQLiteData library (@Table; @FetchOne macros) for SQLite persistence; cloudKit private database sync.

How do I install Sqlite Data in Claude Code?

Run `npx skills add johnrogers/claude-swift-engineering --skill sqlite-data -a claude-code`. Or copy the skill folder (plugins/swift-engineering/skills/sqlite-data in johnrogers/claude-swift-engineering) into .claude/skills/sqlite-data in your project. Claude Code loads it when a task matches its description.

How do I install Sqlite Data in Codex?

Run `npx skills add johnrogers/claude-swift-engineering --skill sqlite-data -a codex`. Or copy the skill folder (plugins/swift-engineering/skills/sqlite-data in johnrogers/claude-swift-engineering) into .agents/skills/sqlite-data in your project. Codex loads it when a task matches its description.

Can I use Sqlite Data in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add johnrogers/claude-swift-engineering --skill sqlite-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sqlite-data, .gemini/skills/sqlite-data, .github/skills/sqlite-data and .opencode/skills/sqlite-data in your project.

What does Sqlite Data need to run?

SKILL.md names no scripts, command-line tools or credentials: Sqlite Data is instructions for the agent only.

Does Sqlite Data access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sqlite Data safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sqlite Data use?

Sqlite Data is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sqlite Data use?

About 924 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Sqlite Data?

Skills that share tags, products or a category with Sqlite Data: Swiftdata Architecture (KartikLabhshetwar/better-shot, 2.4k stars), Init Tauri App (glebis/claude-skills, 390 stars), Swiftui Pro (twostraws/SwiftUI-Agent-Skill, 5.2k stars) and Update Swiftui APIs (AvdLee/SwiftUI-Agent-Skill, 3.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sqlite Data?

johnrogers (a GitHub user) maintains it in johnrogers/claude-swift-engineering, which has 231 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on January 18, 2026.

Source: johnrogers/claude-swift-engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.