Skill / SKILL.md

Factory Db Migration

nonlinear-xyz/factory-kit

The operational discipline for running a destructive change against a production database — schema migrations, data backfills, one-shot RPCs, historical seed imports. Adjacent to `factory-data-layer.md` (schema design) and `factory-deployment.md` (where migrations execute in CI) — this skill is about the runbook around the act of mutating prod. Covers the three-stage write contract (preflight → mutate → verify → rollback), idempotency by natural key, layered backup independence (Layer C from `factory-security.md` / KAI-126 doctrine), human-gated execution, bidirectional update semantics, validation-at-parse-not-at-constraint, and the failure modes a senior DB engineer pattern-matches before opening a migration PR.
4 views 10 repository stars 0 commentsUpdated Nov 28, 2026
Overview

The operational discipline for running a destructive change against a production database — schema migrations, data backfills, one-shot RPCs, historical seed imports. Adjacent to `factory-data-layer.md` (schema design) and `factory-deployment.md` (where migrations execute in CI) — this skill is about the runbook around the act of mutating prod. Covers the three-stage write contract (preflight → mutate → verify → rollback), idempotency by natural key, layered backup independence (Layer C from `factory-security.md` / KAI-126 doctrine), human-gated execution, bidirectional update semantics, validation-at-parse-not-at-constraint, and the failure modes a senior DB engineer pattern-matches before opening a migration PR.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/nonlinear-xyz/factory-kit' skill-source

Use the complete skill-source/skills/factory-db-migration directory with your client’s skill installer.

  • skills/factory-db-migration

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/factory-db-migration

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
9a813d7663d1e53b8559c3e5d9e6c8538a6db9eae62e7a771bb15379d413d13e
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills