home/categories/automation-tools/tgoai-tgo-skills-db-migration-check-skill-md
automation-toolstools

db-migration-check

Verify that SQLAlchemy model changes have corresponding Alembic migration files. Trigger when any file under models/*.py or models/**/*.py is modified — checks git diff for model changes and confirms matching alembic/versions/*.py files exist, failing if a service has model changes without a migration.

tgoai
maintainer
tgoai
Updated 3/11/2026
Stars
419
Forks
84
quick start

Installation and usage

Verify that SQLAlchemy model changes have corresponding Alembic migration files. Trigger when any file under models/*.py or models/**/*.py is modified — checks git diff for model changes and confirms matching alembic/versions/*.py files exist, failing if a service has model changes without a migration.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use db-migration-check