Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    DB Migration Safety Checker

    1

    This skill audits your migration before it touches production: lock acquisition analysis, estimated execution time at your actual data volume, index build strategy (concurrent vs.

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    DB Migration Safety Checker

    DB Migration Safety Checker

    Example session with this skill installed

    Postgres 14 with Rails, rolling deploys. The orders table has about 80M rows (120 GB). I want to rename the status column to order_status and add a NOT NULL region column filled from shipping_country. Is this safe?

    • Read your context and instructions
    • Compiled the db migration safety
    • Generated the UI component

    Not safe as a single migration. Both changes need an expand-contract sequence on an 80M row table.

    Lock and rewrite analysis

    ChangeLockRewriteRisk
    RENAME COLUMNACCESS EXCLUSIVE, briefNoOld app pods fail mid rolling deploy
    ADD COLUMN region nullableACCESS EXCLUSIVE, briefNoLow
    Backfill in one UPDATERow locks on all rowsHeavy WAL, bloatHigh
    SET NOT NULL directlyACCESS EXCLUSIVE + full scanNoHigh

    Safe sequence

    1. Add order_status and region as nullable columns. Set lock_timeout = '5s'.
    2. Deploy code that writes both status and order_status.
    3. Backfill both columns in batches:
    UPDATE orders SET order_status = status,
      region = map_region(shipping_country)
    WHERE id BETWEEN :start AND :end
      AND order_status IS NULL;
    

    Batches of 10k to 50k rows, a short pause between them.
    4. ADD CONSTRAINT region_nn CHECK (region IS NOT NULL) NOT VALID, then VALIDATE CONSTRAINT, then SET NOT NULL (skips the scan on PG 12+).
    5. Switch reads to order_status, deploy.
    6. Stop writing status, then drop it in a later release.

    Rollback plan

    Steps 1 to 5 are reversible: old code still reads status. Only step 6 is one way, so take it after a full release cycle.

    Next steps

    • Define map_region and test it on a sample
    • Run the backfill on a staging copy first

    db-migration-safety-checker.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    What you get

    Audit migrations for potential table locks and downtime.Generate zero-downtime expand-contract migration scripts.Calculate estimated execution time based on table volume.Produce safe rollback scripts for every schema change.I'm scared to run this migration against production dataPlan a zero-downtime database migrationCheck database migration safety before deploying

    About this skill

    The migration ran instantly in staging and locked a 40-million-row table in production for nine minutes — because staging had 400 rows. This skill audits your migration before it touches production: lock acquisition analysis, estimated execution time at your actual data volume, index build strategy (concurrent vs. blocking), column default pitfalls, constraint validation timing, and the exact zero-downtime sequence if your migration needs one. It also writes the rollback script, because migrations that can't be undone shouldn't be run without one. Use it on every migration that touches a table with more than 10,000 rows, adds a NOT NULL column, drops anything, or runs during business hours. Give it your migration file and your production table sizes; it returns the risk assessment and the safe execution plan.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    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 3 months ago

    • Passed all security checks, Safe to install

    Listed3 months ago
    Updated11 days ago

    What's inside

    Frequently Asked Questions