Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    CADENCE Safe Database Migration Author (Expand/Contract)

    1

    Zero-downtime expand/contract database migration author and auditor for EF Core, Alembic, Prisma, Drizzle, Room, and raw SQL with DDL/DML separation, idempotency guards, and rollback proof.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    CADENCE Safe Database Migration Author (Expand/Contract)

    CADENCE Safe Database Migration Author (Expand/Contract)

    Example session with this skill installed

    Create an expand migration to rename orders.status_code to orders.fulfillment_status and backfill existing rows in Postgres.

    • Read your context and instructions
    • Compiled the cadence safe database

    Expand Migration Plan: FEAT-210 (Postgres / Alembic)

    • Mode: expand (rename stripped and deferred to DEC-004 for later contract release)
    • Files Created:
      1. alembic/versions/20261122_FEAT210_expand_add_fulfillment_status.py (DDL only: nullable column + CONCURRENTLY index + full downgrade)
      2. alembic/versions/20261122_FEAT210_data_backfill_fulfillment_status.py (DML only: 5,000-row batched backfill + guarded downgrade)
    • Round-Trip Verification: upgrade -> downgrade -> upgrade exited 0 against local test DB
    • Deferred Contraction: Appended DEC-004 (drop legacy status_code after 1 week zero-read telemetry)

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

    About this skill

    A single bad database migration can lock a production table, break rolling deployments, or make rollback impossible. Standard prompts routinely mix DDL and DML in one file, emit empty Down() methods, or drop columns while older app instances are still reading them.

    What it does

    CADENCE Safe Database Migration Author enforces zero-downtime expand/contract migration engineering across every major ORM and SQL migration runner:

    • Automatic Stack & Dialect Discovery: Inspects your repo to detect .NET / EF Core, Python / Alembic, TypeScript / Prisma or Drizzle, Kotlin / Room, or raw SQL (Flyway / Liquibase / migrations/*.sql) and matches your existing conventions and database dialect.
    • Strictly Additive expand Mode (Default): Allows only backwards-compatible changes (new tables, nullable columns, defaulted non-null columns, online/concurrent indexes, safe FKs/constraints). Automatically strips destructive ops (DROP, RENAME, un-defaulted NOT NULL, type narrowing) and logs them as a deferred contraction entry with a 4-item production readiness checklist.
    • Gated contract Mode: Refuses to generate destructive cleanup DDL until a human explicitly confirms production telemetry (zero reads/writes for >=1 week, expand live for >=1 sprint, backfill verified, no rollback planned).
    • Mandatory Hardening: Enforces complete non-empty Up/Down reversibility, dialect-native idempotency guards (IF NOT EXISTS, Postgres DO $$, SQL Server OBJECT_ID), strict DDL vs DML file separation, >1M-row lock-free safety, and empirical Apply -> Rollback -> Reapply verification against a local/test database.
    • Read-Only audit Mode: Reviews existing or PR-staged migration files for safety violations before merge.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.

    Never executes migrations against production databases. Round-trip Apply -> Rollback -> Reapply verification requires a local, test, or containerized database; if none is reachable, the skill outputs exact verification commands and flags unexecuted proof.

    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 buying a skill.

    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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

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

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    Software
    GitprismaNode.jsdrizzle-kit

    Requires your project's local ORM/migration CLI (e.g., EF Core, Alembic, Prisma, Drizzle, Flyway) and optional local test database for round-trip verification.

    Permissions

    Read Files
    Write Files
    Terminal / Shell

    File Scopes

    migrations/**
    alembic/**
    prisma/**
    specs/**

    Reads schema/model files, scaffolds migration files using your project's local ORM CLI, and runs Apply -> Rollback -> Reapply verification only against local/test databases. Never touches production databases or makes external network calls.

    Listed3 days ago
    Updated2 days ago

    What's inside

    Frequently Asked Questions

    No. The skill explicitly forbids running migrations against production databases. Round-trip verification runs strictly against local, test, or disposable container databases.

    Yes. It auto-discovers .NET/EF Core, Python/Alembic, TypeScript/Prisma or Drizzle, Kotlin/Room, and raw SQL/Flyway/Liquibase, adapting idempotency guards to Postgres, SQL Server, MySQL, or SQLite.

    Yes. Use audit mode to run a read-only safety check on any existing or PR-staged migration files without modifying code.

    It strips them from the expand migration and appends a structured deferred-contraction entry (with a 4-point production verification checklist) so you can run contract mode safely in a later release.

    New in Data & Databases