pitfalls-drizzle-orm

Identify Drizzle ORM migration pitfalls and document safe patterns to prevent schema drift.

1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/BarisSozen/claude --skill pitfalls-drizzle-orm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pitfalls-drizzle-orm
Source: https://github.com/BarisSozen/claude/tree/main/.claude/skills/pitfalls-drizzle-orm
Command: npx skills add https://github.com/BarisSozen/claude --skill pitfalls-drizzle-orm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies and documents Drizzle ORM migration pitfalls, providing safe patterns to avoid schema drift and risky migrations.

Core Features & Use Cases

  • Migration safety rules: Rules to prevent dangerous changes like altering primary key types and risky migrations.
  • Schema best practices: Guidance on correct array column usage and type-safe schema definitions.
  • Type-safe patterns: Examples of insert/select types inference and validation using drizzle-zod in migrations and queries.

Quick Start

Review your current Drizzle ORM migrations and schemas against the documented pitfalls to ensure safe patterns are followed.

Frequently Asked Questions about pitfalls-drizzle-orm

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

FAQPage Schema
How do I prevent schema drift in Drizzle ORM migrations?

To prevent schema drift in Drizzle ORM, apply migration safety rules that avoid altering primary key types and ensure your database schema matches TypeScript definitions exactly.

What are common Drizzle ORM migration pitfalls I should avoid?

Common Drizzle ORM migration pitfalls include risky primary key type alterations and incorrect array column usage, which can be avoided by following documented schema best practices and safe type definitions.

How do I ensure type-safe schema definitions in Drizzle ORM?

You ensure type-safe schema definitions in Drizzle ORM by following best practices for array column usage and validating your insert and select type inferences against the schema structure.

Can I use drizzle-zod for validation during Drizzle ORM migrations?

Yes, you can use drizzle-zod for validation during Drizzle ORM migrations to enforce type-safe patterns and ensure your queries and schema changes maintain strict TypeScript type inference.

When do I need to review my Drizzle ORM schema for risky migrations?

You need to review your Drizzle ORM schema for risky migrations before altering primary key types or modifying array columns, checking existing definitions against documented safety rules to prevent drift.