Agent skill · software engineering · aiskillstore
pitfalls-drizzle-orm
Drizzle ORM patterns and migration safety rules. Use when defining schemas, running migrations, or debugging database issues. Triggers on: Drizzle, schema, migration, db:push, $inferSelect, array column.
Why this skill is useful
Provides specific patterns and safety rules for Drizzle ORM migrations and schema definitions that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Drizzle ORM Pitfalls Common pitfalls and correct patterns for Drizzle ORM. When to Use Defining database schemas Running migrations (db:push) Creating insert/select types Working with array columns Reviewing Drizzle ORM code Workflow Step 1: Verify Schema Types Check that types are exported correctly. Step 2: Check Array Syntax Verify array columns use correct syntax. Step 3: Test Migrations Safely Never change primary key types in production. --- Critical Rules Migration Safety Type Inference Pattern Quick Checklist [ ] No primary key type changes [ ] Array columns use text().array() syntax [ ] Insert/select types exported for models [ ] Using drizzle-zod for validation [ ] Migration tested in dev before prod
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/pitfalls-drizzle-orm