nodejs-drizzle

nodejs-drizzle is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 85 tokens per session (4,228 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 4,228 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.04228
Opus 5.5 $0.00034 $0.01691
Sonnet 5.5 $0.00017 $0.00846
Haiku 4.5 $0.00009 $0.00423

Measured 10d ago against content hash 53d448de45cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

skills/backend/nodejs/drizzle/SKILL.md · 509 lines

How it starts

The opening of the file, as written. The whole thing — 509 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 · 509 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. 10d ago Changed · -103 lines 53d448de45cd
  2. 2mo 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 (38 stars, last pushed 3d ago), licensed MIT. It adds 85 tokens to every session and 4,228 once invoked, about $0.0003 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-30.

Related

nodejs-drizzle compared with skills from other repositories

nodejs-drizzle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nodejs-drizzlej4flmao/agent-skillsSkill383d agoMITA85Claude Code, Codex
prisma-8prisma/ormSkill48kyesterdayApache-2.0A220Claude Code, Codex
mail-timeveliovgroup/mail-timeSkill1439d agoBSD-3-ClauseA195Claude Code, Codex
webiny-api-opensearch-catalogwebiny/webiny-jsSkill8.0kyesterdaynoneA19Claude Code, Codex
new-resourceKhaledSaeed18/node-express-boilerplateSkill364d agoMITA53Claude Code, Codex
update-schemaKhaledSaeed18/node-express-boilerplateSkill364d agoMITA56Claude Code, Codex
query-grammarkavo-labs/kavoSkill17yesterdayMITA83Claude Code