drizzle-orm-expert

drizzle-orm-expert is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 50 tokens per session (2,122 once invoked), scanned A, original, MIT.

A TypeScript guide for Drizzle ORM, a library that lets application code work with databases using typed schemas and queries. It covers PostgreSQL, SQLite, MySQL, migrations, relationships, and serverless database setups.

In plain words
What is it for?
Use it to define database schemas, write relational queries, create migrations, connect Drizzle to web frameworks, improve query performance, or migrate from Prisma, TypeORM, or Knex.
Why use it?
It reduces errors when designing database tables, writing queries, and changing schemas over time. It also helps teams move from other database libraries or adapt database access for edge and serverless environments.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Codex.

Good fit Use it to define database schemas, write relational queries, create migrations, connect Drizzle to web frameworks, improve query performance, or migrate from Prisma, TypeORM, or Knex.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/random6913/claude-code-superkit/drizzle-orm-expert
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 RaNDoM6913/claude-code-superkit --skill drizzle-orm-expert
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/drizzle-orm-expert"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/drizzle-orm-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,122 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.00050 $0.02122
Opus 5.5 $0.00020 $0.00849
Sonnet 5.5 $0.00010 $0.00424
Haiku 4.5 $0.00005 $0.00212

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

Security

Grade A, and why

drizzle-orm-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 1mo 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.

packages/codex/skills/drizzle-orm-expert/SKILL.md · 247 lines

How it starts

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

Drizzle ORM Expert

TypeScript-first ORM that compiles to raw SQL with zero runtime overhead. Ideal for edge runtimes and serverless. Two complementary APIs: SQL-like query builder and Prisma-style relational queries.

Use this skill when

  • Setting up Drizzle ORM in a new or existing project
  • Designing database schemas with Drizzle's TypeScript-first approach
  • Writing complex relational queries (joins, subqueries, aggregations)
  • Setting up or troubleshooting Drizzle Kit migrations
  • Integrating Drizzle with Next.js App Router, tRPC, or Hono
  • Optimizing performance (prepared statements, batching, pooling)
  • Migrating from Prisma, TypeORM, or Knex

Do not use this skill when

  • The DB layer uses Prisma, TypeORM, or raw SQL exclusively
  • You need a database-agnostic ORM guide
  • The task is about DB server configuration (use postgresql-optimization)

Workflow

  1. Identify the DB driver (PostgreSQL, SQLite, MySQL) and select the adapter
  2. Define schema in db/schema.ts (or domain-split db/schema/users.ts)
  3. Define relations separately so the relational query API (db.query.*) works
  4. Use InferSelectModel and InferInsertModel for type inference — never manual interfaces
  5. Run drizzle-kit generate then migrate for schema changes in production
  6. Never use drizzle-kit push in production

Core Architecture

Drizzle ORM compiles TypeScript schema definitions into prepared SQL statements at build time. There is no runtime query engine binary (unlike Prisma), which makes it edge-compatible (Cloudflare Workers, Vercel Edge Functions, Deno Deploy).

Two APIs coexist:

  • SQL-like builder: db.select().from().where().join().orderBy() — close to SQL semantics
  • Relational query API: db.query.users.findMany({ with: { posts: true } }) — Prisma-style nested fetching

Schema Design

import { pgTable, uuid, text, timestamp, pgEnum, index, uniqueIndex } from 'drizzle-orm/pg-core';

export const roleEnum = pgEnum('role', ['admin', 'user', 'guest']);

export const users = pgTable('users', {
  id: uuid('id').defaultRandom().primaryKey(),
  email: text('email').notNull().unique(),
  role: roleEnum('role').default('user').notNull(),
  createdAt: timestamp('created_at').defaultNow().notNull(),
}, (table) => ({
  emailIdx: uniqueIndex('users_email_idx').on(table.email),
  createdIdx: index('users_created_idx').on(table.createdAt),
}));

export const posts = pgTable('posts', {
  id: uuid('id').defaultRandom().primaryKey(),
  userId: uuid('user_id').references(() => users.id, { onDelete: 'cascade' }).notNull(),
  title: text('title').notNull(),
});

Read the full file on GitHub · 247 lines

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. 1mo ago First seen · 247 lines · 50 tokens per session scan A 050cc637c1ed

Subscribe to this mod's changes

drizzle-orm-expert is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 2,122 once invoked, about $0.0002 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

kysely

Guidelines for developing with Kysely, a type-safe TypeScript SQL query builder with autocompletion support.

Mindrally/skills · 26 tokens

drizzle-orm

Guidelines for developing with Drizzle ORM, a lightweight type-safe TypeScript ORM with SQL-like syntax.

Mindrally/skills · 25 tokens

neo4j-driver-javascript-skill

Neo4j JavaScript/TypeScript Driver v6 — driver lifecycle, executeQuery, managed transactions (executeRead/executeWrite), session.run, Integer handling, JSON serialization, record access, async/await patterns, TypeScript types, error handling, and connection setup for Node.js and browser. Use when writing JS/TS code…

neo4j-contrib/neo4j-skills · 157 tokens

prisma-orm-patterns-and-migrations

Best practices for Prisma ORM schema design, high-performance query optimization, preventing N+1 problems, zero-downtime database migrations, connection pooling, and multi-tenant data modeling. Use when building Node.js/TypeScript applications with Prisma.

hamzabellouch/agent-skills · 58 tokens

drizzle-orm

Drizzle ORM best practices. Use when configuring databases, designing schemas, writing queries, or handling migrations with Drizzle ORM, particularly with Cloudflare D1 or SQLite. NOT for database setup without an explicit engine. Require engine specification (Postgres/MySQL/SQLite). Use for ORM-managed migrations.

neverinfamous/memory-journal-mcp · 65 tokens

supabase-schema-generator

An SRE-grade automation skill to parse SQL schemas and auto-generate safe TypeScript interfaces for the frontend and Row Level Security (RLS) policies for Supabase.

aragaobruno/toolbelt · 0 tokens