drizzle-orm

drizzle-orm is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 28 tokens per session (1,638 once invoked), scanned A, a copy of drizzle, MIT.

A reference skill for Drizzle ORM, a TypeScript library that lets application code define database tables and run SQL-style queries.

In plain words
What is it for?
Use it with PostgreSQL, MySQL, SQLite, SingleStore, MSSQL, or CockroachDB to define schemas, read and change data, query related records, run transactions, and manage migrations.
Why use it?
It brings schema, query, transaction, and migration guidance together while keeping database results tied to TypeScript types.

Skill for Claude CodeCodex

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

Good fit Use it with PostgreSQL, MySQL, SQLite, SingleStore, MSSQL, or CockroachDB to define schemas, read and change data, query related records, run transactions, and manage migrations.

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

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/pledgeandgrow/pledge-skills/drizzle/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/drizzle)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/drizzle"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/drizzle/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/pledgeandgrow/pledge-skills/drizzle"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/drizzle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,638 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 86% copy Near-identical to another mod 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.00028 $0.01638
Opus 5 $0.00014 $0.00819
Sonnet 5 $0.00006 $0.00328
Haiku 4.5 $0.00003 $0.00164

Measured 10d ago against content hash 12f6e8f53e05, 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 10d 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

This is a copy

86% identical to drizzle — 291 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/drizzle/SKILL.md · 177 lines

How it starts

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

Drizzle ORM

Overview

Drizzle ORM is a lightweight, performant, TypeScript-first ORM with zero dependencies. It is headless (not a data framework), SQL-like at its core, and serverless-ready by design. Drizzle supports PostgreSQL, MySQL, SQLite, SingleStore, MSSQL, and CockroachDB.

Key principles:

  • Headless ORM — a library, not a framework; build your project however you want
  • SQL-like — if you know SQL, you know Drizzle; zero to no learning curve
  • Relational Queries API — optional db.query API for nested relational data (outputs exactly 1 SQL query)
  • Serverless-ready — 0 dependencies, dialect-specific, works with all major database drivers
  • Full TypeScript — schema definitions, query results, and insert types are all inferred

Skill Files

File Description
getting-started.md Overview, philosophy, installation (PostgreSQL/MySQL/SQLite), schema definition, drizzle.config.ts, push & migrate workflow, CRUD basics
api.md Full API reference: column types per dialect, SQL builder (select/insert/update/delete), joins, filter operators, relational queries (RQB), sql template tag, transactions, Drizzle Kit migrations, defineRelations
guides.md Tutorials (platform integrations), zod/valibot schema generation, performance tips, deployment patterns

Quick Reference

Define a schema (PostgreSQL)

import { integer, pgTable, varchar, serial, timestamp } from "drizzle-orm/pg-core";

export const users = pgTable("users", {
  id: serial().primaryKey(),
  name: varchar({ length: 255 }).notNull(),
  email: varchar({ length: 255 }).notNull().unique(),
  createdAt: timestamp("created_at").defaultNow().notNull(),
});

Initialize the database

import { drizzle } from "drizzle-orm/node-postgres";
import * as schema from "./schema";

const db = drizzle(process.env.DATABASE_URL!, { schema });

CRUD

import { eq } from "drizzle-orm";

// Insert
await db.insert(users).values({ name: "John", email: "[email protected]" });

// Select
const allUsers = await db.select().from(users);
const user = await db.query.users.findFirst({ where: eq(users.email, "[email protected]") });

// Update
await db.update(users).set({ name: "Jane" }).where(eq(users.id, 1));

// Delete
await db.delete(users).where(eq(users.id, 1));

Read the full file on GitHub · 177 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. 10d ago First seen · 177 lines · 28 tokens per session scan A 12f6e8f53e05

Subscribe to this mod's changes

drizzle-orm is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,638 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to drizzle, differing in 291 lines, and is treated as a copy.

Related

Other skills, from other repositories

Drizzle ORM Testing

Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.

PramodDutta/qaskills · 36 tokens

database-sql

Design database schemas, write efficient SQL queries, create migrations, and optimize database performance. Use when working with databases, writing queries, or designing data models.

asgarovf/locusai · 35 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

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

database-query

Generate, optimize, and explain SQL queries - supports SQLite, PostgreSQL, MySQL with schema introspection, migration generation, and query performance analysis.

chainlesschain/chainlesschain · 32 tokens

database-patterns

Database design and migration patterns for Alembic migrations, schema design (SQL/NoSQL), and database versioning. Use when creating migrations, designing schemas, normalizing data, managing database versions, or handling schema drift.

yonatangross/orchestkit · 49 tokens