By amiable-dev
Claude Code skill for Alembic migrations and SQLAlchemy 2.x.
npx claudepluginhub amiable-dev/alembic-sqlalchemyClaude Code skill for Alembic migrations and SQLAlchemy 2.x: ten rules for safe, zero-downtime schema changes, an env.py / pyproject template, a static revision linter and a compact status script so the agent never reads the versions/ directory.
A Claude Code skill that makes Claude handle Alembic migrations and SQLAlchemy 2.x the way an experienced database engineer would: safe schema changes, a clean revision history, and far less reading of your versions/ directory.
In Claude Code:
/plugin marketplace add amiable-dev/alembic-sqlalchemy
/plugin install alembic-sqlalchemy@amiable-alembic-sqlalchemy
Check with /plugin list. Other ways to install, updating and removing: docs/install.md.
Nothing to configure. Ask Claude for anything that touches your schema and the skill takes over:
note column to invoices and write the migration."Claude runs the skill's status script instead of reading every migration file, autogenerates and reviews the revision, lints it, and ends with a short report: what changed, what is risky, and in which order to deploy.
The two scripts also work on their own, from a project root:
bash skills/alembic-sqlalchemy/scripts/migration_status.sh
python skills/alembic-sqlalchemy/scripts/lint_revision.py migrations/versions/<file>.py
What Claude does step by step, the scripts' options, and the linter's codes: docs/usage.md.
Ten rules, each backed by a reference that Claude loads only when needed. In short: revisions come from alembic revision and are never hand-numbered; autogenerate output is checked against its blind spots; applied revisions are immutable; revision files never import your models; every constraint has a name; live tables change by expand and contract; migrations are tested on the real database; SQLAlchemy code uses 2.x idioms with lazy loads made loud; one session per unit of work; env.py is hardened once.
The rules with their reasons: docs/rules.md. Rolling the skill out to a project that already has migrations, hand-numbered ones included: docs/adopting-in-an-existing-project.md.
| Page | For |
|---|---|
| docs/install.md | every install option, updating, removing |
| docs/usage.md | what Claude does, the scripts, linter codes, CI snippets |
| docs/rules.md | the ten rules and why they exist |
| docs/adopting-in-an-existing-project.md | teams with existing migrations |
| docs/development.md | repo layout, tests, cutting a release |
Targets Alembic 1.19 and SQLAlchemy 2.0 / 2.1. MIT licensed, see LICENSE.
7-day visitors to each marketplace page
UI/UX design intelligence skill with 80 styles, 194 palettes, 74 font pairings, 25 charts, and 22 stack guidelines
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.