Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    DB Migration Safety Checker

    by Arnstein Larsen

    1

    The migration ran instantly in staging and locked a 40-million-row table in production for nine minutes — because staging had 400 rows

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Review this Postgres 12 migration: ALTER TABLE orders ADD COLUMN internal_note text DEFAULT 'none' NOT NULL; Production table has 50M rows.

    Your agent does

    Risk: High. In Postgres 12, adding a column with a volatile default requires a full table rewrite, locking orders for minutes. Plan:

    1. Add column without default.
    2. Set default for new rows.
    3. Batch update existing rows (50k chunks).
    4. Add NOT NULL constraint.

    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.

    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

    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

    Listed1 month ago
    Updated1 month ago

    Creator

    Frequently Asked Questions

    Popular in Data Engineering