db-migrate

Automate database schema changes with Alembic for SQLAlchemy applications.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Benja-Pauls/SerpentStack --skill db-migrate-benja-pauls
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migrate
Source: https://github.com/Benja-Pauls/SerpentStack/tree/main/.skills/db-migrate
Command: npx skills add https://github.com/Benja-Pauls/SerpentStack --skill db-migrate-benja-pauls

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of managing database schema changes, allowing for the creation, application, and rollback of migrations with ease.

Core Features & Use Cases

  • Create Migrations: Generate new migrations to create tables, add columns, or make other schema changes.
  • Apply Migrations: Execute migrations to update the database schema.
  • Check Status: Review the current status of migrations and the database schema.
  • Rollback: Undo migrations to revert to previous schema versions.
  • Seed Data: Populate the database with sample data for testing.
  • Use Case: When working on a new project or updating an existing one, use this Skill to ensure database changes are efficiently managed and tracked.

Quick Start

Run uv run alembic upgrade head to apply all pending migrations to your database.

Frequently Asked Questions about db-migrate

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

FAQPage Schema
How do I manage database schema changes with Alembic in SQLAlchemy?

You can manage database schema changes with Alembic by using this Skill to automate the creation, application, and rollback of migrations for SQLAlchemy-based applications. It handles schema modification tasks such as creating tables and adding columns.

How do I rollback a database migration when using Alembic?

To rollback a database migration, this Skill provides an automated rollback feature that reverts your database to previous schema versions. You can undo applied migrations to safely undo schema changes when needed.

Can I seed sample data into my database during schema migrations?

Yes, you can seed sample data into your database during the migration process. This Skill supports populating the database with sample data specifically for testing purposes alongside applying schema changes.

How do I check the current status of Alembic migrations?

You can check the current status of Alembic migrations using this Skill's status review feature. It allows you to review the current migration state and inspect the existing database schema to track pending updates.

What is the best way to apply all pending Alembic migrations to a database?

The best way to apply all pending Alembic migrations is to run the command `uv run alembic upgrade head` in your terminal. This executes all outstanding migrations and updates your database schema to the latest version.

Do I need to manually write SQL scripts to add columns with Alembic?

No, you do not need to manually write SQL scripts to add columns. This Skill automates the generation of migrations for common schema modification tasks, including adding columns and creating tables, using Alembic and SQLAlchemy.