
Drizzle Migrations
Migration-first Drizzle ORM workflow for TypeScript projects that writes SQL migrations before schema code.
- skills.sh installs
- 1.3K
- GitHub stars
- 80
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full migration cycle: SQL migration authoring,
drizzle-kit generate, snapshot creation, TypeScript schema mirroring, and staging tests - Includes a domain-based schema folder layout with barrel
index.tsexports and a sample GitHub Actions quality workflow - Enforces that schema changes start as numbered SQL files (
0001_name.sql) rather than TypeScript-first definitions - Designed for teams using PostgreSQL with Drizzle who need schema drift detection in CI and rollback-ready versioning
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill drizzle-migrations -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Drizzle ORM Database Migrations (TypeScript)
Migration-first database development workflow using Drizzle ORM for TypeScript/JavaScript projects.
When to Use This Skill
Use this skill when:
- Working with Drizzle ORM in TypeScript/JavaScript projects
- Need to create or modify database schema
- Want migration-first development workflow
- Setting up new database tables or columns
- Need to ensure schema consistency across environments
Core Principle: Migration-First Development
Critical Rule: Schema changes ALWAYS start with migrations, never code-first.
Why Migration-First?
- ✅ SQL migrations are the single source of truth
- ✅ Prevents schema drift between environments
- ✅ Enables rollback and versioning
- ✅ Forces explicit schema design decisions
- ✅ TypeScript types generated from migrations
- ✅ CI/CD can validate schema changes
Anti-Pattern (Code-First)
❌ WRONG: Writing TypeScript schema first
// DON'T DO THIS FIRST
export const users = pgTable('users', {
id: uuid('id').primaryKey(),
email: text('email').notNull(),
});
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Category
- Databases
- First seen
- Apr 16, 2026
More from bobmatnyc/claude-mpm-skills
All 154- Pytest1.3K
- Tailwind Css1.2K
- Docker1.1K
- Trpc Type Safety1K
- Biome962
- Vitest951
- Daisyui924
- Zod909
- Sqlalchemy Orm873
- Github Actions780
- Nodejs Backend Typescript745
- Cypress672
- Session Compression672
- Opentelemetry658
- Hono Cloudflare650
- Wordpress Security Validation632
- Xlsx607
- Tanstack Query603
- Fastify590
- Api Design Patterns587
- Skill Creator577
- Git Workflow576
- Express Production527
- Golang Grpc525
Similar to Drizzle Migrations
More Databases
prisma-ormbobmatnyc/claude-mpm-skills341 installsType-safe TypeScript database toolkit covering schema-first development, migrations, and generated clients.
drizzle-orm-patternsgiuseppe-trisciuoglio/developer-kit5.9K installsComprehensive Drizzle ORM guide for type-safe schemas, queries, relations, transactions, and migrations across five databases.
db-migrationslobehub/lobehub250 installsGuide for database schema changes covering Drizzle migrations, online indexes, backfills, and conflict-resolution workflows.
drizzle-safe-migrationspedronauck/skills347 installsSafe Drizzle migration workflow that orders data backfills before schema constraint changes, with rollout and rollback checks.
database-migrationsickn33/agentic-awesome-skills398 installsStep-by-step database migration guidance across Sequelize, TypeORM, and Prisma, with rollback and zero-downtime patterns.