drizzle

Define Drizzle ORM schemas and migrations for PostgreSQL projects.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Staysr/lobe-windos-build --skill drizzle-staysr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle
Source: https://github.com/Staysr/lobe-windos-build/tree/main/.agents/skills/drizzle
Command: npx skills add https://github.com/Staysr/lobe-windos-build --skill drizzle-staysr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drizzle ORM schema style guide provides clear conventions for defining database schemas, migrations, and ORM usage, helping teams keep PostgreSQL projects consistent and maintainable.

Core Features & Use Cases

  • Schema Definition: Standardized declarations for tables and columns with helpers and type inference.
  • Migrations & SQL Hygiene: Guidance on idempotent migrations, safe alterations, and predictable schema evolution.
  • Use Case: When starting a Drizzle-based PostgreSQL project, follow these conventions to ensure scalable queries and reliable migrations.

Quick Start

Create your Drizzle schema in src/database/schemas/ and generate migrations using the project's tooling.

Frequently Asked Questions about drizzle

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

FAQPage Schema
How do I define a database schema with Drizzle ORM in TypeScript?

Define your Drizzle ORM database schema in src/database/schemas/ using standardized declarations for tables and columns with helpers and type inference to ensure consistent PostgreSQL schemas.

What is the best way to manage PostgreSQL migrations using Drizzle?

The best way to manage PostgreSQL migrations with Drizzle is to follow guidelines for idempotent migrations and safe alterations. This ensures predictable schema evolution and reliable database updates across your project.

Does this Drizzle ORM style guide work for existing PostgreSQL projects?

Yes, the Drizzle ORM style guide applies to PostgreSQL projects requiring consistent schemas, migrations, and ORM usage. It helps both new and existing projects maintain scalable queries and reliable migrations.

How do I generate migrations from my Drizzle schema files?

Generate migrations from your Drizzle schema by creating your schema files in src/database/schemas/ and then using the project's tooling to produce the migration files for safe alterations.

Why do I need consistent conventions for Drizzle ORM schema definitions?

You need consistent conventions for Drizzle ORM schema definitions to keep PostgreSQL projects maintainable. Clear conventions for schemas, migrations, and ORM usage prevent unpredictable schema evolution and ensure scalable queries.