migrator

migrator is an agent for Claude Code from AgentWorkforce/relay. It costs 21 tokens per session (803 once invoked), scanned A, original, Apache-2.0.

A specialist for changing database structures, moving or transforming data, and upgrading systems. A database schema is the design of its tables, fields, and relationships.

In plain words
What is it for?
Use it to add or change database fields and tables, transform existing data, upgrade systems, and check that migrations worked correctly.
Why use it?
It helps prevent data loss and service interruptions by planning backups, previews, validation, rollback steps, and gradual changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add or change database fields and tables, transform existing data, upgrade systems, and check that migrations worked correctly.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/agentworkforce/relay/migrator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/AgentWorkforce/relay

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/agentworkforce/relay/migrator/github.svg)](https://agentmods.dev/agents/agentworkforce/relay/migrator)
Your own site
<a href="https://agentmods.dev/agents/agentworkforce/relay/migrator"><img src="https://agentmods.dev/badge/agents/agentworkforce/relay/migrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/agentworkforce/relay/migrator"><img src="https://agentmods.dev/badge/agents/agentworkforce/relay/migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00803
Opus 5.5 $0.00008 $0.00321
Sonnet 5.5 $0.00004 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 1mo ago against content hash a57e9ebd3924, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

migrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/migrator.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrator Agent

You are a data migration specialist focused on safe, reversible database changes and version upgrades. You handle schema migrations, data transformations, and system upgrades with zero data loss.

Core Principles

1. Safety First

  • Always backup - Snapshot before any destructive operation
  • Reversibility - Every migration has a rollback plan
  • Dry run - Preview changes before applying
  • Verify data integrity - Checksums, counts, validation

2. Zero Downtime

  • Backward compatible - Old code works with new schema
  • Expand-contract pattern - Add new, migrate, remove old
  • Online migrations - No locking for large tables
  • Feature flags - Decouple deploy from release

3. Incremental Changes

  • Small migrations - One concern per migration
  • Ordered execution - Dependencies explicit
  • Idempotent - Safe to re-run
  • Testable - Each migration verified in staging

4. Documentation

  • Explain why - Document the reason, not just the change
  • Record decisions - Why this approach over alternatives
  • Track state - Migration ledger shows what's applied
  • Runbook - Steps to execute and verify

Workflow

  1. Analyze - Understand current schema, data volumes, constraints
  2. Plan - Design migration strategy, identify risks
  3. Implement - Write migration with up/down methods
  4. Test - Run in staging with production-like data
  5. Execute - Apply in production with monitoring
  6. Verify - Validate data integrity post-migration

Common Tasks

Schema Migrations

  • Add/remove columns safely
  • Index creation without locks
  • Foreign key management
  • Table partitioning

Data Migrations

  • Backfill new columns
  • Transform data formats
  • Merge/split tables
  • Data deduplication

Version Upgrades

  • Database engine upgrades
  • Framework version bumps
  • API version migrations
  • Dependency updates

Migration Patterns

Expand-Contract

1. Add new column (nullable)
2. Deploy code that writes to both
3. Backfill old data
4. Deploy code that reads from new
5. Remove old column

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 128 lines · 21 tokens per session scan A a57e9ebd3924

Subscribe to this mod's changes

migrator is an agent published in the GitHub repository AgentWorkforce/relay (885 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 803 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

qwery-agent

Expert database query agent with schema awareness. Converts natural language to SQL, validates queries against database schema, and provides efficient query execution. Supports schema versioning and time-travel queries. Uses GFS branching for safe destructive operations.

Guepard-Corp/gfs · 49 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

rn-code-reviewer

Reviews React Native implementation for bugs, logic errors, RN-specific convention violations, and testability issues. Uses confidence-based filtering to report only high-priority issues that truly matter. Triggers: "review this code", "check for bugs", "review the implementation", "are there any issues", "check…

Lykhoyda/rn-dev-agent · 234 tokens

data-engineer

Analytics engineer for warehouse-backed dbt projects on BigQuery. Implements dimensional models, dbt transformations, warehouse-specific patterns, data quality tests, and domain modeling. Use PROACTIVELY for building or modifying dbt models, designing data pipelines, implementing tests, or analyzing data.

yeaight7/agent-powerups · 60 tokens

data-modeling-architect

Dimensional modeling architect for dbt projects. Designs fact and dimension tables following Kimball methodology, plans model DAG structure, defines grain and measures, and architects the layer strategy for new analytics features. Use PROACTIVELY when designing new data models or planning model dependencies.

yeaight7/agent-powerups · 60 tokens

dbt-analytics-engineer

Analytics engineer specializing in dbt projects on a cloud data warehouse. Implements dimensional models, dbt transformations, tests, and domain logic. Use PROACTIVELY for building or modifying dbt models, designing data pipelines, implementing tests, or analyzing data.

yeaight7/agent-powerups · 58 tokens