fastapi-alembic-migrations

Community

Smooth async migrations with Alembic.

Authoramaozhao
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a ready-to-use configuration for integrating Alembic migrations with SQLAlchemy 2.0 in asynchronous projects, addressing the challenge of running migrations in async environments and ensuring compatibility with FastAPI apps.

Core Features & Use Cases

  • Async-ready Alembic setup for SQLAlchemy 2.0 with auto-detection of models.
  • Custom env.py template that uses async engines and proper target_metadata.
  • Use Case: Initialize migrations in a new FastAPI project using async SQLAlchemy and apply migrations without blocking.

Quick Start

Initialize Alembic for an async project and adapt env.py to use an async engine, then generate and apply migrations with the usual alembic commands.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: fastapi-alembic-migrations
Download link: https://github.com/amaozhao/MySkills/archive/main.zip#fastapi-alembic-migrations

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.