Drizzle ORM Testing

Drizzle ORM Testing is a skill for Claude Code, Codex from PramodDutta/qaskills. It costs 36 tokens per session (13,644 once invoked), scanned A, original, MIT.

A guide to testing Drizzle ORM, a TypeScript library for working with databases. It covers migrations, query builders, transactions, and integration tests with PostgreSQL, SQLite, and MySQL.

In plain words
What is it for?
Use it to test schema changes, queries, commits and rollbacks, relations, and database integrations with real or isolated databases.
Why use it?
It helps expose database behavior that mocks or a different database engine can hide, including migration and transaction failures.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/pramoddutta/qaskills/drizzle-orm-testing
Any agent
npx skills add PramodDutta/qaskills --skill drizzle-orm-testing
Clone the repo
git clone --depth 1 https://github.com/PramodDutta/qaskills

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 Testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/pramoddutta/qaskills/drizzle-orm-testing.svg)](https://agentmods.dev/skills/pramoddutta/qaskills/drizzle-orm-testing)
Your own site
<a href="https://agentmods.dev/skills/pramoddutta/qaskills/drizzle-orm-testing"><img src="https://agentmods.dev/badge/skills/pramoddutta/qaskills/drizzle-orm-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.13644
Opus 5 $0.00018 $0.06822
Sonnet 5 $0.00007 $0.02729
Haiku 4.5 $0.00004 $0.01364

Measured yesterday against content hash bbab5b8e86b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Drizzle ORM Testing 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 yesterday.

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.

seed-skills/drizzle-orm-testing/SKILL.md · 1,734 lines

How it starts

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

Drizzle ORM Testing

You are an expert QA engineer specializing in Drizzle ORM testing patterns. When the user asks you to write, review, debug, or set up Drizzle ORM related tests or configurations, follow these detailed instructions. You understand schema declaration, query builders, migrations, transactions, relations, and prepared statements across PostgreSQL, SQLite, and MySQL dialects.

Core Principles

  1. Type-Safe Testing -- Leverage Drizzle's TypeScript-first design to ensure all queries, inserts, and updates are validated at compile time. Tests should catch type mismatches before runtime.
  2. Real Database Testing -- Use Testcontainers or in-memory SQLite for integration tests instead of mocking the ORM layer. Mocking Drizzle queries hides real SQL behavior and dialect differences.
  3. Migration Safety -- Every schema change must have a corresponding migration test that verifies both the up migration and rollback. Never deploy untested migrations.
  4. Transaction Integrity -- Test transaction commit, rollback, and nested savepoint behavior explicitly. Silent transaction failures are the most dangerous database bugs.
  5. Isolation by Default -- Each test gets a clean database state through transactions that roll back after each test, or through truncation. Tests must never depend on data from other tests.
  6. Seed Determinism -- Test data factories produce deterministic, reproducible data. Use seeded random generators and factory functions instead of ad-hoc inline data.
  7. Query Performance Awareness -- Integration tests should assert query count and execution time for critical paths. Drizzle's query builder makes it easy to accidentally generate N+1 queries.

When to Use This Skill

  • When setting up Drizzle ORM testing infrastructure for a new project
  • When writing unit tests for Drizzle schema definitions and query builders
  • When testing database migrations with forward and rollback verification
  • When testing transaction behavior including rollbacks and savepoints
  • When validating relational queries and joins
  • When integrating Testcontainers for disposable database instances in CI
  • When building test data factories with type-safe seeding
  • When testing prepared statements and parameterized queries

Read the full file on GitHub · 1,734 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. yesterday First seen · 1,734 lines · 36 tokens per session scan A bbab5b8e86b0

Subscribe to this mod's changes

Drizzle ORM Testing is a skill published in the GitHub repository PramodDutta/qaskills (217 stars, last pushed 5d ago), licensed MIT. It adds 36 tokens to every session and 13,644 once invoked, about $0.0002 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.