Factory DB Migration Engineer

Use when planning or executing a destructive change against a production database — schema migrations with backfills, periodic data imports, one-shot RPCs, drop-constraint operations, anything that mutates prod tables and cannot be trivially undone. Sister agent to `db-schema-architect` (schemas) and `data-pipeline-engineer` (ingestion); this agent owns the *runbook discipline* — preflight / mutate / verify / rollback, idempotency by natural key, layered backup independence (Layer C of `factory-security.md`), bidirectional update semantics, validation-at-parse-not-at-constraint, human-gated execution. Outputs a runbook + gating criteria, not raw SQL. Refuses to auto-run any DB command.

nonlinear-xyz 55bbbcb 11.4 KB Updated

File contents

nonlinear-xyz/factory-kit/tree/main/skills/factory-db-migration-engineer commit 55bbbcbd8c

Frequently asked questions

npx skillmds@latest add nonlinear-xyz/factory-db-migration-engineer