drizzle

Define TypeScript database schemas and generate migrations for PostgreSQL, MySQL, and SQLite.

5|3|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/mikkelkrogsholm/dev-skills --skill drizzle-mikkelkrogsholm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle
Source: https://github.com/mikkelkrogsholm/dev-skills/tree/main/drizzle
Command: npx skills add https://github.com/mikkelkrogsholm/dev-skills --skill drizzle-mikkelkrogsholm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies database interactions in TypeScript applications by providing a type-safe, schema-as-code approach to defining and querying databases, reducing boilerplate and improving developer experience.

Core Features & Use Cases

  • Schema-as-Code: Define your database schema directly in TypeScript, ensuring type safety.
  • Type-Safe Query Builder: Write SQL queries with full TypeScript type checking.
  • Migrations: Generate and manage database schema migrations.
  • Database Integration: Supports PostgreSQL, MySQL, and SQLite.
  • Use Case: When building a new feature that requires interacting with a PostgreSQL database, use this Skill to define your tables in Drizzle schema files and then write type-safe queries to fetch and manipulate data.

Quick Start

Use the drizzle skill to generate a migration file for the current schema.

Frequently Asked Questions about drizzle

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

FAQPage Schema
How do I define a TypeScript database schema as code for SQL queries?

Defining a TypeScript database schema as code involves writing TypeScript objects that represent your tables and columns, ensuring end-to-end type safety from schema definition to SQL query execution. This approach reduces boilerplate and prevents type mismatches.

How do I generate and manage database migrations for PostgreSQL or MySQL?

Generating database migrations for PostgreSQL or MySQL involves creating snapshot files of your TypeScript schema definitions. These migration files track incremental schema changes, allowing you to apply or roll back database structure updates safely across different environments.

Does this TypeScript ORM work with SQLite, PostgreSQL, and MySQL?

Yes, this TypeScript ORM works directly with SQLite, PostgreSQL, and MySQL. It provides native integration for all three databases, allowing you to build type-safe SQL queries and manage schema migrations seamlessly across any of these supported platforms.

What is the best way to build type-safe SQL queries in TypeScript?

The best way to build type-safe SQL queries in TypeScript is using a schema-as-code approach. By defining your database schema directly in TypeScript files, the query builder automatically infers types, ensuring that your SQL queries are fully type-checked at compile time.

Why use a schema-as-code approach instead of raw SQL in TypeScript applications?

Using a schema-as-code approach instead of raw SQL eliminates boilerplate and improves developer experience by providing strict type safety. It ensures your TypeScript types and database schema remain synchronized, preventing runtime errors caused by structural mismatches in SQL queries.