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.
npx skills add tmj-90/gaffer --skill migration-reviewgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/migration-review)<a href="https://agentmods.dev/skills/tmj-90/gaffer/migration-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/migration-review/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.
<a href="https://agentmods.dev/skills/tmj-90/gaffer/migration-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/migration-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.01388 |
| Opus 5.5 | $0.00038 | $0.00555 |
| Sonnet 5.5 | $0.00019 | $0.00278 |
| Haiku 4.5 | $0.00009 | $0.00139 |
Grade A, and why
migration-review 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migration review lens
A schema change is the one part of a deploy a redeploy cannot undo. For every migration ask three questions: what happens on the live database while it runs (locks, rewrites, duration); what happens mid-rollout, when old and new code both run against one schema; and how do we get back. A finding is a concrete defect: a named statement, the lock or data loss it causes, and the safe form.
Steps
- Inventory every schema and data change: migration files, ORM model or schema
changes that generate migrations (read the generated SQL — Prisma and some ORMs turn a
rename into drop + add), seed and backfill scripts, queries that assume the new shape.
Call
search_lorefor the engine and version, the migration tool, deploy order and any online-migration rules. - Simulate the rollout (expand → migrate → contract). Old code keeps running against the new schema until rollout completes; new code may run against the old schema if the migration runs after deploy. Every combination must work: a dropped or renamed column old code still reads breaks the deploy; a NOT NULL column without a default breaks old inserts; an ORM that selects every mapped column fails on a dropped one.
- Check locks and rewrites for the engine in use (checklist below). On PostgreSQL
remember the lock queue: an
ALTER TABLEwaiting for its ACCESS EXCLUSIVE lock behind a long query blocks every query after it — DDL on a busy table needs a shortlock_timeout(with retry) so it fails fast instead of queueing. - Check reversibility. A working
downthat does not destroy data, or a documented forward-fix. Destructive steps (drop column/table, delete rows, narrowing a type) are in a later deploy than the code change that stopped using them, and data is copied or archived first. - Check data integrity. Constraints match the model's validations (NOT NULL,
unique, foreign keys with a deliberate
ON DELETE); backfills are idempotent, batched, resumable and outside the schema transaction; enum/status additions are additive; the migration works on a table that already has rows, including rows that violate the new constraint. - Check the tests. If an AC depends on existing data surviving (a rename, a type
change, a backfill), a test applies the migration to a database seeded with old-shape
rows and asserts the data afterwards — an empty-database migration run proves only
that the SQL parses (the
test-quality-reviewskill). - Rate each finding. Blocking: data loss; a table-rewriting or long-locking statement
on a table the app writes during deploy; a deploy-order break; an irreversible
destructive step without a preceding phase; a constraint that fails on existing rows.
Should-fix: a missing constraint the model assumes; an unbatched backfill on a large
table. Note: a missing index for a new query (the
sql-query-performanceskill), unless that query becomes unbounded on a table that grows with user input (then it is blocking underperformance-review); naming and style. Only blocking and should-fix justifyRECOMMEND CHANGES. - Record each finding with
record_ac_evidence(evidence_type: manual_note: statement, hazard, safe form), then let thereview-ticketverdict carry the result.
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.
- 2mo ago Changed · +21 lines edbec0a0e80f
- 2mo ago First seen · 67 lines · 94 tokens per session scan A ab73fda4a863
migration-review is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 94 tokens to every session and 1,388 once invoked, about $0.0004 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-28.
migration-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migration-reviewtmj-90/gaffer | Skill | 1 | yesterday | Apache-2.0 | A | 94 | Claude Code, Codex |
| test-auditQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 0 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |
| spec-drift-checkQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 54 | Claude Code |
| besimple-broccoli-blindbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 58 | Claude Code, Codex |
| code-review-loopbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 40 | Claude Code, Codex |
| dedupbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 32 | Claude Code, Codex |