data-migrations-reviewer

data-migrations-reviewer is a skill for Claude Code, Codex from gvkhosla/compound-engineering-pi. It costs 55 tokens per session (985 once invoked), scanned A, original, MIT.

A code-review specialist for database migrations, schema changes, data transformations, and backfill scripts. A migration changes database structure or data as part of deploying new software.

In plain words
What is it for?
Use it to review column changes, value mappings, data conversions, backfills, destructive operations, and behaviour during partial or failed deployments.
Why use it?
A deployment can run old and new code against partly changed data, and a failed or irreversible migration can corrupt records or block recovery. This review looks for mapping errors, missing backfills, and unsafe rollback plans.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review column changes, value mappings, data conversions, backfills, destructive operations, and behaviour during partial or failed deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gvkhosla/compound-engineering-pi/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.

Any agent
npx skills add gvkhosla/compound-engineering-pi --skill data-migrations-reviewer
Clone the repo
git clone --depth 1 https://github.com/gvkhosla/compound-engineering-pi

Made for: Claude Code, Codex.

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/skills/gvkhosla/compound-engineering-pi/data-migrations-reviewer/github.svg)](https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/data-migrations-reviewer)
Your own site
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/data-migrations-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/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/skills/gvkhosla/compound-engineering-pi/data-migrations-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/data-migrations-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 985 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.00055 $0.00985
Opus 5.5 $0.00022 $0.00394
Sonnet 5.5 $0.00011 $0.00197
Haiku 4.5 $0.00006 $0.00098

Measured 1mo ago against content hash e9ff3fc7b9b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

skills/data-migrations-reviewer/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 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

  • Swapped or inverted ID/enum mappings -- hardcoded mappings where 1 => TypeA, 2 => TypeB in code but the actual production data has 1 => TypeB, 2 => TypeA. This is the single most common and dangerous migration bug. When mappings, CASE/IF branches, or constant hashes translate between old and new values, verify each mapping individually. Watch for copy-paste errors that silently swap entries.
  • 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.
  • Orphaned references to removed columns or tables -- when a migration drops a column or table, search for remaining references in serializers, API responses, background jobs, admin pages, rake tasks, eager loads (includes, joins), and views. An includes(:deleted_association) will crash at runtime.
  • Broken dual-write during transition periods -- safe column migrations require writing to both old and new columns during the transition window. If new records only populate the new column, rollback to the old code path will find NULLs or stale data. Verify both columns are written for the duration of the transition.
  • Missing transaction boundaries on multi-step transforms -- a backfill that updates two related tables without a transaction can leave data half-migrated on failure. Check that multi-table or multi-step data transformations are wrapped in transactions with appropriate scope.
  • 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.

Read the full file on GitHub · 49 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 · 49 lines · 55 tokens per session scan A e9ff3fc7b9b3

Subscribe to this mod's changes

data-migrations-reviewer is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (52 stars, last pushed 15d ago), licensed MIT. It adds 55 tokens to every session and 985 once invoked, about $0.0002 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-09-15.

Related

Other skills, from other repositories

review-harness

Use when reviewing implementation work that ran through a /tmp Pi task harness. Checks contract drift, unsafe shortcuts, validation evidence, and status honesty.

spences10/my-pi · 33 tokens

triage-contributor-pr

Triage open pull requests from external contributors to prisma/orm and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version…

prisma/orm · 131 tokens

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

review-triage-phase

Produces canonical review actions from fetched review state and renders action markdown. Use when the user wants only triage/action-planning for the review-framework workflow.

prisma/orm · 36 tokens

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

fabric-spec

Starts a persistent Pi Fabric spec supervisor that audits the main session against a feature design spec and steers only when a requirement lacks verified evidence. Use for strict, unblocked spec compliance while the main agent keeps full freedom to orchestrate.

monotykamary/pi-fabric · 50 tokens