Create, review, test, and rollback Alembic database migrations for OPRE OPS. Use this skill whenever the user mentions database migrations, alembic, schema changes, adding/modifying columns or tables, model changes that need migration, or "migrate the database". Also use when a model change has been made and the user needs to generate the corresponding migration.
90
88%
Does it follow best practices?
Impact
96%
0.98xAverage score across 3 eval scenarios
Passed
No known issues
Column rename migration fix
Identifies drop+add problem
100%
100%
Alembic rename limitation
100%
100%
Data loss risk noted
100%
100%
Uses op.alter_column()
100%
100%
new_column_name parameter
100%
100%
No drop_column in upgrade
100%
100%
Correct downgrade
100%
100%
Revision chain checked
0%
0%
Column attributes preserved
100%
100%
Revision metadata unchanged
100%
100%
Enum value migration gap detection
Identifies missing enum change
100%
100%
Alembic enum limitation
100%
100%
Adds op.execute() call
100%
100%
Correct ALTER TYPE syntax
100%
100%
Correct enum type name
100%
100%
New enum value string correct
100%
100%
Downgrade limitation noted
100%
100%
cancelled_date column retained
100%
100%
Revision chain checked
40%
0%
Does not accept as complete
100%
100%
NOT NULL column migration safety
Identifies NOT NULL problem
100%
100%
Explains failure mechanism
100%
100%
Production data risk noted
100%
100%
Safe strategy proposed
100%
100%
Fixed migration is safe for existing rows
100%
100%
Backfill or default provided
100%
100%
NOT NULL constraint applied
100%
100%
Correct downgrade
100%
100%
Does not approve as-is
100%
100%
Data migration between schema steps
100%
100%
e2a9461
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.