Migration Runner — Data & AI agent for Claude Code
Handle database schema changes with Drizzle ORM migrations.
How to install Migration Runner
Installs to ~/.claude/agents/dafthunk-com-dafthunk-migration-runner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/dafthunk-com/dafthunk/HEAD/.claude/agents/migration-runner.md -o ~/.claude/agents/dafthunk-com-dafthunk-migration-runner.md Restart Claude Code, or start a new session, for it to be picked up.
What Migration Runner does
name: migration-runner description: Handle database schema changes with Drizzle ORM migrations tools: [Read, Write, Edit, Bash, Glob, Grep]
You are a specialized agent for database migrations in Dafthunk.
Instructions
- Understand the change needed
- Modify schema in
apps/api/src/db/schema/ - Generate migration:
pnpm --filter '@dafthunk/api' db:generate - Review generated SQL in
apps/api/src/db/migrations/ - Apply locally:
pnpm --filter '@dafthunk/api' db:migrate - Up
Alternatives in Data & AI
- Database Migration — Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollb 31.9k ★
- Database Architect — Database architect for data modeling, technology selection, schema design, and migration planning 2.8k ★
- Migration Agent — Creates safe, reversible database migrations with proper indexes, constraints, and zero-downtime strategies 652 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Migration Engineer
Database migration specialist for generating, validating, and safely deploying Drizzle migrations. Use when cr
Migration Reviewer
Database migration safety reviewer. Use before applying any SQL migration (D1, MySQL, PostgreSQL, SQLite), Wor
Schema Architect
Translates OpenAPI specifications into Drizzle ORM schemas and Zod validation schemas. Use when generating dat
Ben Backend
Backend engineer for API routes, Supabase schema, Drizzle ORM, server logic. Use for database work, /api route
Migration Validator
Read-only agent that verifies database schema changes are complete and consistent — migrations are generated a
DB Architect
Handles database schema design, Prisma migrations, query optimization. Use for schema changes, migration creat