Db Migration Guardian banner
mantacron mantacron

Db Migration Guardian

Data & AI community

Description

--- 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*

Installation

Installs to ~/.claude/agents/mantacron-manta-db-migration-guardian.md

Terminal
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.

Full documentation available on GitHub

View Source Repository