What problem does it solve?
This Skill provides a standardized and safe workflow for creating, reviewing, and testing Alembic database migrations, preventing common errors and ensuring data integrity.
Core Features & Use Cases
- Automated Migration Generation: Creates new Alembic migration files based on a description.
- Comprehensive Review Checklist: Guides users through critical checks for both upgrade and downgrade functions.
- Automated Testing: Includes steps to test the migration cycle and verify schema against models.
- Safety Checks: Emphasizes checks for destructive operations, nullability, and large table modifications.
- Use Case: A developer needs to add a new column to the
users table. This Skill helps them generate the migration, review it for safety (e.g., ensuring a server_default is set for NOT NULL), test the upgrade/downgrade cycle, and even invoke a reviewer agent.
Quick Start
Use the new-migration skill to create a new database migration with the description add_email_to_users_table.