database-migration-integrity-checker

Audit SQL migration files for destructive actions and risky operations.

2|1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/jorgealves/agent_skills --skill database-migration-integrity-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration-integrity-checker
Source: https://github.com/jorgealves/agent_skills/tree/main/database-migration-integrity-checker
Command: npx skills add https://github.com/jorgealves/agent_skills --skill database-migration-integrity-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guards your database migrations by auditing SQL files to detect destructive actions, risky DDL, and compatibility issues before deployment, reducing downtime and data loss risk.

Core Features & Use Cases

  • Destructive DDL detection: flags operations like DROP TABLE or DROP COLUMN that threaten data availability.
  • Lock-risk assessment: identifies DDL patterns likely to cause table locks on large datasets.
  • Engine compatibility checks: validates syntax compatibility across Postgres, MySQL, and SQLite.
  • CI/CD & local validation: integrates into pipelines and local development to prevent risky migrations from reaching production.

Quick Start

Run the database-migration-integrity-checker against your migrations directory to generate an audit report.

Frequently Asked Questions about database-migration-integrity-checker

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

FAQPage Schema
How do I audit SQL migrations for destructive DDL like DROP TABLE?

You can audit SQL migrations for destructive DDL by scanning migration files to detect operations like DROP TABLE or DROP COLUMN that threaten data availability before they are applied to production databases.

What's the best way to check database migration compatibility across Postgres and MySQL?

Checking database migration compatibility across Postgres and MySQL is done by validating syntax compatibility across multiple database engines during the migration audit process to identify cross-engine issues before deployment.

Can I integrate SQL migration checks into a CI/CD pipeline?

You can integrate SQL migration checks into a CI/CD pipeline to automatically verify migrations and flag risky operations, preventing destructive actions and locking scenarios from reaching production environments.

How does lock-risk assessment work for database schema migrations?

Lock-risk assessment for database schema migrations works by scanning DDL patterns in SQL files to identify operations likely to cause table locks on large datasets, helping you avoid downtime during deployment.

Does this migration audit tool support SQLite in addition to Postgres and MySQL?

The migration audit tool supports SQLite in addition to Postgres and MySQL, verifying migration SQL files locally to perform schema-safety checks and cross-engine syntax validation across all three database systems.

What are the limitations of local SQL file scanning for migration safety?

Local SQL file scanning for migration safety is limited to non-data-level analysis, meaning it audits DDL files for destructive actions and compatibility issues but does not analyze the actual data contained within the database tables.