Drizzle

Define type-safe schema-driven database queries in TypeScript with Drizzle.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/vibekit-apps/skills-registry --skill drizzle-vibekit-apps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Drizzle
Source: https://github.com/vibekit-apps/skills-registry/tree/main/skills/drizzle
Command: npx skills add https://github.com/vibekit-apps/skills-registry --skill drizzle-vibekit-apps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drizzle helps developers build type-safe, schema-driven database queries in TypeScript, reducing runtime errors and improving maintainability.

Core Features & Use Cases

  • Schema-first definitions with $inferSelect and $inferInsert enable accurate type inference.
  • Define relations separately from tables and generate reliable migrations with drizzle-kit.
  • Driver support for PostgreSQL, MySQL, and SQLite enables cross-database apps.

Quick Start

Install drizzle-orm, define your schema with drizzle's table builders, and start querying in TypeScript.

Frequently Asked Questions about Drizzle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build type-safe database queries in TypeScript using an ORM?

Type-safe database queries in TypeScript are built using a schema-driven ORM workflow that defines tables, exports schemas, and enforces strict typing for select and insert operations. This approach reduces runtime errors and improves maintainability.

Does Drizzle ORM support PostgreSQL, MySQL, and SQLite for Node.js?

Yes, Drizzle ORM supports PostgreSQL, MySQL, and SQLite drivers in Node.js projects. This enables cross-database application development while maintaining consistent schema definitions and type safety.

How do I generate reliable migrations and define relations in Drizzle?

Reliable migrations are generated using drizzle-kit, while relations are defined separately from your table schemas. This schema-first workflow ensures database structures are accurately reflected in your TypeScript code.

What is the best way to infer TypeScript types for database inserts and selects?

Accurate type inference for inserts and selects is achieved using $inferInsert and $inferSelect utilities on your schema definitions. These tools enforce strict typing and ensure your TypeScript objects match database columns.

Do I need TypeScript strict mode for schema-driven database queries?

Yes, TypeScript strict mode is required to enforce type safety and ensure accurate schema inference. Strict mode enables the ORM to validate database queries and prevent runtime errors during development.