
Database Migration Integrity Checker
- 153 installs
- 2 repo stars
- Updated January 25, 2026
- jorgealves/agent_skills
Verify database migrations apply cleanly, preserve schema invariants, and avoid data loss before releases by running structured integrity checks across environments.
About
database-migration-integrity-checker from jorgealves/agent_skills guides automated validation of SQL or ORM migrations, ensuring schemas stay consistent, constraints hold, and risky changes are flagged before deployment to staging or production.
- Pre-deploy migration dry-run checks
- Schema drift and constraint validation
- Rollback and reversibility assessment
- Seed and reference data integrity tests
- CI-friendly migration verification reports
Database Migration Integrity Checker by the numbers
- 153 all-time installs (skills.sh)
- +8 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #261 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jorgealves/agent_skills --skill database-migration-integrity-checkerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 153 |
|---|---|
| repo stars | ★ 2 |
| Last updated | January 25, 2026 |
| Repository | jorgealves/agent_skills ↗ |
What it does
Verify database migrations apply cleanly, preserve schema invariants, and avoid data loss before releases by running structured integrity checks across environments.
Files
Database Migration Integrity Checker
Purpose and Intent
The database-migration-integrity-checker is a safety net for your most critical asset: your data. It catches dangerous SQL operations that might pass a standard code review but could cause production outages or data loss.
When to Use
- CI/CD Pipelines: Block deployments if a migration contains a high-risk operation without manual override.
- Local Development: Run before committing a new migration to ensure it follows safe DDL practices.
When NOT to Use
- Data Querying: This is for schema changes, not for auditing standard SELECT/INSERT queries.
Security and Data-Handling Considerations
- Reads SQL files only; no database access required.
- Safe for local use.
name: database-migration-integrity-checker
version: 1.0.0
description: Audits SQL migration files for destructive actions, potential table locks, and compatibility issues. Use before applying migrations to production databases to prevent downtime and ensure data integrity.
inputs:
migration_files_path:
type: string
description: Directory containing the .sql migration files.
required: true
database_type:
type: string
enum: [postgres, mysql, sqlite]
default: postgres
outputs:
audit_results:
type: array
items:
type: object
properties:
file:
type: string
risk_level:
type: string
enum: [low, medium, high, critical]
finding:
type: string
suggestion:
type: string
capabilities:
- Detection of 'DROP COLUMN' or 'DROP TABLE' operations.
- Identification of DDL that causes exclusive locks on large tables (e.g., adding a column with a default value in older Postgres).
- Verification of syntax against specific database engines.
constraints:
- Cannot detect data-level issues (e.g., data loss due to a bad WHERE clause) without a schema.
security:
- Scans SQL text locally; does not require database connection.
examples:
- input:
migration_files_path: "./migrations"
output:
audit_results:
- file: "002_drop_users.sql"
risk_level: "critical"
finding: "DROP TABLE detected"
suggestion: "Ensure you have a backup and this is truly intended."