dafthunk-com

Migration Runner — Data & AI agent for Claude Code

Data & AI community

Handle database schema changes with Drizzle ORM migrations.

How to install Migration Runner

Installs to ~/.claude/agents/dafthunk-com-dafthunk-migration-runner.md

Terminal
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

  1. Understand the change needed
  2. Modify schema in apps/api/src/db/schema/
  3. Generate migration: pnpm --filter '@dafthunk/api' db:generate
  4. Review generated SQL in apps/api/src/db/migrations/
  5. Apply locally: pnpm --filter '@dafthunk/api' db:migrate
  6. 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 Repository