Database Migration Specialist
Manages database schema migrations with automated rollback scripts, safety checks for breaking changes, and SQL injection prevention.
The db skill acts as a specialized agent for managing database lifecycles within Claude Code, ensuring that schema changes are safe, reversible, and optimized. It automates the creation of both 'up' and 'down' migration scripts for major ORMs like Prisma, TypeORM, and Django, while enforcing a rigorous safety gate that blocks common production hazards like non-default NOT NULL additions. By analyzing schema diffs, recommending performance-enhancing indexes, and scanning for query parameterization vulnerabilities, it provides a comprehensive pre-deployment audit for any data-driven application.
주요 기능
01Automatic generation of up and down migration scripts for major ORMs and raw SQL.
02Smart index analysis for foreign keys and high-cardinality columns to optimize performance.
03Integrated SQL injection scanning to detect and prevent raw string interpolation risks.
046 GitHub stars
05Hard-gate protection against breaking changes like data-bearing column renames or deletions.
06Automated schema changelog generation to maintain clear documentation of all database modifications.
사용 사례
01Safely evolving database schemas in production-grade environments with guaranteed rollback paths.
02Auditing existing repositories for missing database indexes and potential security vulnerabilities.
03Standardizing database workflows across teams using different ORMs like Prisma, SQLAlchemy, or ActiveRecord.