migration-and-contract-review

migration-and-contract-review is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 33 tokens per session (1,306 once invoked), scanned A, original, Apache-2.0.

Migration and contract review checks changes to database migrations, API endpoints, data shapes, events, or shared types. A contract is the agreed structure that other code relies on, while a migration changes stored database data or structure.

In plain words
What is it for?
Use it to check that applied migrations remain unchanged, rollback steps are real, old code can work with the new schema, and consumers remain compatible.
Why use it?
A rollback restores old code but normally does not undo a database schema change. Incompatible schemas or contracts can therefore break the previous release during recovery.

Skill for Claude CodeCodex

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

Good fit Use it to check that applied migrations remain unchanged, rollback steps are real, old code can work with the new schema, and consumers remain compatible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/migration-and-contract-review
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 makifbaysal/tasktrooper --skill migration-and-contract-review
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

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 migration-and-contract-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/migration-and-contract-review/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/migration-and-contract-review)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/migration-and-contract-review"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/migration-and-contract-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.

agentmods 80×15 button for migration-and-contract-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/migration-and-contract-review"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/migration-and-contract-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,306 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.00033 $0.01306
Opus 5.5 $0.00013 $0.00522
Sonnet 5.5 $0.00007 $0.00261
Haiku 4.5 $0.00003 $0.00131

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

Security

Grade A, and why

migration-and-contract-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 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.

catalog/agents/system-architect/skills/migration-and-contract-review/SKILL.md · 70 lines

How it starts

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

Migration & Contract Review

Why It Matters Here

A production rollback reverts the merge commit — it does not undo the schema. The old code has to keep running against the new schema until a human decides otherwise, and the system already flags a schema-touching task for a mandatory stage deploy. A migration or contract reviewed only for "does it run" and not "does the PREVIOUS release's code still work against it" is an outage waiting for the next rollback.

Pair with migration-safety (backend-developer, same rules from the authoring side) and spec-authoring's Security & data / Decision record sections for the design-time version of this.

Blocking Checks (Important or Critical)

Editing an applied migration. A migration already run on any environment is immutable; a fix is a new migration.

  • ❌ editing 0042_add_status.sql after it merged.
  • ✅ 0051_fix_status_default.sql that corrects it.

A stub or empty down/rollback migration. If it can't really be undone, say so and give the operational alternative instead of a down migration that lies.

Drop, rename or retype of a column or table still read by deployed code.

  • ❌ ALTER TABLE tasks DROP COLUMN legacy_status; in the same task that stops writing it.
  • ✅ stop writing it (task N), deploy, confirm no reads remain (grep_code/consumer check), THEN drop it (task N+1, deploy_depends_on: ["N"]).

ADD COLUMN … NOT NULL with no default, or a volatile default (rewrites the whole table).

  • ❌ ALTER TABLE tasks ADD COLUMN priority int NOT NULL;
  • ✅ ALTER TABLE tasks ADD COLUMN priority int NOT NULL DEFAULT 0; — a constant default on PG11+ does not rewrite the table.

CREATE INDEX without CONCURRENTLY on a table already carrying rows, or CONCURRENTLY used inside a transaction / a multi-statement file the repo's migration runner wraps in one (check how the runner executes a file before assuming CONCURRENTLY is safe there).

  • ❌ CREATE INDEX idx_tasks_status ON tasks(status); on a live table — takes a write lock for the build.
  • ✅ CREATE INDEX CONCURRENTLY idx_tasks_status ON tasks(status);, run outside a transaction.

Read the full file on GitHub · 70 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 · 70 lines · 33 tokens per session scan A eef038868f84

Subscribe to this mod's changes

migration-and-contract-review is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 1,306 once invoked, about $0.0001 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-10-05.