CLSkills
Back to Agents

Database Migration Agent

Available

Schema changes without the sweating

Database6 skills

What It Does

Generates safe database migrations, validates them against production data patterns, creates rollback plans, and checks for data loss. Supports Prisma, TypeORM, Knex, raw SQL, and more.

Features

  • Generates migration files from schema diffs
  • Validates migrations for data safety
  • Creates automatic rollback scripts
  • Checks for destructive operations (column drops, type changes)
  • Generates seed data for new tables
  • Optimizes queries affected by schema changes
  • Supports multiple ORMs and raw SQL

Triggers

On schema change Manual request Before deployment

Trust Levels

Ask First
Agent suggests, you approve
Report Only
Agent reports findings

Use Cases

  • Safe database changes in production environments
  • Migrating between database versions
  • Adding new tables/columns without downtime

Example Prompts

Generate migration for the new users table
Is this migration safe for production?
Create a rollback plan

Quick Info

CategoryDatabase
Skills Used6
Trust Levels2
StatusAvailable

Install This Agent

Install command:

curl -o ~/.claude/skills/database-migration-agent.md https://clskills.in/agents/database-migration-agent.md

Drop into ~/.claude/skills/ and invoke with /database-migration-agent

Want this customized for YOUR stack?

AI generates a personalized version of this agent tailored to your framework, conventions, and workflow.