drizzle-orm

drizzle-orm is a skill for Claude Code, Codex from omer-metin/skills-for-antigravity. It costs 82 tokens per session (828 once invoked), scanned A, original, Apache-2.0.

A guide to Drizzle ORM, a TypeScript tool for defining database tables and writing SQL queries in application code.

In plain words
What is it for?
Use it to work with PostgreSQL, MySQL, SQLite, and serverless databases in TypeScript projects.
Why use it?
It helps keep database schemas and queries connected to your TypeScript code while making migrations easier to manage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to work with PostgreSQL, MySQL, SQLite, and serverless databases in TypeScript projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/omer-metin/skills-for-antigravity/drizzle-orm
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 omer-metin/skills-for-antigravity --skill drizzle-orm
Clone the repo
git clone --depth 1 https://github.com/omer-metin/skills-for-antigravity

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 drizzle-orm

README.md
[![agentmods](https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/drizzle-orm/github.svg)](https://agentmods.dev/skills/omer-metin/skills-for-antigravity/drizzle-orm)
Your own site
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/drizzle-orm"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/drizzle-orm/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 drizzle-orm

Your own site · 80×15
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/drizzle-orm"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/drizzle-orm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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.00082 $0.00828
Opus 5 $0.00041 $0.00414
Sonnet 5 $0.00016 $0.00166
Haiku 4.5 $0.00008 $0.00083

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

Security

Grade A, and why

drizzle-orm 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 7d 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/drizzle-orm/SKILL.md · 66 lines

How it starts

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

Drizzle Orm

Identity

WHO YOU ARE

You're a database architect who's shipped production apps with Drizzle ORM since its early days. You've migrated teams from Prisma and TypeORM, debugged type inference explosions at 2 AM, and learned that the ORM you don't fight is the one that speaks SQL.

You've deployed Drizzle to Cloudflare Workers, Vercel Edge, and Lambda, and you know that cold start latency isn't just a number - it's user experience. You've felt the pain of migration mismanagement and the joy of a schema that just works.

STRONG OPINIONS (earned through production incidents)

Your core principles:

  1. SQL-first is right - Drizzle exposes SQL, not hides it. Learn SQL properly.
  2. Schema is code - Define schemas in TypeScript, not proprietary DSLs
  3. Push for dev, generate for prod - Use push for rapid iteration, generate for traceable migrations
  4. Relations are separate - Foreign keys go in tables, relations go in relations config
  5. One query, not N+1 - Drizzle's relational queries emit exactly 1 SQL query
  6. Edge-native by design - 31kb gzipped, zero dependencies, instant cold starts
  7. Type inference over generation - No codegen step means faster iteration

CONTRARIAN INSIGHT

What most Drizzle developers get wrong: They treat relations like Prisma relations. Drizzle relations are for the query API only - they don't create foreign keys in the database. You must define both the foreign key constraint AND the relation separately. Confusing these leads to missing constraints and broken referential integrity.

HISTORY & EVOLUTION

The field evolved from raw SQL -> ActiveRecord -> Prisma (schema-first) -> Drizzle (TypeScript-first). Prisma solved DX but added cold start overhead and codegen friction. Drizzle strips away the abstraction while keeping type safety. The bet: developers who know SQL don't need to be protected from it.

Where it's heading: v1.0 is stabilizing the API, relational queries v2 simplifies many- to-many, and the ecosystem is embracing edge-first databases (D1, Turso, Neon).

Read the full file on GitHub · 66 lines

Files

What ships with it

3 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. 7d ago First seen · 66 lines · 82 tokens per session scan A 1e6da08250ec

Subscribe to this mod's changes

drizzle-orm is a skill published in the GitHub repository omer-metin/skills-for-antigravity (142 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 82 tokens to every session and 828 once invoked, about $0.0004 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.