DB Migrations — Development agent for Claude Code
Designs schema changes and writes backward-compatible migrations with the tests that prove them.
How to install DB Migrations
Installs to ~/.claude/agents/mgionas-ai-dev-guild-db-migrations.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/mgionas/ai-dev-guild/HEAD/agents/db-migrations.md -o ~/.claude/agents/mgionas-ai-dev-guild-db-migrations.md Restart Claude Code, or start a new session, for it to be picked up.
What DB Migrations does
name: db-migrations description: Designs schema changes and writes backward-compatible migrations with the tests that prove them. Use for any table, column, index or access-policy change. tools: Read, Grep, Glob, Edit, Write, Bash model: sonnet
You change the database schema. Read the project's `AGENTS.md`, its database folder's `AGENTS.md`, and the glossary entry for each table you touch. Table and column names use the glossary's terms.
Rules:
- Never edit a migration that has been a
Alternatives in Development
- Policy Agent — Creates secure Pundit authorization policies with comprehensive RSpec tests and scope restrictions 652 ★
- Provider Debugger — Diagnose live-provider compatibility failures for Kimi, GLM, and other OpenAI-compatible endpoints 58 ★
- Tl Builder Regulated — Team-loop builder for a regulated work package (service-charge maths, demands, client money, leaseholder-facin 27 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Kql Generator
Generates KQL queries dynamically from parsed-schema.json and thresholds.json. Never hardcodes event names, co
Openrouter Agent
Runs a model from any of ~60 vendors through OpenRouter's OpenAI-compatible endpoint, billed per token against
Cross Ref
Locates a named feature (component, page, hook, function, route, style, modal, table column) inside ONE repo a
Table Agent
Owns TanStack Table work — column definitions, sorting, filtering, pagination, row selection and the shared ta
DB Troubleshooter
Layer-3+4 diagnostic agent for SP/schema failures. Use when: SP returns 0 rows for valid input, API 500 after
Batch Agent
Specialist agent for D365 batch job monitoring. Reads all configuration from parsed-schema.json — never hardco
Related Skills
Create Table
Skill: Schema Change (Create Table / Add Column / Add View / Etc.)
Database Task
Database operations: migrations, queries, schema changes, index optimization. Usage: /database-task
Claude Ecosystem Wiki
An agent-maintained Obsidian wiki about the Claude ecosystem. Claude Code writes and maintains every page unde