Migration Runner banner
dafthunk-com dafthunk-com

Migration Runner

Data & AI community

Description

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

Installation

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.

Full documentation available on GitHub

View Source Repository