
Drizzle Migrations
This teaches a migration-first workflow with Drizzle ORM where you write SQL migrations before touching TypeScript code. The approach treats SQL as the source of truth and generates TypeScript types from it, which prevents schema drift and makes rollbacks cleaner. You'll find detailed patterns for the complete workflow: writing SQL migrations with proper naming conventions, generating TypeScript definitions, organizing schemas by domain, and setting up CI checks to catch drift. It's opinionated about avoiding code-first development, which makes sense if you've ever dealt with environments getting out of sync. The staging checklist and GitHub Actions example are helpful for teams that need migration validation before production deploys.
- skills.sh installs
- 1.3K
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill drizzle-migrations --agent claude-codeInstalls into .claude/skills of the current project.
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(),
});
Sponsors
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Categories
- Backend & APIs, Automation & Workflows, Databases
- First seen
- Apr 16, 2026
More from bobmatnyc/claude-mpm-skills
All 158- Tailwind Css1.2K
- Docker1.1K
- Trpc Type Safety1K
- Biome949
- Vitest942
- Daisyui915
- Zod899
- Sqlalchemy Orm873
- Github Actions771
- Nodejs Backend Typescript745
- Cypress664
- Session Compression664
- Opentelemetry647
- Hono Cloudflare639
- Wordpress Security Validation618
- Xlsx599
- Tanstack Query595
- Fastify582
- Api Design Patterns579
- Skill Creator569
- Git Workflow568
- Express Production519
- Golang Grpc518
- Axum500