kolea: Skill for Claude Code

.claude/skills/sqlite-dev/SKILL.md

sqlite-dev is a skill for Claude Code from robconery/kolea. It costs 246 tokens per session (2,443 once invoked), scanned A, original, MIT.

A set of rules for using SQLite as the local development database for a TypeScript and Bun application that is expected to use PostgreSQL in production. It covers database names, relationships, constraints, JSON data, and Drizzle ORM schemas.

In plain words
What is it for?
Use it when creating or operating SQLite schemas with Bun and Drizzle, especially for applications that will later use PostgreSQL.
Why use it?
It helps developers design the local database so moving to PostgreSQL later requires configuration and data migration rather than a complete redesign.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is robconery/kolea's own configuration. It tells Claude Code how to work on kolea itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kolea configures →

Reuse

Borrowing it

Nothing to install: this file belongs to robconery/kolea. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/robconery/kolea/main/.claude/skills/sqlite-dev/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/robconery/kolea

Made for: Claude Code.

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-dev

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/robconery/kolea/sqlite-dev"><img src="https://agentmods.dev/badge/skills/robconery/kolea/sqlite-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,443 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.00246 $0.02443
Opus 5.5 $0.00098 $0.00977
Sonnet 5.5 $0.00049 $0.00489
Haiku 4.5 $0.00025 $0.00244

Measured 2mo ago against content hash 27a2ea0ed4cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sqlite-dev 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (templates/db.production.ts, templates/db.ts, templates/drizzle.config.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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

2 near-identical copies found in the catalogue:

.claude/skills/sqlite-dev/SKILL.md · 174 lines

How it starts

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

SQLite for Local Dev — Postgres-Portable, Bun + Drizzle

🎯 Why: Design for Change

The goal of writing software is to be able to change it safely — including changing the database. Every rule here (snake_case, plural tables, NOT NULL FKs, JSON document store) exists so the schema ports to Postgres with a dialect swap, not a rewrite. Portability is change-safety: when SQLite stops fitting, you move with a Drizzle config edit instead of a month of forensics.

SQLite here is the development database for a TypeScript/Bun app whose production system of record will almost certainly be Postgres. That single fact drives every rule: write the SQLite schema so that switching to Postgres is a Drizzle dialect change and a data copy, not a redesign. Use the same names, the same modeling discipline, and the same integrity rules as postgres-dba — SQLite is just a smaller engine running them.

This skill is about the SQLite schema, the Drizzle layer, and operating SQLite. For schema-design philosophy (why NOT NULL FKs, why a surrogate key) the authority is postgres-dba; this skill does not re-argue it, it ports it. For app-layer TypeScript use the language skills.

How to use this skill

  1. Match the task to a rule below or in the decision guide.
  2. Open the matching references/*.md for the rationale, the wrong way, the right way, and the explicit-override escape hatch.
  3. Copy the closest file from templates/ and adapt it — the templates already encode every convention, so you start compliant and portable.
  4. Apply the rule unless you can state, in a code comment, the specific reason it does not apply. "SQLite let me" is not a reason — SQLite lets you do almost anything; Postgres will not.

The hard rules (non-negotiable defaults)

  1. Naming is identical to postgres-dba. snake_case, lowercase, unquoted. Tables plural (orders), columns singular (shipped_at), primary key literally id, FKs <table_singular>_id, booleans is_/has_, timestamps past-tense _at. In Drizzle the TypeScript property may be camelCase, but the column name argument is always the snake_case name — createdAt: integer('created_at', …). The database never sees a quoted mixed-case identifier. See references/naming.md.

Read the full file on GitHub · 174 lines

Files

What ships with it

9 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. 2mo ago First seen · 174 lines · 246 tokens per session scan A 27a2ea0ed4cb

Subscribe to this mod's changes

sqlite-dev is a skill published in the GitHub repository robconery/kolea (11 stars, last pushed 28d ago), licensed MIT. It adds 246 tokens to every session and 2,443 once invoked, about $0.0010 per session on Opus 5.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-31.

Related

Other skills, from other repositories

auth-db-billing

Backend product systems skill for the svelteflare monorepo. Invoke whenever the user wants to work with auth, sessions, protected routes, users, the database, schema changes, migrations, Stripe billing, subscriptions, paid feature gates, or any server-only logic in the Hono API. Trigger on "add a protected route"…

pinebasedev/svelteflare · 172 tokens

supermemory

Supermemory is a state-of-the-art memory and context infrastructure for AI agents. Use this skill when building applications that need persistent memory, user personalization, long-term context retention, or semantic search across knowledge bases. It provides Memory API for learned user context, User Profiles for…

supermemoryai/supermemory · 81 tokens

email-drip-sequence

Write an email drip sequence for affiliate marketing. Triggers on: "write me an email sequence", "create a drip campaign", "email nurture sequence", "affiliate email funnel", "welcome email series", "email onboarding sequence", "write emails for my list", "set up a drip sequence", "email campaign for [product]"…

Affitor/affiliate-skills · 106 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

better-drizzle

Write, review, and debug code that uses better-drizzle, the typed repository layer over Drizzle ORM 1.x (better(db), db.users.findMany, paginate, cursor, upsertMany, relation include/connect, transactions, and the rules/zod/soft-delete/timestamps/uuid/cache/tenant plugins). Use when a project imports better-drizzle…

almeidazs/better-drizzle · 106 tokens

moemail

Use when an AI agent needs a temporary/disposable email address — for receiving verification emails, testing email integrations, or any task requiring a temporary inbox via the moemail CLI.

beilunyang/moemail · 37 tokens