database-migration-specialist

Plan, implement, and verify PostgreSQL schema migrations with rollback strategies.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Whaleylaw/llm-lawyer --skill database-migration-specialist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration-specialist
Source: https://github.com/Whaleylaw/llm-lawyer/tree/main/.claude/skills/database-migration-specialist
Command: npx skills add https://github.com/Whaleylaw/llm-lawyer --skill database-migration-specialist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers plan and execute safe database migrations, ensuring schema evolution happens with auditable, reversible steps.

Core Features & Use Cases

  • Migration planning and versioning with descriptive names
  • Schema changes (add/alter/drop tables/columns) with safe defaults and rollback plans
  • Data transformation and indexing changes with minimal downtime
  • Staging-first workflow and rollback strategies for production safety

Quick Start

Create a new migration with a descriptive name and apply it to your Supabase project in a staging environment before production.

Frequently Asked Questions about database-migration-specialist

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

FAQPage Schema
How do I safely add or alter columns in a PostgreSQL schema without data loss?

To safely add or alter columns in a PostgreSQL schema without data loss, plan schema changes with safe defaults and rollback strategies, applying them via auditable SQL migration files.

What is the best way to rollback a failed database migration in Supabase?

The best way to rollback a failed database migration in Supabase is to use transaction-based SQL migration files that enforce reversible steps, allowing you to revert schema evolution safely.

How do I apply data transformations and indexing changes with minimal downtime?

You can apply data transformations and indexing changes with minimal downtime by using a staging-first workflow and best-practice checks to execute auditable, transaction-based database changes.

Can I use this workflow for managing schema evolution across multiple Supabase environments?

Yes, you can manage schema evolution across Supabase and PostgreSQL environments by using versioned SQL migration files with descriptive names to ensure safe, auditable workflows.

When do I need to use transaction-based SQL migration files for database changes?

You need to use transaction-based SQL migration files for database changes when you want to enforce safe, reversible steps that minimize downtime and data loss during schema evolution.

Why should I apply database migrations to a staging environment before production?

You should apply database migrations to a staging environment before production to verify schema changes and data transformations safely, ensuring rollback strategies work before impacting live data.