{"enrichment":{"faq":[{"a":"Alembic is a database migration tool that provides version-controlled schema change management for SQLAlchemy-based applications. It enables you to create, test, and deploy schema changes across environments while preserving data integrity and enabling safe rollbacks. Alembic tracks all modifications to your database structure, allowing teams to collaborate on schema evolution without manual SQL management.","q":"What is Alembic and how does it manage database migrations?"},{"a":"Alembic manages schema changes through a structured workflow: initialize your project with `alembic init`, define your SQLAlchemy models, auto-generate migration scripts using `alembic revision --autogenerate`, review the generated Python migration files, and apply them with `alembic upgrade head`. Each migration is version-controlled and can be reviewed before deployment, ensuring safe and traceable schema evolution.","q":"How do you use Alembic for schema changes in your database?"},{"a":"Yes, Alembic can auto-generate migrations from your SQLAlchemy declarative base models. Using the `alembic revision --autogenerate` command, Alembic compares your current model definitions against the database schema and creates migration scripts that capture the differences. This automation reduces manual SQL writing while maintaining full control through code review before applying changes.","q":"Can Alembic auto-generate migrations from SQLAlchemy models?"},{"a":"Alembic tracks database modifications through revision history, allowing you to downgrade or rollback changes using the `alembic downgrade` command. You can revert to any previous schema version by specifying the target revision. Each migration script contains both upgrade and downgrade logic, enabling safe reversal of changes if issues arise during deployment or testing.","q":"How does Alembic enable rollback and downgrade of database changes?"},{"a":"Alembic's env.py is the core configuration file that controls how migrations execute. It defines database connection settings, logging behavior, and the migration context. You customize env.py to support different environments (development, staging, production), configure SQLAlchemy engine creation, and control whether migrations run in online or offline mode for flexibility in deployment scenarios.","q":"What role does env.py play in Alembic configuration?"},{"a":"Initialize Alembic in a new project using `alembic init <directory_name>`, which creates the migration environment with subdirectories for versions, configuration files (alembic.ini and env.py), and templates. Configure the database connection string in alembic.ini, link your SQLAlchemy models to the migration context, then begin creating migrations. This setup establishes version control for all future schema changes.","q":"How do you initialize Alembic in a new project?"}],"shadow_tags":["schema-versioning","db-migration-tool","sql-evolution","orm-integration","change-tracking"],"summary_rewrite":"Alembic provides version-controlled database migration management for support systems built on SQLAlchemy. Create, test, and deploy schema changes across environments while preserving data integrity and enabling safe rollbacks."},"gist":{"api_url":"https://skillfed.io/api/skills/manutej/luxor-claude-marketplace/alembic.json","as_of":"2026-06-13","description":"Alembic helps you manage and version control database schema changes through automated migration scripts.","install":{"manual":["git clone https://github.com/manutej/luxor-claude-marketplace","cp -r luxor-claude-marketplace ~/.claude/skills/alembic"],"primary":"npx skillfed install manutej/luxor-claude-marketplace/alembic","version":"9b79e341"},"kind":"skill","mirror_url":"https://skillfed.io/manutej/luxor-claude-marketplace/alembic.md","similar":[{"id":"organvm/a-i--skills/database-migration-patterns","name":"database-migration-patterns","publisher":"organvm/a-i--skills","url":"https://skillfed.io/organvm/a-i--skills/database-migration-patterns"},{"id":"mindmorass/reflex/database-migration-patterns","name":"Database Migration Patterns","publisher":"mindmorass/reflex","url":"https://skillfed.io/mindmorass/reflex/database-migration-patterns"},{"id":"majesticlabs-dev/majestic-marketplace/alembic-patterns","name":"Alembic Patterns","publisher":"majesticlabs-dev/majestic-marketplace","url":"https://skillfed.io/majesticlabs-dev/majestic-marketplace/alembic-patterns"},{"id":"manutej/luxor-claude-marketplace/sqlalchemy","name":"Sqlalchemy","publisher":"manutej/luxor-claude-marketplace","url":"https://skillfed.io/manutej/luxor-claude-marketplace/sqlalchemy"},{"id":"bilalmk/todo_correct/sqlmodel-expert","name":"Sqlmodel Expert","publisher":"bilalmk/todo_correct","url":"https://skillfed.io/bilalmk/todo_correct/sqlmodel-expert"}],"title":"Alembic by manutej: Manage and version control database schema changes \u2014 SkillFed","use":{"when":["Alembic manages schema changes through a structured workflow: initialize your project with `alembic init`, define your SQLAlchemy models.","Yes, Alembic can auto-generate migrations from your SQLAlchemy declarative base models."]},"what":{"lead":"Alembic helps you manage and version control database schema changes through automated migration scripts.","rest":"Alembic provides version-controlled database migration management for support systems built on SQLAlchemy. Create, test, and deploy schema changes across environments while preserving data integrity and enabling safe rollbacks."}},"id":"manutej/luxor-claude-marketplace/alembic","install":{"mode":"external","repo":"https://github.com/manutej/luxor-claude-marketplace"},"links":{"html":"https://skillfed.io/manutej/luxor-claude-marketplace/alembic","md":"https://skillfed.io/manutej/luxor-claude-marketplace/alembic.md","repo":"https://github.com/manutej/luxor-claude-marketplace"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":15,"language":"Shell","last_updated":"2026-06-13","license":null,"name":"Alembic","publisher":"manutej","stars":61},"relations":{"similar":[{"id":"organvm/a-i--skills/database-migration-patterns"},{"id":"mindmorass/reflex/database-migration-patterns"},{"id":"majesticlabs-dev/majestic-marketplace/alembic-patterns"},{"id":"CuriousLearner/devkit/migration-generator"},{"id":"manutej/luxor-claude-marketplace/sqlalchemy"},{"id":"laolaoshiren/claude-code-skills-zh/db-migrator"},{"id":"yonatangross/orchestkit/database-patterns"},{"id":"bilalmk/todo_correct/sqlmodel-expert"},{"id":"bobmatnyc/claude-mpm-skills/sqlalchemy"},{"id":"softspark/ai-toolkit/migration-patterns"}]},"slug":{"owner":"manutej","repo":"luxor-claude-marketplace","skill":"alembic"},"version":"9b79e341"}
