axiom-grdb

axiom-grdb is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 52 tokens per session (4,182 once invoked), scanned A, original, MIT.

A guide to GRDB.swift, a Swift toolkit for working directly with SQLite databases. It covers raw SQL, complex joins, database migrations, reactive queries, and query performance.

In plain words
What is it for?
Use it for advanced SQL queries, observing database changes, custom migrations, or performance-sensitive iOS and macOS data storage.
Why use it?
It helps when simpler database abstractions cannot express a query or do not provide enough control over SQLite.

Skill for Claude CodeCodex

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

Good fit Use it for advanced SQL queries, observing database changes, custom migrations, or performance-sensitive iOS and macOS data storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-grdb
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-grdb
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-grdb

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-grdb"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-grdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,182 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00052 $0.04182
Opus 5 $0.00026 $0.02091
Sonnet 5 $0.00010 $0.00836
Haiku 4.5 $0.00005 $0.00418

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

Security

Grade A, and why

axiom-grdb scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/CharlesWiltgen/Axiom/axiom-grdb/SKILL.md · 679 lines

How it starts

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

GRDB

Overview

Direct SQLite access using GRDB.swift — a toolkit for SQLite databases with type-safe queries, migrations, and reactive observation.

Core principle Type-safe Swift wrapper around raw SQL with full SQLite power when you need it.

Requires iOS 13+, Swift 5.7+ License MIT (free and open source)

When to Use GRDB

Use raw GRDB when you need
  • ✅ Complex SQL joins across 4+ tables
  • ✅ Window functions (ROW_NUMBER, RANK, LAG/LEAD)
  • ✅ Reactive queries with ValueObservation
  • ✅ Full control over SQL for performance
  • ✅ Advanced migration logic beyond schema changes

Note: SQLiteData now supports GROUP BY (.group(by:)) and HAVING (.having()) via the query builder — see the axiom-sqlitedata-ref skill.

Use SQLiteData instead when
  • Type-safe @Table models are sufficient
  • CloudKit sync needed
  • Prefer declarative queries over SQL
Use SwiftData when
  • Simple CRUD with native Apple integration
  • Don't need raw SQL control

For migrations See the axiom-database-migration skill for safe schema evolution patterns.

Example Prompts

These are real questions developers ask that this skill is designed to answer:

1. "I need to query messages with their authors and count of reactions in one query. How do I write the JOIN?"

→ The skill shows complex JOIN queries with multiple tables and aggregations

2. "I want to observe a filtered list and update the UI whenever notes with a specific tag change."

→ The skill covers ValueObservation patterns for reactive query updates

3. "I'm importing thousands of chat records and need custom migration logic. How do I use DatabaseMigrator?"

→ The skill explains migration registration, data transforms, and safe rollback patterns

4. "My query is slow (takes 10+ seconds). How do I profile and optimize it?"

→ The skill covers EXPLAIN QUERY PLAN, database.trace for profiling, and index creation

5. "I need to fetch tasks grouped by due date with completion counts, ordered by priority. Raw SQL seems easier than type-safe queries."

→ The skill demonstrates when GRDB's raw SQL is clearer than type-safe wrappers

Read the full file on GitHub · 679 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 · 679 lines · 52 tokens per session scan A 0a3c0c182af9

Subscribe to this mod's changes

axiom-grdb is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 52 tokens to every session and 4,182 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.