data-migrations

Coordinate backward-compatible SQL and DynamoDB migrations with expand-contract patterns.

1|2|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill data-migrations-michaelsvanbeek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-migrations
Source: https://github.com/michaelsvanbeek/personal-agent-skills/tree/main/skills/data-migrations
Command: npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill data-migrations-michaelsvanbeek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This knowledge area guides safe, backward-compatible database migrations and data backfills to minimize production downtime and risk.

Core Features & Use Cases

  • Expand-contract pattern guidance for SQL and DynamoDB schema changes
  • Batched data backfills with idempotent scripts and rollback planning
  • Deployment coordination across environments and rolling back failing migrations

Quick Start

Provide your current schema and target changes to generate a safe, testable migration plan.

Frequently Asked Questions about data-migrations

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

FAQPage Schema
How do I perform zero-downtime database migrations?

Zero-downtime database migrations are achieved by applying the expand-contract pattern to separate schema changes into backward-compatible phases, allowing safe deployment without stopping production traffic.

What is the expand-contract pattern for SQL and DynamoDB schema changes?

The expand-contract pattern separates backward-compatible schema changes into expansion phases for adding new structures and contraction phases for removing deprecated ones, coordinating safe updates across SQL databases and DynamoDB.

How do I safely backfill data in large production databases?

Safely backfill data in production databases by using batched, idempotent scripts that process rows incrementally, paired with explicit rollback planning to prevent locking issues and ensure data integrity.

Can I coordinate rolling back a failing database migration across SQL and DynamoDB?

Yes, you can coordinate rolling back failing migrations by generating explicit rollback strategies during the planning phase, ensuring safe reversion for both SQL databases and DynamoDB schema changes.

Does this migration approach work for both SQL databases and DynamoDB?

Yes, this approach works for both SQL databases and DynamoDB by generating testable migration plans that enforce backward-compatible schema changes, batched backfills, and rollback strategies across different data stores.

What do I need to provide to generate a safe database migration plan?

To generate a safe, testable database migration plan, you need to provide your current database schema and the target schema changes you want to apply for your application update.