Database Migration Generator
Automates the creation of safe database migrations with automatic framework detection and built-in rollback logic.
This skill simplifies database schema evolution by automatically detecting your project's migration framework—supporting Knex, Prisma, TypeORM, Drizzle, and raw SQL. It guides users through creating new tables, modifying columns, and adding indexes while enforcing a critical verification checkpoint to ensure the AI understands the schema requirements before any changes are generated. By ensuring every 'up' migration has a corresponding 'down' migration and performing safety checks for destructive operations like dropping columns, it significantly reduces the risk of data loss and schema inconsistencies.
主要功能
01Automatic detection of Prisma, Knex, TypeORM, Drizzle, and raw SQL frameworks
0229 GitHub stars
03Framework-specific CLI command generation for immediate execution and testing
04Mandatory Theory of Mind (ToM) verification checkpoint for high-stakes DB changes
05Generates both schema changes (UP) and complete rollback logic (DOWN)
06Built-in safety validation for NOT NULL constraints and destructive operations
使用场景
01Standardizing migration file naming and timestamping across a development team
02Generating complex rollback logic for multi-step schema modifications
03Adding new tables or columns to an existing production database schema safely