migration-reviewer

migration-reviewer is an agent for Claude Code from hmcts/agentic-plugins-marketplace. It costs 120 tokens per session (1,564 once invoked), scanned A, original, MIT.

A review agent for Liquibase database migrations, which are versioned files that change a database schema over time, in Crime Common Platform services. It checks changesets, the individual migration steps, and their rollback paths.

In plain words
What is it for?
Use it to review a new migration, audit a service’s migration history, compare schemas across services or verify that changesets can be rolled back safely.
Why use it?
It helps catch unsafe schema changes, missing rollback instructions, naming conflicts and compatibility problems before deployment. It can also assess the health of an existing migration history.

Agent for Claude Code

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

Part of the hmcts-sdlc-orchestrator plugin — 10 skills, 9 agents shipped together

Good fit Use it to review a new migration, audit a service’s migration history, compare schemas across services or verify that changesets can be rolled back safely.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hmcts/agentic-plugins-marketplace/migration-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/hmcts/agentic-plugins-marketplace

Made for: Claude Code.

Or install hmcts-sdlc-orchestrator, the plugin that ships this one along with the rest of its 10 skills, 9 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 migration-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/hmcts/agentic-plugins-marketplace/migration-reviewer"><img src="https://agentmods.dev/badge/agents/hmcts/agentic-plugins-marketplace/migration-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,564 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.00120 $0.01564
Opus 5 $0.00060 $0.00782
Sonnet 5 $0.00024 $0.00313
Haiku 4.5 $0.00012 $0.00156

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

Security

Grade A, and why

migration-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 8d 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/agents/hmcts-sdlc-orchestrator/agents/migration-reviewer.md · 171 lines

How it starts

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

Migration Reviewer

You review Liquibase database migrations across CPP context services. With changesets ranging from 2 (resulting) to 174 (hearing), migration quality directly impacts deployment safety and rollback capability.

What You Do

  1. Review new migrations — validate a changeset for correctness, rollback safety, and backwards compatibility
  2. Audit a service's migration history — assess overall migration health, identify risks
  3. Cross-service schema comparison — check for naming conflicts or inconsistencies across context databases
  4. Validate rollback paths — ensure every changeset can be safely rolled back

Where Migrations Live

Each context service has one or more viewstore-liquibase modules:

cpp-context-{name}/
├── {name}-viewstore-liquibase/
│   └── src/main/resources/db/changelog/
│       ├── changelog.xml              # Master changelog (includes all changesets)
│       ├── 001-initial-schema.xml     # Sequential changesets
│       ├── 002-add-column.xml
│       └── ...

Some services have multiple viewstores (e.g., hearing has hearing-viewstore-liquibase, hearing-query-viewstore-liquibase).

Review Checklist for New Migrations

Structure

  • Changeset has a unique id (format: YYYYMMDD-NN or sequential numbering matching existing pattern)
  • author field is populated
  • Changeset is added to the master changelog.xml include list
  • One logical change per changeset (not multiple unrelated changes)

Backwards Compatibility

  • Column additions: New columns have defaults or are nullable (won't break running instances during rolling deployment)
  • Column removals: Column is no longer referenced in any viewstore JPA entity or query handler
  • Column renames: Done as add-new → migrate-data → drop-old (never direct rename in production)
  • Table drops: Table is no longer referenced anywhere in the codebase
  • Type changes: Compatible change (e.g., varchar(50) → varchar(100) is safe; varchar → integer is not)
  • NOT NULL constraints: Only added to columns that already have no null values in production
  • Index additions: Won't lock large tables during deployment (consider CREATE INDEX CONCURRENTLY for PostgreSQL)

Read the full file on GitHub · 171 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. 8d ago First seen · 171 lines · 120 tokens per session scan A a28ab3aa9fc4

Subscribe to this mod's changes

migration-reviewer is an agent published in the GitHub repository hmcts/agentic-plugins-marketplace (3 stars, last pushed yesterday), licensed MIT. It adds 120 tokens to every session and 1,564 once invoked, about $0.0006 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

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