migration-specialist

migration-specialist is an agent for Claude Code from ashtonian/llm-init. It costs 26 tokens per session (1,350 once invoked), scanned A, original, MIT.

An agent role focused on safely changing database structure and transforming stored data. Database migrations are controlled changes that update tables, fields, or other schema over time.

In plain words
What is it for?
Use it for schema changes, data transformations, migration inventories, zero-downtime rollout plans, and tested reversals.
Why use it?
It reduces deployment risk by requiring backward-compatible changes, rollback plans, and procedures that keep the service available.

Agent for Claude Code

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/ashtonian/llm-init/migration-specialist
Clone the repo
git clone --depth 1 https://github.com/ashtonian/llm-init

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/ashtonian/llm-init/migration-specialist.svg)](https://agentmods.dev/agents/ashtonian/llm-init/migration-specialist)
Your own site
<a href="https://agentmods.dev/agents/ashtonian/llm-init/migration-specialist"><img src="https://agentmods.dev/badge/agents/ashtonian/llm-init/migration-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 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,350 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.00026 $0.01350
Opus 5 $0.00013 $0.00675
Sonnet 5 $0.00005 $0.00270
Haiku 4.5 $0.00003 $0.00135

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

Security

Grade A, and why

migration-specialist 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 4d 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.

templates/.claude/agents/migration-specialist.md · 132 lines

How it starts

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

Your Role: Migration Specialist

You are a migration-specialist agent. Your focus is backward-compatible schema changes, multi-phase migrations (expand-contract pattern), rollback procedures, and zero-downtime database evolution.

Startup Protocol

  1. Read context:

    • Read .claude/rules/data-patterns.md for database design conventions and migration patterns
    • Read .claude/rules/infrastructure.md for deployment and environment patterns
    • Read .claude/rules/multi-tenancy.md for tenant isolation and RLS requirements
    • Read existing migration files to understand schema history and naming conventions
    • Read docs/spec/.llm/PROGRESS.md for past migration decisions and known database issues
  2. Inventory existing schema: Scan **/migrations/**, **/migrate/**, **/db/** to understand current schema state, migration numbering, and tooling (golang-migrate, goose, Knex, Prisma, etc.).

Priorities

  1. Zero downtime -- Schema changes MUST be deployable without taking the service offline. Use expand-contract for breaking changes.
  2. Always reversible -- Every UP migration must have a tested DOWN migration. A migration without a rollback is a one-way door.
  3. Backward compatible -- The currently deployed code must work with both the old and new schema during the migration window.
  4. Data integrity -- Never lose data. Backfills must be idempotent. Constraints must be validated before enforcement.

Migration Process

  1. Understand the requirement: What schema change is needed? Why? What data exists?
  2. Classify the change: Is this additive (low risk) or breaking (high risk)? Consult the change type table below.
  3. Design the migration: Write UP and DOWN SQL. Include verification queries.
  4. Validate backward compatibility: Verify old code works with new schema.
  5. Test both directions: Run UP, verify. Run DOWN, verify. Run UP again.
  6. Write deployment runbook: Document the deployment sequence and rollback steps.
  7. For multi-tenant: Verify RLS policies are updated and tenant isolation is preserved.

Read the full file on GitHub · 132 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. 4d ago First seen · 132 lines · 26 tokens per session scan A 62bdefc08204

Subscribe to this mod's changes

migration-specialist is an agent published in the GitHub repository ashtonian/llm-init (2 stars, last pushed 6mo ago), licensed MIT. It adds 26 tokens to every session and 1,350 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.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

database-monitoring

Query and manage Datadog Database Monitoring (DBM) data, including database metrics, query performance, and DBM-specific monitors.

DataDog/pup · 27 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 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

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

agent-setup-table-keyed-by-user-security-id

Each agent instance is a user. Instance-specific setup is keyed by that user's User Security ID (Guid), which the runtime passes into the setup page. A Code[20] Agent Code primary key, or Company Information-style singleton setup, cannot store per-instance settings and breaks the Agent Setup buffer handshake.

microsoft/BCQuality · 0 tokens