database_migrations

Standardize Alembic migration generation, review, testing, and deployment workflows.

8|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON --skill database-migrations-immuhammadfurqan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database_migrations
Source: https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON/tree/main/.agent/skills/database_migrations
Command: npx skills add https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON --skill database-migrations-immuhammadfurqan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely create, test, and deploy Alembic database migrations for the AARLP platform, ensuring reversible changes and stable deployments across environments.

Core Features & Use Cases

  • Migration generation: Auto-generate revision files from SQLAlchemy models and existing schemas with safe defaults.
  • Review & validation: Review auto-generated migrations, add data migrations, and validate in staging before applying.
  • Deployment readiness: Provides best practices for applying migrations in production with rollback plans and backups.

Quick Start

Create a new migration with alembic revision, review its changes, test upgrade and downgrade locally, then apply to staging before production.

Frequently Asked Questions about database_migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely manage Alembic migrations across different environments?

To safely manage Alembic migrations across environments, standardize the generation, review, testing, and deployment workflows for development, staging, and production. This includes enforcing reproducible migrations and proper data migrations with validation steps before deployment.

What is the best way to generate Alembic revision files from SQLAlchemy models?

The best way to generate Alembic revision files is to auto-generate them directly from your SQLAlchemy models and existing schemas using safe defaults. You should then review these auto-generated changes and add any necessary data migrations before proceeding.

How do I create a rollback plan for production database migrations?

Create a rollback plan for production database migrations by first testing the upgrade and downgrade procedures locally. You should then validate the migration in staging and ensure proper backups are in place before applying the reversible changes to production.

When do I need data migrations alongside schema changes in Alembic?

You need data migrations alongside schema changes in Alembic when modifying existing database schemas requires transforming existing records. Reviewing auto-generated migrations allows you to safely add necessary data migrations and validate them in staging before production deployment.

Does this Alembic migration workflow support automated downgrade testing?

Yes, this Alembic migration workflow supports downgrade testing by requiring you to test both upgrade and downgrade procedures locally. This ensures your database schema changes are fully reversible and stable before applying them to staging or production environments.