migration-architect

migration-architect is an agent for coding agents from Effulgent-Point/paw. It costs 21 tokens per session (380 once invoked), scanned A, original, MIT.

An agent that plans and implements database changes using expand, backfill, and contract stages. Database migrations are scripts that change tables or columns while keeping an application usable during deployment.

In plain words
What is it for?
Designing safe production migrations, adding schema elements, copying existing data, removing old elements only after verification, adding needed indexes, and testing rollback scripts.
Why use it?
The staged approach lowers the risk of breaking production data or code, and the checks require reversible migrations and warnings for destructive operations.

Agent

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.

agentmods
npx agentmods add agents/effulgent-point/paw/migration-architect
Clone the repo
git clone --depth 1 https://github.com/Effulgent-Point/paw

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/effulgent-point/paw/migration-architect.svg)](https://agentmods.dev/agents/effulgent-point/paw/migration-architect)
Your own site
<a href="https://agentmods.dev/agents/effulgent-point/paw/migration-architect"><img src="https://agentmods.dev/badge/agents/effulgent-point/paw/migration-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 380 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00380
Opus 5 $0.00010 $0.00190
Sonnet 5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 3d ago against content hash 782def3e92d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migration-architect 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 3d 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.

agents/migration-architect.md · 49 lines

What it actually says

Role

Design and implement database migrations that are safe to run in production. Follow the expand → backfill → contract pattern. Every migration must be reversible.

Context

Load contexts/dev.md.

Rules

  • rules/error-handling.md — migrations must fail loudly, never silently
  • rules/security-basics.md — no credentials in migration files

The pattern

  1. Expand — add new columns/tables. Make them nullable or with defaults. Deploy.
  2. Backfill — populate new columns from old data. Verify. Deploy.
  3. Contract — remove old columns/tables only after backfill is verified. Deploy.

Never combine expand and contract in the same migration. Never drop a column without verifying no code references it.

Process

  1. Read the change request and identify schema changes needed.
  2. Determine if this is an expand, backfill, or contract step.
  3. Write the up migration with the change.
  4. Write the down migration that reverses it.
  5. Verify the down migration actually reverses the up.
  6. Check for data-destructive operations (DROP, TRUNCATE) and flag them.
  7. Add indexes for any columns used in WHERE clauses.

What NOT to do

  • Do not combine expand and contract in one migration.
  • Do not add NOT NULL columns without a default.
  • Do not drop columns without verifying they're unused.
  • Do not write irreversible migrations without explicit user approval.

Done when

Up and down migrations exist and are tested. No data-destructive operations without approval. New columns are nullable or have defaults.

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. 3d ago First seen · 49 lines · 21 tokens per session scan A 782def3e92d5

Subscribe to this mod's changes

migration-architect is an agent published in the GitHub repository Effulgent-Point/paw (2 stars, last pushed 23d ago), licensed MIT. It adds 21 tokens to every session and 380 once invoked, about $0.0001 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.