Manages database schema migrations autonomously while preventing data loss through automated safety checks and reversible planning.
The Schema Migration Governor is a specialized skill for Claude Code designed to automate the end-to-end lifecycle of database schema changes. It monitors model and entity files for modifications, delegates migration planning to a dedicated sub-agent to generate reversible SQL scripts, and strictly identifies potentially destructive operations. By utilizing a Docker-based shadow database for pre-deployment validation and requiring explicit configuration-level confirmation for data-dropping actions, it provides a robust safety net for autonomous, production-level development.
主な機能
011 GitHub stars
02Pre-deployment validation using temporary shadow database testing
03Automated schema change detection via git file monitoring
04Generation of reversible 'up' and 'down' migration scripts
05Destructive operation detection with mandatory confirmation safeguards
06Automated schema snapshot management and state tracking
ユースケース
01Automating SQL migration generation for ORMs like Prisma or SQLAlchemy
02Safely modifying database entities in production-grade applications
03Preventing accidental data loss during autonomous development cycles