database-migration-safe

Plan and execute phase-based database migrations with rollback safeguards.

Updated Dec 31, 2025
One-click install
npx skills add https://github.com/JackSmack1971/claude-code-learning-flywheel --skill database-migration-safe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration-safe
Source: https://github.com/JackSmack1971/claude-code-learning-flywheel/tree/main/.claude/skills/database-migration-safe
Command: npx skills add https://github.com/JackSmack1971/claude-code-learning-flywheel --skill database-migration-safe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

High-risk migrations require careful planning, transaction-wrapping, and rollback planning to avoid downtime and data loss.

Core Features & Use Cases

  • Phase-based migration pre-checks and stepwise execution patterns
  • Safe patterns for renames, NOT NULL, and index creation
  • Use Case: Safely add a new nullable column, backfill, and set NOT NULL later

Quick Start

Follow pre-migration checklist, generate a migration, validate with the validator, and apply in staging first.