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.
npx agentmods add skills/ericrisco/rsc-harness/drizzle-ormnpx skills add ericrisco/rsc-harness --skill drizzle-ormgit clone --depth 1 https://github.com/ericrisco/rsc-harnessWrote 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.
[](https://agentmods.dev/skills/ericrisco/rsc-harness/drizzle-orm)<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/drizzle-orm"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/drizzle-orm.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00096 | $0.02832 |
| Opus 5 | $0.00048 | $0.01416 |
| Sonnet 5 | $0.00019 | $0.00566 |
| Haiku 4.5 | $0.00010 | $0.00283 |
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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Drizzle ORM — schema as code, type-safe queries, drizzle-kit migrations
Drizzle is the SQL-transparent TypeScript ORM: you declare tables in plain .ts, the query
builder emits SQL you can read, and there is no codegen client to regenerate. It runs in
edge/serverless runtimes. You own the schema, the queries, and the drizzle-kit workflow here —
the database engine, the ORM-agnostic migration strategy, and Prisma live in sibling skills.
Decide first
Three decisions before you write a line. Each branches, so use the table.
| Decision | Pick | Why |
|---|---|---|
| Drizzle vs Prisma | Drizzle when you want SQL you can read, no codegen step, edge runtime | Prisma's generated client + schema.prisma DSL is the opposite trade — use ../prisma-orm/SKILL.md if that is the ask |
| Version | 0.45.x + [email protected] for production |
npm latest is [email protected]; the 0.45 line has been latest since 2025-12-04 (checked 2026-06-02) |
| Version | 1.0.0-rc.x (npm rc tag = 1.0.0-rc.3, 2026-05-18) for a NEW edge-first project |
v1 has moved past beta into release candidates with Relations v2 — close to stable, but still pin an exact rc and expect late API churn |
| Driver entrypoint | match it to your DB/host (see below) | Each driver has its own drizzle-orm/<driver> import and its own client |
Driver entrypoints (pick one; full matrix + edge caveats in references/relations-and-drivers.md):
drizzle-orm/node-postgres, /postgres-js, /neon-http, /libsql (Turso), /planetscale-serverless,
/mysql2, /better-sqlite3, /bun-sqlite.
Install & config
npm i drizzle-orm
npm i -D drizzle-kit
npm i postgres # the driver client — here postgres-js; swap per your DB
drizzle.config.ts — the four keys drizzle-kit reads. The dialect here MUST match your table
helper (pgTable ⇒ 'postgresql'), or migrations target the wrong SQL.
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
dialect: 'postgresql', // 'postgresql' | 'mysql' | 'sqlite' | 'turso'
schema: './src/db/schema.ts', // where your tables live
out: './drizzle', // emitted migration SQL
dbCredentials: { url: process.env.DATABASE_URL! },
});
What ships with it
4 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.
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.
- today First seen · 232 lines · 96 tokens per session scan A 09d9040cda91
drizzle-orm is a skill published in the GitHub repository ericrisco/rsc-harness (60 stars, last pushed yesterday), licensed MIT. It adds 96 tokens to every session and 2,832 once invoked, about $0.0005 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.
Other skills, from other repositories
drizzle-orm
Drizzle ORM — TypeScript SQL ORM. Schema definition, queries, migrations, transactions, RQB, extensions.
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.
database-migrations
Use this skill when modifying database schemas or running migrations. It defines safe patterns for SQLModel/Alembic.
Database Patterns
Use this skill when designing schemas, writing queries, or shipping migrations—especially when correctness and safety matter more than clever SQL.
better-drizzle
Expert guidance for better-drizzle repository work. Use whenever the user is building, refactoring, reviewing, debugging, documenting, or migrating code that uses better-drizzle, Drizzle delegates, plugins, transactions, pagination, filters, raw SQL, or performance-sensitive repository helpers. Also use when the task…
postgres-migrations
Apply schema changes to a live PostgreSQL database without taking downtime or locking out writers.