data-migrations-reviewer

data-migrations-reviewer is an agent for Claude Code from tmchow/tmc-marketplace. It costs 53 tokens per session (721 once invoked), scanned A, original, MIT.

A code-review agent focused on database migrations, schema changes, data transformations, and backfill scripts. A migration is a planned change to a database structure or its existing data.

In plain words
What is it for?
Use it when a code change adds, removes, renames, or changes database fields, constraints, data transformations, or backfills.
Why use it?
It checks whether deployments could lose data, fail while old and new code overlap, or leave the database inconsistent. It pays particular attention to rollback plans, existing rows, and deployment order.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the iterative-engineering plugin — 12 skills, 18 agents shipped together

Good fit Use it when a code change adds, removes, renames, or changes database fields, constraints, data transformations, or backfills.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tmchow/tmc-marketplace/data-migrations-reviewer
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/tmchow/tmc-marketplace

Made for: Claude Code.

Or install iterative-engineering, the plugin that ships this one along with the rest of its 12 skills, 18 agents.

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 data-migrations-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tmchow/tmc-marketplace/data-migrations-reviewer/github.svg)](https://agentmods.dev/agents/tmchow/tmc-marketplace/data-migrations-reviewer)
Your own site
<a href="https://agentmods.dev/agents/tmchow/tmc-marketplace/data-migrations-reviewer"><img src="https://agentmods.dev/badge/agents/tmchow/tmc-marketplace/data-migrations-reviewer/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 data-migrations-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/tmchow/tmc-marketplace/data-migrations-reviewer"><img src="https://agentmods.dev/badge/agents/tmchow/tmc-marketplace/data-migrations-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 721 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.00053 $0.00721
Opus 5 $0.00026 $0.00360
Sonnet 5 $0.00011 $0.00144
Haiku 4.5 $0.00005 $0.00072

Measured 10d ago against content hash f4205f5fbc52, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

data-migrations-reviewer 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 10d 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.

plugins/iterative-engineering/agents/data-migrations-reviewer.md · 48 lines

How it starts

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

Data Migrations Reviewer

You are a data integrity and migration safety expert who evaluates schema changes and data transformations from the perspective of "what happens during deployment" — the window where old code runs against new schema, new code runs against old data, and partial failures leave the database in an inconsistent state.

What you're hunting for

  • Irreversible migrations without rollback plan — column drops, type changes that lose precision, data deletions in migration scripts. If down doesn't restore the original state (or doesn't exist), flag it. Not every migration needs to be reversible, but destructive ones need explicit acknowledgment.
  • Missing data backfill for new non-nullable columns — adding a NOT NULL column without a default value or a backfill step will fail on tables with existing rows. Check whether the migration handles existing data or assumes an empty table.
  • Schema changes that break running code during deploy — renaming a column that old code still references, dropping a column before all code paths stop reading it, adding a constraint that existing data violates. These cause errors during the deploy window when old and new code coexist.
  • Index changes on hot tables without timing consideration — adding an index on a large, frequently-written table can lock it for minutes. Check whether the migration uses concurrent/online index creation where available, or whether the team has accounted for the lock duration.
  • Data loss from column drops or type changes — changing text to varchar(255) truncates long values silently. Changing float to integer drops decimal precision. Dropping a column permanently deletes data that might be needed for rollback.

Confidence calibration

Your confidence should be high (0.80+) when migration files are directly in the diff and you can see the exact DDL statements — column drops, type changes, constraint additions. The risk is concrete and visible.

Your confidence should be moderate (0.60-0.79) when you're inferring data impact from application code changes — e.g., a model adds a new required field but you can't see whether a migration handles existing rows.

Read the full file on GitHub · 48 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. 10d ago First seen · 48 lines · 53 tokens per session scan A f4205f5fbc52

Subscribe to this mod's changes

data-migrations-reviewer is an agent published in the GitHub repository tmchow/tmc-marketplace (22 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 721 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-30.

Related

Other agents, from other repositories

review-triager

Triage GitHub PR review threads into an action plan and administer threads (reply/react/resolve) with an implementer’s pragmatism. Use when a PR has review comments that need deciding: address now, defer, out-of-scope, or already fixed.

prisma/orm · 0 tokens

review-implementer

Implements a PR’s review action list, commits in small logical steps, and resolves GitHub review threads with “Done” replies when finished. Use when review-actions.md exists for a PR.

prisma/orm · 44 tokens

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking. Automatically scans Core Data code for the 5 most critical safety violations - schema migration risks, thread-confinement errors, N+1 query patterns, production data loss risks, and performance issues…

CharlesWiltgen/Axiom · 261 tokens

database-optimization-reviewer

Use when database performance is in question — query optimization, indexing strategy, query plans, schema/access-pattern tradeoffs, or "is this the fastest way to read/write this data". The DB performance specialist (distinct from database-reviewer, which owns migration correctness/reversibility). Verifies against the…

jeremylongshore/tons-of-skills-marketplace · 71 tokens

database-reviewer

Use when reviewing schema changes, migrations, indexes, or query patterns — verifies reversibility, index strategy, and query-plan correctness against the db persona standards.

jeremylongshore/tons-of-skills-marketplace · 35 tokens

database-reviewer

Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.

sangrokjung/claude-forge · 52 tokens