/python-backend:database-migration-expertfrom python-backend
Guides safe, zero-downtime database schema migrations and idempotent seeding for Python backends using Alembic and SQL.
Ships in python-backend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill guides the safe, zero-downtime evolution of relational database schemas and data seeding pipelines. It acts as a Database Administrator and Data Reliability Engineer, ensuring that every schema modification preserves data integrity, avoids destructive table locks, implements clean reversibility, and supports continuous deployment without service outages.
sql-query-optimization or bigquery-query-optimization.python-expert or fastapi-expert.senior-architect-engineering.NOT NULL without a default value in one step; follow expand-contract (add nullable, backfill data, add constraint).CREATE INDEX CONCURRENTLY in Postgres) to prevent locking table reads/writes.alembic revision --autogenerate -m "add_user_status_column"
downgrade() function completely and cleanly restores the previous schema state without orphaned artifacts.ON CONFLICT DO UPDATE or checking existing keys) so they can be run multiple times safely.# Generate auto migration
alembic revision --autogenerate -m "describe_change"
# Apply migrations
alembic upgrade head
# Test downgrade safety
alembic downgrade -1
alembic upgrade head
NOT NULL column without a default to a populated table in production.downgrade() as pass or throwing NotImplementedError.ALTER TABLE ... RENAME COLUMN on active high-traffic tables.upgrade and downgrade execute cleanly and reversibly on local/staging environments.For safe migration patterns, expand-contract templates, and zero-downtime checklists:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin python-backend11 skills in this plugin
/build-and-ci-gatesImplements linters, code formatters, and automated build pipelines (CI/CD) to prevent syntax errors, enforce style consistency, and prevent failing builds from being merged. Use this skill when asked to add linters, configure docker builds, or set up GitHub Actions workflows./context-captureUse when finishing a task at State 5 (Ship & Finish) or when the user explicitly asks to "save context", "guarda contexto", "record decisions", or "hand off" — writes ultra-compact persistent memory to context/memory/ and ensures target-project root AGENTS.md (<= 90 lines) stays wired to DESIGN.md and MEMORY.md across Claude Code and Google Antigravity./Other plugins' skills for the same job