db-migrate
Installation
SKILL.md
Database Migration Manager
Detect. Generate. Migrate. Roll back. Zero downtime.
Phase 1: Detect Migration Tool
Scan the project to identify the ORM/migration tool in use. Check in this order:
| Signal | Tool |
|---|---|
prisma/schema.prisma or schema.prisma in root |
Prisma |
drizzle.config.ts or drizzle.config.js or drizzle/ dir |
Drizzle |
knexfile.js or knexfile.ts |
Knex |
ormconfig.json or data-source.ts with TypeORM import |
TypeORM |
alembic.ini or alembic/ directory |
Alembic |
manage.py with Django imports |
Django |
migrations/ dir with raw .sql files, no ORM config |
Raw SQL |
If no tool is detected, ask the user which they want to use. If starting fresh, recommend Drizzle for TypeScript projects, Alembic for Python, Django migrations for Django apps.