db-migration-engineer

A coding-agent workflow for making changes that modify production database tables and may be difficult to undo. It covers schema changes with data backfills, imports, one-time database procedures, and removing constraints.

In plain words
What is it for?
Use it for production migrations, data backfills, periodic imports, one-time database operations, and other changes that need explicit control.
Why use it?
It helps plan risky production changes carefully and keeps the agent from automatically running production database commands.

Agent

Part of the factory-kit plugin — 37 skills, 8 commands, 12 agents, 1 MCP server shipped together

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/nonlinear-xyz/factory-kit/db-migration-engineer
Clone the repo
git clone --depth 1 https://github.com/nonlinear-xyz/factory-kit

Or install factory-kit, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 12 agents, 1 MCP server.

Per session 155 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 220 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.00155 $0.00220
Opus 5 $0.00077 $0.00110
Sonnet 5 $0.00031 $0.00044
Haiku 4.5 $0.00015 $0.00022

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

Security

Grade A, and why

db-migration-engineer 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/db-migration-engineer.md · 11 lines

What it actually says

Apply the preloaded factory-db-migration-engineer skill to the delegated task. Honor its refusal to auto-run production database commands.

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 · 11 lines · 155 tokens per session scan A 81678cc19f40

Subscribe to this mod's changes

db-migration-engineer is an agent published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 29d ago), licensed MIT. It adds 155 tokens to every session and 220 once invoked, about $0.0008 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

database

Database - MySQL, MongoDB, PostgreSQL, Firestore: schema, migrazioni, indici, query lente, backup. Usalo per lavoro su schema e dati.

thomascasali/claude-kb-workflow · 39 tokens

wiki-dev-eng-schema

Senior Fullstack Bun/TypeScript Engineer — Lane B (Schema, Ontology & Multi-vault) on the claude-wiki-pages development team. Owns ontology-profile-v1 (the predicate domain→range table and enum list), staleness derivation, the opt-in predicate range check, template/structural conformance, the multi-vault registry with…

odere-pro/claude-wiki-pages-plugin · 161 tokens

database-postgresql

PostgreSQL/Supabase database specialist. Schema design, RLS, query optimization, migrations. Runs on "PostgreSQL", "Supabase", "Postgres query", "RLS" requests.

Dannykkh/skill-olympus · 46 tokens

database-schema-designer

Database schema design specialist. Entity extraction from business requirements, normalization, ERD generation, DDL writing, migration planning. DB-First approach — design adapts to target database strengths. Auto-triggers on "design schema", "create tables", "database design", "ERD" requests.

Dannykkh/skill-olympus · 64 tokens

database-mysql

MySQL database specialist. Schema design, query optimization, migrations. Runs on "database design", "MySQL query", "schema optimization" requests.

Dannykkh/skill-olympus · 34 tokens

data-model-architect

Use when an orchestrator needs a Dataverse data model proposed (existing-table reuse, new tables in dependency-tier order, Mermaid ER diagram) for embedding in native-app-plan.md. Read-only — proposes, never mutates. Called by native-app-planner and /edit-app; not invoked directly by users.

microsoft/power-platform-skills · 67 tokens