drizzle

Define and manage PostgreSQL schemas and migrations with Drizzle ORM in TypeScript.

Updated May 11, 2026
One-click install
npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill drizzle-zmh13928433602-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle
Source: https://github.com/zmh13928433602-sys/lobe-chat/tree/main/.agents/skills/drizzle
Command: npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill drizzle-zmh13928433602-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drizzle provides a cohesive approach to defining and managing database schemas, migrations, and ORM models in TypeScript projects, reducing drift between code and database structures and cutting boilerplate.

Core Features & Use Cases

  • Define tables, columns, and relations using Drizzle's type-safe schema DSL in src/database/schemas
  • Generate and apply migrations to keep the PostgreSQL database in sync with code changes
  • Use Case: Build scalable, type-safe data access layers for Node.js applications with clear separation between schema and runtime queries

Quick Start

Install drizzle, configure your drizzle.config.ts, and start defining your first schema in src/database/schemas.

Frequently Asked Questions about drizzle

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

FAQPage Schema
How do I define type-safe database schemas in a TypeScript project?

Type-safe database schemas in TypeScript are defined using Drizzle's schema DSL to declare tables, columns, and relations in a dedicated schemas directory, ensuring consistent ORM usage across your code and database layers.

What is the best way to manage PostgreSQL migrations with an ORM?

Managing PostgreSQL migrations with an ORM involves generating and applying migration files to keep your database structure in sync with code changes, reducing drift and cutting boilerplate across your Node.js application.

How do I configure Drizzle ORM for a Node.js application?

Configuring Drizzle ORM for a Node.js application requires setting up a configuration file and defining your first schema in a src/database/schemas directory to establish a clear separation between schema and runtime queries.

Does Drizzle ORM support PostgreSQL for scalable data access layers?

Drizzle ORM supports PostgreSQL for building scalable data access layers by applying a type-safe schema DSL to define models, generate migrations, and execute ORM-based queries in TypeScript projects.

Why should I use a type-safe schema DSL instead of raw SQL for database management?

Using a type-safe schema DSL instead of raw SQL provides a cohesive approach to defining database schemas and migrations, reducing drift between code and database structures while cutting boilerplate in TypeScript projects.