Database Migration & Schema Specialist

•
66
•

Automates database migrations, detects breaking schema changes, and ensures SQL query safety through rigorous validation and rollback generation.

The db skill is a specialized database management utility designed to prevent production incidents by acting as a pre-deploy safety gate. It automatically identifies schema changes via git diffs, classifies them as safe or breaking, and generates complete migration files including mandatory rollback scripts for popular ORMs like Prisma, Django, and TypeORM. Beyond migrations, it optimizes performance by recommending missing indexes and protects applications by scanning for SQL injection risks, ensuring a robust and secure database lifecycle within the Claude Code ecosystem.

Características Principales

0166 GitHub stars
02SQL injection vulnerability scanning through query parameterization checks
03Automated migration generation with mandatory 'up' and 'down' scripts
04Multi-ORM support including Prisma, TypeORM, Django, and raw SQL
05Proactive breaking change detection with hard-gate confirmation for risky updates
06Intelligent index analysis for foreign keys and high-cardinality columns

Casos de Uso

01Auditing legacy codebases for SQL injection vectors and missing performance indexes
02Generating complex migration scripts for different environments without manual SQL writing
03Safely renaming columns or changing data types in production databases