data-migration-expert

Validate database migration and backfill code with verification SQL and rollback plans.

12|2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/jikig-ai/soleur --skill data-migration-expert-jikig-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-migration-expert
Source: https://github.com/jikig-ai/soleur/tree/main/.openhands/skills/data-migration-expert
Command: npx skills add https://github.com/jikig-ai/soleur --skill data-migration-expert-jikig-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents production data corruption by providing a focused review workflow for database migrations, backfills, and any code that transforms live data, with emphasis on validating mappings and detecting swapped or inverted values.

Core Features & Use Cases

  • Mapping Verification: Compare assumed mappings in code against live production values and require exact SQL queries that prove correctness.
  • Migration Safety Checks: Validate up/down behavior, scoped UPDATEs, batching/throttling, dual-write strategies, and documented rollback procedures.
  • Observability & Detection: Define post-deploy verification queries, metrics, and alerts to detect anomalies immediately after migration.
  • Use Case: Use when a PR changes IDs, enums, or migrates data across columns and you need a reproducible verification plan plus rollback guardrails.

Quick Start

Review the migration in this pull request, list every affected table and mapping, provide SQL queries that verify production values, and supply a rollback or dual-write plan.

Frequently Asked Questions about data-migration-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify data mappings during a database migration?

Preventing production data corruption during database migration requires validating up and down behavior, using scoped updates with batching, implementing dual write strategies, and documenting explicit rollback procedures.

What is the safest way to backfill live database columns without data corruption?

Post-deploy verification queries, metrics, and alerts detect anomalies immediately after a database migration by observing production data directly, confirming that ID changes, enum updates, and value transformations completed successfully.

Can I use this to review migration scripts in a pull request?

When your pull request changes IDs, migrates data across columns, or transforms live enum values, you need a verification plan that includes explicit production data SQL queries, scoped updates, and documented rollback procedures to prevent corruption.

How does a dual-write strategy prevent data corruption during migrations?

A dual-write strategy prevents data corruption during migrations by writing data to both the old and new schema simultaneously, allowing you to verify mapping correctness and maintain a rollback path before fully switching over.

When do I need rollback procedures for SQL backfill scripts?

You need rollback procedures for SQL backfill scripts whenever your code transforms live values, changes IDs, or updates enums, ensuring you can immediately revert scoped updates if post-deploy observability queries detect data anomalies.