nodejs-drizzle

nodejs-drizzle is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 85 tokens per session (5,132 once invoked), scanned A, original, MIT.

A guide for using Drizzle ORM, a TypeScript database library that lets developers define schemas and write SQL-like queries. It covers migrations, relations, connections, and deployment across several database and runtime environments.

In plain words
What is it for?
Use it to define schemas and relations, write prepared queries, generate and apply migrations with drizzle-kit, and configure PostgreSQL, MySQL, SQLite, Turso, Neon, or PlanetScale connections.
Why use it?
It provides consistent patterns for describing database tables, changing schemas safely, and querying data. It also addresses connection setup for regular servers, serverless systems, and edge runtimes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { db } from '../db';.

Good fit Use it to define schemas and relations, write prepared queries, generate and apply migrations with drizzle-kit, and configure PostgreSQL, MySQL, SQLite, Turso, Neon, or PlanetScale connections.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills
agentmods
npx agentmods add skills/j4flmao/agent-skills/drizzle

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/drizzle"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/drizzle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,132 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 239
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 242
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 245
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 248
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00085 $0.05132
Opus 5 $0.00043 $0.02566
Sonnet 5 $0.00017 $0.01026
Haiku 4.5 $0.00009 $0.00513

Measured 9d ago against content hash 3da68b557c88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

nodejs-drizzle 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 9d 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/backend/nodejs/drizzle/SKILL.md · 612 lines

How it starts

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

Drizzle ORM

Purpose

Design database schemas, write SQL-like queries, manage migrations, define relations, and optimize Drizzle ORM for production and edge deployment.

Agent Protocol

Trigger

User request includes: drizzle, drizzle orm, drizzle schema, drizzle migrate, drizzle query, drizzle relation, drizzle edge, drizzle neon, drizzle planetscale.

Input Context

  • Database (PostgreSQL, MySQL, SQLite, Turso)
  • Drizzle version (0.30+)
  • Runtime (Node.js, Bun, Cloudflare Workers, Neon)
  • Deployment (serverless, edge, traditional)

Output Artifact

Schema definition, query examples, migration setup, relation config, connection management.

Response Format

Produce artifact directly. No preamble, no postamble, no explanations.

Completion Criteria

  • Schema defined with drizzle-orm/pg-core or mysql-core
  • Relations defined with drizzle-orm relations
  • Migrations generated and applied with drizzle-kit
  • Queries use prepared statements for production
  • Connection configured for target environment (Node, serverless, edge)

Max Response Length

4096 tokens

Architecture Decision Trees

Drizzle vs Prisma

Criterion Drizzle ORM Prisma
Performance Fast (thin SQL wrapper) Moderate (mapped layer)
Bundle size Tiny (tree-shakeable) Large (generated client)
Type safety Full (inferred from schema) Full (generated types)
SQL control Direct SQL with types Prisma Client abstractions
Migrations Drizzle Kit Prisma Migrate
Edge support First-class (Neon, Turso, PlanetScale) Via adapter
Relations Relations module (INSERT-friendly) include/select

Decision: Performance + SQL control + edge → Drizzle. Rich ORM features + auto-complete → Prisma.

Database Driver Selection

Database Driver Drizzle Package Best For
PostgreSQL pg or @neondatabase/serverless drizzle-orm/pg-core Full-featured RDBMS
MySQL mysql2 drizzle-orm/mysql-core PlanetScale, traditional MySQL
SQLite better-sqlite3 or @libsql/client drizzle-orm/sqlite-core Turso, local, edge
PostgreSQL (serverless) @vercel/postgres drizzle-orm/vercel-postgres Vercel edge functions

Read the full file on GitHub · 612 lines

Files

What ships with it

6 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. 9d ago First seen · 612 lines · 85 tokens per session scan A 3da68b557c88

Subscribe to this mod's changes

nodejs-drizzle is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 5,132 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-08-30.

Related

Other skills, from other repositories

prisma-8

Comprehensive guide for building with Prisma 8 (Prisma Next), the contract-first data layer. Use whenever working on Prisma code in a project that uses it — authoring or editing the data contract (contract.prisma, PSL, TypeScript builders), migrations, queries (db.orm / db.sql), runtime wiring (db.ts, middleware…

prisma/orm · 220 tokens

mail-time

Use when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps. Trigger on MailTime, MongoQueue, RedisQueue, PostgresQueue, mailTimePreset, JoSk email scheduling, Redis Cluster / KeyDB Cluster / Valkey useHashTags, KeyDB…

veliovgroup/mail-time · 179 tokens

webiny-api-opensearch-catalog

Name: createOpenSearchClient Import: import { createOpenSearchClient } from "webiny/api/opensearch" Source: @webiny/api-opensearch/client.ts.

webiny/webiny-js · 19 tokens

new-resource

Scaffold a complete new API resource (validation → repository → service → controller → route → container → app mount → OpenAPI → tests). Use when the user asks to add a new resource, entity, model, or endpoint group to the API.

KhaledSaeed18/node-express-boilerplate · 53 tokens

update-schema

Update the Prisma schema to add a new model, add fields to an existing model, or change relations — then run migration and regenerate the client. Use when the user asks to add a field, add a model, change a relation, or update the database schema.

KhaledSaeed18/node-express-boilerplate · 56 tokens

query-grammar

Reference for the query-string grammar every generated Kavo route understands — filter operators, sort, field selection (fields/fields[relation]), pagination strategies, includes, withDeleted, and the security/coercion rules behind them. Use when writing API-consumer docs, constructing a request against a Kavo…

kavo-labs/kavo · 83 tokens