Works with the AI tools you already use
DB Migration Guardian
Plan, review, and execute safe database migrations with automatic rollback plans, backfill strategies, and zero-downtime sequencing.
Secure checkout via Stripe
See it in action
You say
Add a status column to the orders table (default 'pending', not null) and an index on orders.created_at. We have ~80M rows and cannot take downtime.
Your agent does
This needs to be split into 3 deploys to stay online:
Deploy 1 - add status as a nullable column (instant, no lock). Deploy 2 - backfill status='pending' in 10k-row batches with a resumable script (provided), then add the NOT NULL constraint using NOT VALID + VALIDATE CONSTRAINT to avoid a full-table lock. Deploy 3 - create the created_at index with CREATE INDEX CONCURRENTLY.
I've generated all three migrations, the batched backfill script, and a matching rollback for each. Estimated index build time at 80M rows: ~6-9 min, no write lock.
What you get
About this skill
Stop praying every time you run a migration in production. DB Migration Guardian turns your AI agent into a senior database reliability engineer that plans, reviews, and sequences schema changes so they ship with zero downtime — and always with a tested rollback path.
The Problem
Most migration bugs are not syntax errors. They are operational failures: a locking ALTER TABLE that freezes writes for 40 minutes, a NOT NULL column added before the backfill runs, a dropped column that a still-running old app version depends on, or a "quick index" that takes an exclusive lock on a 200M-row table. These never show up in code review and never appear in a local dev database. They only appear in production, at the worst possible time.
What It Does
DB Migration Guardian gives your agent a battle-tested operating procedure for every schema change:
- Migration Risk Audit — Classifies each statement as safe, lock-sensitive, or destructive, and flags anything that can block reads or writes.
- Zero-Downtime Sequencing — Rewrites risky single-step migrations into the safe expand / migrate / contract pattern (add nullable column, backfill in batches, add constraint, swap reads, drop old column) across multiple deploys.
- Automatic Rollback Plan — Generates a matching down-migration and a manual recovery runbook for every change, so you are never one bad deploy away from an outage.
- Backfill Strategy — Produces batched, resumable backfill scripts with throttling so you never lock a large table or saturate IO.
- Pre-Flight Checklist — Estimates lock impact, row counts, and index build time before anything touches production.
Why Use This Skill
Writing the migration is the easy 20%. Making it safe is the hard 80%. This skill encodes the practices that experienced platform teams use — online schema change patterns, the expand-contract workflow, lock-aware ordering, and reversible-by-default design — into a repeatable procedure your agent follows every single time. No more 2 a.m. incident calls because of a forgotten backfill.
Supported Stacks
Databases: PostgreSQL (default), MySQL / MariaDB, SQLite. Migration tools: Prisma, Drizzle, Knex, TypeORM, Alembic, Flyway, Rails ActiveRecord, raw SQL. Environments: Works with any CI/CD pipeline and any agent that has filesystem and terminal access.
Use Cases
Ship schema changes to high-traffic production databases without downtime. Add a safety review step to every migration in CI before it can merge. Convert legacy "big bang" migrations into safe, reversible, multi-step rollouts. Onboard junior engineers with a guardrail that catches dangerous DDL automatically.
Known Limitations
Lock-time and build-time estimates are heuristics based on row counts and index type; always validate against a production-sized staging snapshot. The skill does not execute migrations against production on its own — it produces the plan, scripts, and rollback; a human approves and runs the deploy.
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 month ago
- 30-day refund guarantee
- One-time purchase, yours forever
- Secure checkout via Stripe
Creator
PubsProToolkit builds rigor-first skills for AI agents — they write your docs and content properly, then adversarially review them to catch what's wrong before it ships. The result: cleaner output and a hard quality gate in one toolkit. Built by a CMPP-certified, PhD medical writer who brings regulated-industry standards to developer docs, content, compliance, and research integrity.
Frequently Asked Questions
Popular in Data Engineering

Database Schema & Query Review Gate
Review a database schema, queries, or migration for the mistakes that get expensive in production — bad table design, missing or wrong indexes, slow and N+1 queries, SQL injection, and migrations that lock or break prod. Engine-aware (PostgreSQL, MySQL, SQLite, SQL Server), it runs an ordered review and returns a PASS/REVIEW/BLOCK verdict with prioritized fixes. Schema mistakes are the most expensive kind — this catches them before they ship.

nex-postgres-multi-instance
Manage multiple Postgres versions and extensions on one Linux box with a port registry and unified backups.

Ceramic Compose Db
Ceramic Compose Db - A Premium AI Agent Skill

nex-kbo-prospect-pipeline
Automated Belgian KBO register importer and polite website email enricher for B2B lead generation.