Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    DB Migration Guardian

    1

    Plan, review, and execute safe database migrations with automatic rollback plans, backfill strategies, and zero-downtime sequencing.

    $24

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    4 usesSecurity scanned
    DB Migration Guardian

    DB Migration Guardian

    Example session with this skill installed

    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.

    • Read your context and instructions
    • Compiled the db migration guardian

    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.

    Connects securely to your tools. The creator never sees your data.

    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:

    1. Migration Risk Audit — Classifies each statement as safe, lock-sensitive, or destructive, and flags anything that can block reads or writes.
    2. 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.
    3. 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.
    4. Backfill Strategy — Produces batched, resumable backfill scripts with throttling so you never lock a large table or saturate IO.
    5. 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.

    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 use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    4 uses

    Times used to date

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 months ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    migrations/**
    db/**
    schema/**

    Reads your existing schema and migration files and writes new migration, backfill, and rollback files. Uses the terminal to run your migration tooling. Does not require network access, environment variables, or browser access, and never executes against production on its own.

    Listed5 months ago

    What's inside

    Frequently Asked Questions

    This skill acts as a senior database reliability engineer for your agent. It audits migration code for locking risks, generates multi-step 'expand/contract' sequences for zero downtime, and provides automated rollback plans and batched backfill scripts tailored to your specific schema changes.

    The skill is compatible with any AI agent that has file system and terminal access. It supports major SQL dialects including PostgreSQL, MySQL, and SQLite, and integrates seamlessly with popular ORMs like Prisma, Drizzle, Alembic, and Rails ActiveRecord.

    No specialized installation is required. Once you add this skill to your agent's library, you simply provide your migration file or proposed schema change, and the agent will follow the encoded reliability procedures to generate the safety audit and deployment plan.

    For safety reasons, the skill is designed to plan and review rather than execute. It produces the safe migration scripts, backfill operations, and recovery runbooks, allowing a human operator to review and trigger the final deployment to production.

    You receive the complete DB Migration Guardian skill, including the specialized logic for risk auditing, zero-downtime sequencing, and rollback generation. You will also have access to any future updates or refinements to the migration patterns as database best practices evolve.

    Estimates for lock times and index builds are based on sophisticated heuristics. While highly accurate for identifying potential bottlenecks, we recommend using the skill's output to test against a production-sized staging environment for final validation before shipping.

    New in Data & Databases