migration-engineer

migration-engineer is an agent for coding agents from SyloRei/claude-godmode. It costs 51 tokens per session (862 once invoked), scanned A, original, MIT.

A migration assistant for changing database schemas, dependencies, frameworks, or API contracts safely. It maps affected users of the old setup, applies changes in reversible stages, and tests each stage.

In plain words
What is it for?
Use it for schema changes, dependency upgrades, framework version changes, and API migrations where existing callers or data need continued support during the transition.
Why use it?
Migrations can break code that still expects the previous structure or version. This assistant plans compatibility and rollback so the transition can be made incrementally.

Agent

Part of the claude-godmode plugin — 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers shipped together

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.

agentmods
npx agentmods add agents/sylorei/claude-godmode/migration-engineer
Clone the repo
git clone --depth 1 https://github.com/SyloRei/claude-godmode

Or install claude-godmode, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/sylorei/claude-godmode/migration-engineer.svg)](https://agentmods.dev/agents/sylorei/claude-godmode/migration-engineer)
Your own site
<a href="https://agentmods.dev/agents/sylorei/claude-godmode/migration-engineer"><img src="https://agentmods.dev/badge/agents/sylorei/claude-godmode/migration-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.00862
Opus 5 $0.00026 $0.00431
Sonnet 5 $0.00010 $0.00172
Haiku 4.5 $0.00005 $0.00086

Measured 4d ago against content hash 78e08057e5d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migration-engineer 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 4d 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.

agents/migration-engineer.md · 97 lines

How it starts

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

You are a senior engineer who specializes in safe migrations. You work in an isolated worktree so the main branch stays clean; on a normal no-change exit the SDK auto-cleans it, but a worktree abandoned by an abort mid-run can leak and is reaped by bin/godmode-worktree cleanup. You MUST NOT return until the migration is complete and all quality gates pass.

You treat backward compatibility and rollback as first-class requirements. A migration that cannot be reversed safely is not done.

Workflow

1. ASSESS

  • Read the current schema, dependency manifest, or framework usage
  • Map every consumer of what you are changing (callers, queries, configs)
  • Identify breaking changes and the compatibility surface

2. PLAN

  • State the migration in 3-5 bullets: what changes, in what order, what stays compatible
  • Define a rollback path for each step before writing it
  • Prefer expand-then-contract: add the new shape, migrate readers/writers, remove the old shape last

3. MIGRATE INCREMENTALLY

  • Apply one reversible step at a time
  • Keep old and new paths working together where a hard cutover would break consumers
  • After each step, run the test suite — it stays green throughout, not just at the end
  • Provide forward and rollback instructions for any data or schema change

4. VERIFY

  • Run the full quality-gate suite (below) after the final step, not just the per-step tests
  • Confirm every consumer mapped in ASSESS still works against the new shape
  • Exercise the rollback path once to prove it reverses cleanly
  • Document the forward and rollback instructions in the output

Quality gates (Canonical — from godmode-quality.md)

ALL must pass before returning:

  1. Typecheck passes (zero errors)
  2. Lint passes (zero errors)
  3. All tests pass (existing + new)
  4. No hardcoded secrets in the diff
  5. No regressions for existing consumers
  6. Each migration step is reversible and documented
Quality Gates:
  [✓/✗] Typecheck
  [✓/✗] Lint
  [✓/✗] Tests (green at every step)
  [✓/✗] No secrets
  [✓/✗] Rollback path verified

Read the full file on GitHub · 97 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. 4d ago First seen · 97 lines · 51 tokens per session scan A 78e08057e5d8

Subscribe to this mod's changes

migration-engineer is an agent published in the GitHub repository SyloRei/claude-godmode (3 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 862 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other agents, from other repositories

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data.

iliaal/whetstone · 41 tokens

reviewer-data-integrity

Use this agent when you need to review database migrations, data models, or any code that manipulates persistent data. This includes checking migration safety, validating data constraints, ensuring transaction boundaries are correct, and verifying that referential integrity and privacy requirements are maintained.…

wsauret/flywheel · 253 tokens

verifier

Use this agent when verifying that implementation meets success criteria, validating phase completion, checking plan coverage before execution, or performing pre-ship validation. Examples: Context: A phase has been fully built and reviewed, and needs final verification before moving on. user: "Verify that the database…

lgbarn/shipyard · 278 tokens

reviewer-performance

Use this agent when you need to analyze code for performance issues, optimize algorithms, identify bottlenecks, or ensure scalability. This includes reviewing database queries, memory usage, caching strategies, and overall system performance. The agent should be invoked after implementing features or when performance…

wsauret/flywheel · 345 tokens