Skip to content
aj-geddes avatar

Data Migration Scripts

Reversible database migration scripts with batched backfills, validation checks, and zero-downtime deployment patterns.

CCM score
38 of 100
skills.sh installs
432
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema changes, data transformations, backfills, and cross-system migrations for Knex.js and Alembic projects
  • Includes six reference guides: Knex.js and Alembic migrations, batched large-data migration, zero-downtime pattern, validation, and cross-database migration
  • Enforces paired up and down migrations, transactional operations, batch processing for large datasets, and post-migration data validation
  • Designed for teams changing live database schemas or moving data between systems without taking production offline

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill data-migration-scripts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Data Migration Scripts

Table of Contents

Overview

Create robust, safe, and reversible data migration scripts for database schema changes and data transformations with minimal downtime.

When to Use

  • Database schema changes
  • Adding/removing/modifying columns
  • Migrating between database systems
  • Data transformations and cleanup
  • Splitting or merging tables
  • Changing data types
  • Adding indexes and constraints
  • Backfilling data
  • Multi-tenant data migrations

Quick Start

Minimal working example:

import { Knex } from "knex";

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Databases
First seen
Jun 3, 2026

Questions

What does the data-migration-scripts skill do?

The data-migration-scripts skill creates safe, reversible database migration scripts with rollback capabilities, data validation, and zero-downtime deployments. It covers schema changes, moving data between systems, and large-scale data transformations, with Knex.js and Alembic examples in its reference guides.

How do I install the data-migration-scripts skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill data-migration-scripts -y in your project to install the data-migration-scripts skill. Once installed, the data-migration-scripts skill lets your agent write migrations that include both up and down steps.

When should I use the data-migration-scripts skill?

Use the data-migration-scripts skill when adding, removing or modifying columns, splitting or merging tables, changing data types, backfilling data or migrating multi-tenant data. Its SKILL.md also covers adding indexes and constraints and migrating between database systems.

Where does the data-migration-scripts skill stand in the Databases category?

The data-migration-scripts skill is listed in the Databases category on Claude Marketplaces, next to supabase-postgres-best-practices and several Prisma skills. What sets it apart is its focus on reversible migrations with rollback and batching guidance for large datasets.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Data Migration Scripts

More Databases