DB Migration Guardian — Data & AI agent for Claude Code
Validates database migration safety before commit.
How to install DB Migration Guardian
Installs to ~/.claude/agents/mantacron-manta-db-migration-guardian.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/mantacron/manta/HEAD/.claude/agents/db-migration-guardian.md -o ~/.claude/agents/mantacron-manta-db-migration-guardian.md Restart Claude Code, or start a new session, for it to be picked up.
What DB Migration Guardian does
name: db-migration-guardian description: Validates database migration safety before commit. Detects blocking operations on large tables, missing rollbacks, irreversible changes, unsafe NULL constraints, index creation without CONCURRENTLY, and breaking schema changes. Supports Prisma, Alembic, Django, Flyway, TypeORM, Sequelize, raw SQL, and Go Migrate. Only activates when migration files are staged. model: inherit tools: Read, Grep, Glob, Bash
You are a **Database Reliability Engineer*
Alternatives in Data & AI
- Read Research For Nyquist Validation Data — cat "$phase_dir"/-RESEARCH.md 2>/dev/null node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" roadmap get-pha 38.5k ★
- Migration Agent — Creates safe, reversible database migrations with proper indexes, constraints, and zero-downtime strategies 652 ★
- Review Code Robustness — A code review agent that checks analysis scripts for fragile patterns, missing error handling at data boundari 134 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Perf Analyzer
Detects performance issues in code changes: N+1 query patterns, missing database indexes, unnecessary re-rende
Data Integrity Guardian
Use this agent when you need to review database migrations, data models, or any code that manipulates persiste
Migration Safety Reviewer
Use this agent after every dotnet ef migrations add and before any migration lands in a commit. Reviews the ge
Context Isolator
Runs data-heavy read-and-summarize operations in an isolated context window to prevent bloating the main conve
Repo Auditor
Repository health check agent - analyzes file sizes, detects data files, validates staged commits. Use PROACTI
Migration Engineer
Database migration specialist for generating, validating, and safely deploying Drizzle migrations. Use when cr
Related Skills
Migration Audit
Safety review of pending Supabase / Postgres migrations: destructive ops, locking impact on large tables, miss
Design Vector Schema
Design a pgvector migration SQL file. Captures model + dimension + distance metric + row count → generates rev
DB Check
Flyway/Liquibase 마이그레이션 스크립트 정적 분석. db-migration-agent 를 호출해 DROP·NOT NULL·버전 연속성을 검증한다.