AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Sqlite Data

skill-johnrogers-claude-swift-engineering-sqlite-data · by johnrogers

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

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-johnrogers-claude-swift-engineering-sqlite-data

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-johnrogers-claude-swift-engineering-sqlite-data)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Sqlite Data? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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.

| Reference | Load When | |-----------|-----------| | [Table Models](references/models.md) | Defining tables with @Table, setting up primary keys, columns, or enums | | [Queries - Basics](references/queries-basics.md) | Using @FetchAll, @FetchOne, @Selection, filtering, ordering, or joins | | [Queries - Advanced](references/queries-advanced.md) | Using @Fetch with FetchKeyRequest, dynamic queries, recursive CTEs, or direct reads | | [Writes](references/writes.md) | Inserting, updating, upserting, deleting records, or managing transactions | | [Views - SwiftUI](references/views-swiftui.md) | Using @FetchAll/@FetchOne in SwiftUI views, @Observable models, or animations | | [Views - Integration](references/views-integration.md) | UIKit integration, dynamic query loading, TCA integration, or observe {} | | [Migrations](references/migrations.md) | Creating database migrations with DatabaseMigrator or #sql() macro | | [CloudKit Sync](references/cloudkit.md) | Setting up CloudKit private database sync, sharing, or sync delegates | | [Dependencies](references/dependencies.md) | Injecting database/sync engine via @Dependency, bootstrap patterns, or TCA integration | | [Testing](references/testing.md) | Setting up test databases, seeding data, or writing assertions for SQLite code | | [Advanced - Queries](references/advanced-queries.md) | Implementing triggers, custom database functions, or full-text search (FTS5) | | [Advanced - Optimization](references/advanced-optimization.md) | Performance tuning, indexes, custom aggregates, JSON aggregation, or self-joins | | [Schema Composition](references/schema-composition.md) | Using @Selection column groups, single-table inheritance, or database views |

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.
  1. Missing migrations on schema changes — Modifying @Table without creating a migration causes crashes at runtime. Always create migrations for schema changes before deploying.
  1. Improper transaction handling — Long-running transactions outside of database.write { } block can cause deadlocks or data loss. Keep write blocks short and focused.
  1. 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.
  1. 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.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.