SQLite Database Expert

SQLite Database Expert is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 33 tokens per session (3,629 once invoked), scanned A, original, Unlicense.

Guidance for using SQLite, a small database stored inside an application, especially desktop or Tauri applications. It covers safe queries, database changes over time, search, and handling stored data.

In plain words
What is it for?
Use it when building SQLite tables and queries, adding migrations or full-text search, configuring advanced database behavior, or storing user data safely.
Why use it?
It helps avoid common problems such as SQL injection, unsafe data handling, failed database upgrades, and poorly designed searches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add skills/martinholovsky/claude-skills-generator/sqlite
Any agent
npx skills add martinholovsky/claude-skills-generator --skill sqlite
Clone the repo
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator

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 SQLite Database Expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/sqlite.svg)](https://agentmods.dev/skills/martinholovsky/claude-skills-generator/sqlite)
Your own site
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/sqlite"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/sqlite.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,629 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00033 $0.03629
Opus 5 $0.00016 $0.01814
Sonnet 5 $0.00007 $0.00726
Haiku 4.5 $0.00003 $0.00363

Measured 6d ago against content hash 1ca5d059e0cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

SQLite Database Expert 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/sqlite/SKILL.md · 499 lines

How it starts

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

SQLite Database Expert

0. Mandatory Reading Protocol

CRITICAL: Before implementing ANY database operation, you MUST read the relevant reference files:

Trigger Conditions for Reference Files

Read references/advanced-patterns.md WHEN:

  • Implementing database migrations
  • Setting up Full-Text Search (FTS5)
  • Designing complex queries with CTEs or window functions
  • Implementing connection pooling or WAL mode
  • Performance optimization tasks

Read references/security-examples.md WHEN:

  • Writing ANY SQL query with user input
  • Implementing parameterized queries
  • Setting up database encryption considerations
  • Handling sensitive data storage
  • Implementing input validation for database operations

1. Overview

Risk Level: MEDIUM

Justification: SQLite databases in desktop applications handle user data locally, present SQL injection risks if queries aren't properly parameterized, and require careful migration management to prevent data loss.

You are an expert in SQLite embedded database development, specializing in:

  • Secure SQL patterns with parameterized queries to prevent SQL injection
  • Database migrations with version control and rollback capabilities
  • Full-Text Search (FTS5) for efficient text searching
  • Performance optimization including indexing, WAL mode, and connection management
  • Rust/Tauri integration using rusqlite and sea-query

Core Principles

  1. TDD First - Write tests before implementation; use in-memory SQLite for fast test execution
  2. Performance Aware - Optimize with WAL mode, prepared statements, batch operations, and proper indexing
  3. Security First - Always use parameterized queries; never concatenate user input
  4. Transaction Safety - Wrap related operations in transactions for atomicity
  5. Migration Discipline - Version all schema changes with rollback capability

Primary Use Cases

  • Local data persistence for desktop applications
  • Offline-first application data storage
  • Full-text search implementation
  • Configuration and settings storage
  • Cache and temporary data management

Read the full file on GitHub · 499 lines

Files

What ships with it

2 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. 6d ago First seen · 499 lines · 33 tokens per session scan A 1ca5d059e0cc

Subscribe to this mod's changes

SQLite Database Expert is a skill published in the GitHub repository martinholovsky/claude-skills-generator (45 stars, last pushed 9mo ago), licensed Unlicense. It adds 33 tokens to every session and 3,629 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

sqlite-database-expert

Expert in SQLite embedded database development for Tauri/desktop applications with focus on SQL injection prevention, migrations, FTS search, and secure data handling.

susomejias/rembric · 35 tokens

SQLite Database Expert

Expert in SQLite embedded database development for Tauri/desktop applications with focus on SQL injection prevention, migrations, FTS search, and secure data handling.

anasaltomy/naseej-desktop · 33 tokens

Database Patterns

Use this skill when designing schemas, writing queries, or shipping migrations—especially when correctness and safety matter more than clever SQL.

AmariahAK/atlarix-skills · 2 tokens

drizzle-orm

Drizzle ORM — TypeScript SQL ORM. Schema definition, queries, migrations, transactions, RQB, extensions.

pledgeandgrow/pledge-skills · 28 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens

drizzle-orm

Use when modeling data or querying with Drizzle ORM in TypeScript — pgTable schema in .ts, type-safe select/insert/relational queries, drizzle-kit migrations. NOT Prisma Client or schema.prisma (that is prisma-orm), NOT ORM-agnostic migration strategy (that is db-migrations), NOT Postgres engine tuning or EXPLAIN…

ericrisco/rsc-harness · 96 tokens