drizzle

Manage Drizzle ORM schemas and migrations in TypeScript projects.

Updated Aug 30, 2025
One-click install
npx skills add https://github.com/cute-baobao/pm --skill drizzle-cute-baobao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle
Source: https://github.com/cute-baobao/pm/tree/main/.agents/skills/drizzle
Command: npx skills add https://github.com/cute-baobao/pm --skill drizzle-cute-baobao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drizzle ORM schema and migration management can be error-prone and repetitive in TypeScript projects. It helps standardize how schemas and migrations are defined, validated, and evolved across teams.

Core Features & Use Cases

  • Drizzle-driven schema definitions: define tables, columns, and relations in src/database/schemas with type-safe DSL.
  • Migration guidance: create and apply migrations in a predictable, idempotent manner.
  • ORM usage patterns: integrate with generated types and query builders for robust data access across Postgres.

Quick Start

Create your Drizzle schemas in src/database/schemas and apply migrations using the project’s drizzle tooling.

Frequently Asked Questions about drizzle

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

FAQPage Schema
How do I define Drizzle ORM schemas for PostgreSQL in TypeScript?

To define Drizzle ORM schemas for PostgreSQL, use the type-safe DSL to declare tables, columns, and relations within the src/database/schemas directory, ensuring strict TypeScript integration and conventional naming patterns across your project.

What is the best way to manage Drizzle ORM migrations predictably?

The best way to manage Drizzle ORM migrations is to use the project's drizzle tooling and drizzle.config.ts to create and apply migrations in a predictable, idempotent manner, standardizing schema evolution across development teams.

Does this Drizzle schema guide work with strict TypeScript projects?

Yes, this Drizzle schema guide works with strict TypeScript projects by providing a type-safe DSL for defining database models and integrating generated types with query builders for robust data access in Postgres.

How do I structure Drizzle ORM models for robust data access?

Structure Drizzle ORM models by defining tables in src/database/schemas and integrating ORM usage patterns with generated types and query builders, which ensures robust and type-safe data access across PostgreSQL.

Why are my Drizzle ORM database migrations error-prone and repetitive?

Drizzle ORM database migrations become error-prone and repetitive without standardized validation and schema evolution rules, which this approach solves by enforcing conventional naming patterns and predictable idempotent migration application.

Can I use drizzle.config.ts to standardize schema definitions across teams?

Yes, you can use drizzle.config.ts to standardize how database schemas and migrations are defined, validated, and evolved, ensuring consistent Drizzle ORM usage patterns and schema management across multiple teams.