Alembic Database Migrations
Manages safe and consistent Alembic database migrations with automated revision chain validation and schema testing.
This skill provides a standardized workflow for creating and managing database migrations using Alembic and SQLAlchemy. It ensures data integrity by guiding Claude through a rigorous process: verifying the current schema state, auto-generating revisions with descriptive messages, reviewing generated code for destructive operations, and validating migrations against test suites. It is particularly valuable in multi-developer or worktree-based environments where revision chains can become complex or stale, helping teams prevent schema drift and deployment errors.
主要功能
010 GitHub stars
02Automated revision chain verification and history checking
03Safe migration generation using Alembic autogenerate
04Integration with uv and pytest for immediate migration testing
05Worktree-aware conflict resolution for database schema changes
06Comprehensive validation checklists for destructive operations
使用场景
01Ensuring non-nullable columns have proper server defaults during migration
02Adding or modifying SQLAlchemy models in a Python backend
03Safely applying schema changes in a team environment with multiple branches