migration-risk-analyzer

Analyze database migration scripts for lock contention and rollback readiness.

310|45|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/Mathews-Tom/praxis-skills --skill migration-risk-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-risk-analyzer
Source: https://github.com/Mathews-Tom/praxis-skills/tree/main/skills/migration-risk-analyzer
Command: npx skills add https://github.com/Mathews-Tom/praxis-skills --skill migration-risk-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a systematic, pre-deployment risk assessment for database migrations by parsing migration scripts and identifying lock contention, downtime estimates, irreversible changes, and rollback needs so teams can avoid outages and data loss.

Core Features & Use Cases

  • Operation parsing & classification: Extracts DDL and DML operations from raw SQL or common ORM migration formats and classifies each by lock type and expected impact.
  • Duration & downtime estimation: Estimates operation durations using table size heuristics and engine-specific behaviors (PostgreSQL, MySQL).
  • Rollback & validation generation: Produces rollback templates for reversible changes, highlights irreversible operations with backup recommendations, and emits pre/post migration validation queries.
  • Use Case: Review an Alembic or Flyway migration before production deploy to produce a per-operation risk table, deployment recommendation, and tested validation checklist.

Quick Start

Analyze the attached migration SQL and produce a per-operation risk assessment, lock analysis, estimated downtime, rollback scripts, and pre/post validation queries.

Frequently Asked Questions about migration-risk-analyzer

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

FAQPage Schema
How do I analyze PostgreSQL migration scripts for lock contention and downtime?

To analyze PostgreSQL migration scripts for lock contention, parse DDL and DML operations to classify lock types, estimate downtime using table size heuristics, and generate rollback templates to avoid production outages.

Can I use this to review Alembic or Flyway migrations before production deploy?

Yes, you can review Alembic, Django, and Flyway migrations before production deploy. The analysis extracts operations from these ORM formats to produce a per-operation risk table and validation checklist.

What is database migration risk analysis and when do I need it?

Database migration risk analysis is the pre-deployment assessment of migration scripts to identify lock contention, downtime estimates, and irreversible changes. You need it before production releases to prevent outages and data loss.

How do I generate rollback scripts and validation queries for database migrations?

To generate rollback scripts and validation queries for database migrations, parse the DDL and DML operations to identify reversible changes, produce rollback templates, highlight irreversible operations with backup recommendations, and emit pre/post validation queries.

Does the migration risk analyzer work with both PostgreSQL and MySQL engines?

Yes, the migration risk analyzer works with both PostgreSQL and MySQL engines. It estimates operation durations and classifies lock types based on the specific engine behaviors and table size heuristics.

What are the limitations of pre-deployment migration risk analysis?

A limitation of pre-deployment migration risk analysis is that duration estimates rely on table size heuristics rather than exact runtime metrics, and it cannot automatically reverse irreversible operations without manual backup and data recovery procedures.