Alembic Patterns
CommunityAutomatic Alembic downgrade fixes.
Authorruslan-korneev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Alembic migrations often face unsafe downgrades when dealing with enums, nullable changes, and foreign-key constraints. This skill provides automated patterns and guidance to ensure downgrades are safe, deterministic, and reproducible.
Core Features & Use Cases
- Automatic downgrade handling for enums, including proper deletion of enum types after dropping dependent tables or columns.
- Safe management of nullable changes, foreign keys, and data migrations during upgrade/downgrade cycles.
- Practical patterns and examples for creating tables with enums, adding columns with enum types, and handling array fields.
Quick Start
Run alembic revision --autogenerate -m 'auto-fix migrations' and then apply with alembic upgrade head.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Alembic Patterns Download link: https://github.com/ruslan-korneev/claude-plugins/archive/main.zip#alembic-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.