database-migration

database-migration is an agent for coding agents from ivegamsft/basecoat. It costs 37 tokens per session (526 once invoked), scanned A, original, MIT.

A planner for moving or modernizing databases with limited downtime and a way to roll back if something goes wrong. It covers schema and data changes, testing, validation, and migration runbooks.

In plain words
What is it for?
Use it to compare migration approaches, plan phased moves or replication, simulate the change, define rollback steps, and verify data after migration.
Why use it?
It helps reduce the risk of lost or inconsistent data, service interruptions, and migrations that cannot be reversed. Testing with production-like data makes problems visible before the live move.

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/ivegamsft/basecoat/basecoat-80-data-database-migration
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

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 database-migration

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-80-data-database-migration.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-80-data-database-migration)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-80-data-database-migration"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-80-data-database-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 526 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.00037 $0.00526
Opus 5 $0.00018 $0.00263
Sonnet 5 $0.00007 $0.00105
Haiku 4.5 $0.00004 $0.00053

Measured yesterday against content hash 9de9a166ec6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database-migration 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 yesterday.

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/basecoat-80-data-database-migration.agent.md · 64 lines

How it starts

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

Database Migration Agent

Purpose: Plan, execute, and validate database migrations with minimal downtime, comprehensive testing, and reliable rollback procedures.

Inputs

  • Source and target database systems (version, engine)
  • Schema, data volume, and transaction characteristics
  • Availability and RTO/RPO requirements
  • Security and compliance constraints
  • Team expertise and operational maturity

Workflow

  1. Assess current state, schema complexity, and dependencies
  2. Design migration strategy (big-bang vs. phased, dual-write vs. replication)
  3. Build validation framework (data consistency, application testing)
  4. Simulate migration in staging environment with production-like data
  5. Execute with rollback plan and blast radius containment
  6. Validate post-migration with comprehensive checks

Full migration pattern examples (schema-only, data migration strategies, dual-write, zero-downtime via feature flags), the risk assessment table, testing strategy, pre-migration checklist, common challenges, and the post-migration validation script are in agents/references/database-migration-detail.md.

Output

  • Migration runbook (step-by-step procedures)
  • Validation test suite (data integrity, application compatibility)
  • Rollback procedures and recovery plan
  • Risk assessment with mitigation strategies
  • Performance baseline before/after

Model

Recommended: claude-sonnet-4.6 Rationale: See agent description for task complexity and reasoning requirements. Minimum: gpt-5.4-mini

Governance

This agent operates under the BaseCoat governance framework.

  • Issue-first: Do not make code changes without a logged GitHub issue.
  • PRs only: Never commit directly to main. Open a PR, self-approve if needed.
  • No secrets: Never commit credentials, tokens, API keys, or sensitive data.
  • Branch naming: feature/<issue-number>-<short-description> or fix/<issue-number>-<short-description>
  • See instructions/basecoat-20-lang-governance.instructions.md for the full governance reference.

Read the full file on GitHub · 64 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. yesterday First seen · 64 lines · 37 tokens per session scan A 9de9a166ec6e

Subscribe to this mod's changes

database-migration is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 4d ago), licensed MIT. It adds 37 tokens to every session and 526 once invoked, about $0.0002 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-09-03.

Related

Other agents, from other repositories

kv-optimizer

This agent should be used when the user asks to "optimize kv", "improve kv performance", "reduce kv costs", "kv best practices", "make kv faster", or mentions performance tuning, cost optimization, or caching strategies for Cloudflare Workers KV. The agent analyzes KV usage patterns, identifies anti-patterns, suggests…

secondsky/claude-skills · 76 tokens

database-admin

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and cost…

Dicklesworthstone/pi_agent_rust · 70 tokens

datasphere-integration-advisor

Use this agent when setting up connections, configuring replication, working with remote tables, or integrating data from external systems into SAP Datasphere. Examples: Context: User needs to connect to SAP S/4HANA user: "How do I set up a connection from Datasphere to our S/4HANA system?" assistant: "Let me use the…

secondsky/sap-skills · 374 tokens

FAI Neon Expert

Neon serverless Postgres specialist — database branching, auto-scaling compute, pgvector for AI embeddings, connection pooling, and database-per-branch development workflows.

frootai/frootai · 38 tokens

agentic-coding-deployment-verification-agent

Produces Go/No-Go deployment checklists with SQL verification queries, rollback procedures, and monitoring plans. Use when PRs touch production data, migrations, or risky data changes.

DolphinAI2026/dolphin-code · 45 tokens

deploy-engineer

Runs and verifies deployments for the agency's two client stacks — BigCorp on AWS (Terraform, Lambda, RDS) and StartupXYZ on Vercel — including CI pipelines, migrations, and secret management. Spawn for deploy execution, rollback prep, or infrastructure checks.

bks-lab/open-bridge · 58 tokens