database-migration-expert

database-migration-expert is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 50 tokens per session (949 once invoked), scanned A, original, Apache-2.0.

Manages database schema migrations, seed data scripts, and table versioning in Python backends (Alembic, SQL). Use this skill when asked to change DB schemas, write migrations, or write seeding scripts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/database-migration-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill database-migration-expert
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-migration-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/database-migration-expert/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/database-migration-expert)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/database-migration-expert"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/database-migration-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-migration-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/database-migration-expert"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/database-migration-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00949
Opus 5.5 $0.00020 $0.00380
Sonnet 5.5 $0.00010 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured today against content hash 23a440859631, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-migration-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/antigravity/python-backend/skills/database-migration-expert/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Migration Expert Skill

Overview

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.

When to Use

Trigger Scenarios

  • Creating, reviewing, or executing schema migrations (Alembic, SQL DDL).
  • Adding new columns, indexes, foreign keys, or table constraints to existing databases.
  • Executing phased column renames or type migrations using expand-contract patterns.
  • Authoring idempotent database seeding and fixture scripts.

When NOT to Use

  • Application database query tuning: Route to sql-query-optimization or bigquery-query-optimization.
  • General application backend logic: Route to python-expert or fastapi-expert.
  • System-level architectural boundaries: Route to senior-architect-engineering.

Process

Phase 1: Pre-Migration Lock & Safety Analysis

  1. Inspect proposed changes against production locking risks:
    • Adding NOT NULL columns: Never add NOT NULL without a default value in one step; follow expand-contract (add nullable, backfill data, add constraint).
    • Adding Indexes: Use concurrent index creation (CREATE INDEX CONCURRENTLY in Postgres) to prevent locking table reads/writes.
    • Renaming Columns: Never rename a column directly; create new column, double-write, migrate, and clean up.

Phase 2: Migration Authoring & Autogeneration Guard

  1. Generate the migration revision:
    alembic revision --autogenerate -m "add_user_status_column"
    
  2. Autogeneration Guard: Manually audit the generated Python migration script. Autogenerate often misses custom constraints, enums, or index variants.
  3. Reversibility Requirement: Ensure the downgrade() function completely and cleanly restores the previous schema state without orphaned artifacts.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 82 lines · 50 tokens per session scan A 23a440859631

Subscribe to this mod's changes

database-migration-expert is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 949 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

database-migration-expert compared with skills from other repositories

database-migration-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-migration-expertjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A50Claude Code, Codex
sodznlgis/opengis-skillsSkill7610d agoMITA102Claude Code, Codex
bioservicesKalarisLabs/research-agent-skillsSkill105todaynoneA73Claude Code
ef-core-persistencevaquarkhan/Fullstack-development-agent-skillsSkill32mo agoMITA40Claude Code
hibernate-orm-persistencevaquarkhan/Fullstack-development-agent-skillsSkill32mo agoMITA47Claude Code
optimizing-ef-core-queriesHarmeet10000/skillsSkill76mo agoMITA53Claude Code, Codex
psycopgmanutej/luxor-claude-marketplaceSkill634mo agononeA22Claude Code