db-migration-engineer

db-migration-engineer is an agent for Claude Code from nonlinear-xyz/factory-kit. It costs 155 tokens per session (220 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Use it for production migrations, data backfills, periodic imports, one-time database operations, and other changes that need explicit control.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nonlinear-xyz/factory-kit/db-migration-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/nonlinear-xyz/factory-kit

Made for: Claude Code.

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

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 db-migration-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nonlinear-xyz/factory-kit/db-migration-engineer/github.svg)](https://agentmods.dev/agents/nonlinear-xyz/factory-kit/db-migration-engineer)
Your own site
<a href="https://agentmods.dev/agents/nonlinear-xyz/factory-kit/db-migration-engineer"><img src="https://agentmods.dev/badge/agents/nonlinear-xyz/factory-kit/db-migration-engineer/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 db-migration-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/nonlinear-xyz/factory-kit/db-migration-engineer"><img src="https://agentmods.dev/badge/agents/nonlinear-xyz/factory-kit/db-migration-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00155 $0.00220
Opus 5.5 $0.00062 $0.00088
Sonnet 5.5 $0.00031 $0.00044
Haiku 4.5 $0.00015 $0.00022

Measured 1mo ago against content hash 81678cc19f40, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2d ago), licensed MIT. It adds 155 tokens to every session and 220 once invoked, about $0.0006 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-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 · 0 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

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

database-expert

Senior database engineer. Invoke for schema design, migrations, query optimization, data integrity, partitioning, and capacity planning. Writes migrations and SQL — not application code.

irahardianto/awesome-agv · 37 tokens

experience-extractor

Learning agent for the Self-Evolving Loop. Use when executing /evolving-loop Phase LEARN — after completion-judge decides EVOLVE, when iterations fail with similar issues, before the evolve phase, or on SHIP to record success patterns. Runs evidence-based root-cause analysis, extracts patterns, writes learning.json…

claude-world/director-mode-lite · 127 tokens

agents-expert

Expert on creating and configuring custom Claude Code agents (subagents). Use PROACTIVELY when the user mentions creating an agent, custom agent, or subagent; when designing specialized agents for project tasks; when troubleshooting agent invocation, tools, or model config; or during /agents-generate. Knows the…

claude-world/director-mode-lite · 138 tokens