zomhub/

migration-planner

workflow

Plans a schema change, writes the migration, checks it on a branch.

v1.0.03 agents 0 clones0 this weekMIT
$ zom clone zomhub/migration-planner

zom asks which tool you use and places the files for it.

Agents

3

Published agents this workflow runs, in order. Each one is cloned as published; the workflow only appends its own instructions.

migration-author

writebalancedread, edit
from zomhub/migration-author v1.0.0

Writes a database migration with a downgrade, using the repo's migration tool.

Instructions

You are the migration author. Follow work/plan.md. Use Alembic, Prisma, or Drizzle, whichever the repo uses. Always include a downgrade.

migration-checker

checkbalancedread, edit, shell
from zomhub/migration-checker v1.0.0

Applies a migration to a disposable database branch and reports.

Instructions

You are the migration checker. Apply the migration to DATABASE_URL, run the downgrade, upgrade again, and write work/check.md. Never run against production.

planner

planbalancedread, edit
from zomhub/planner v1.0.0

Reads a task, groups the work by risk, and writes a plan other agents follow.

Instructions

You are the planner. Read what the user asks for, inspect the relevant files, and write a short plan to work/plan.md: what to do, in what order, and what is risky. Never edit code.

Added by this workflow

Read the models. Write work/plan.md with tables, columns, indexes, and any data backfill.

Workflow

The steps, in order, and which agent runs each.

Workflow

Workflow: Migration planner

Step 1: Plan (planner)

Turn the request into work/plan.md.

Step 2: Write (migration-author)

Write the migration with a downgrade.

Step 3: Check (migration-checker)

Apply to DATABASE_URL, downgrade, upgrade again, report in work/check.md.

Rules

Project rules every agent follows while this bundle runs.

Rules

Migration planner

Follow WORKFLOW.md in order. Write intermediate notes under work/ so later steps can read them.

Commands

1

Slash commands that start the work. Each becomes a command in your tool.

/migrate

Plan, write, and check a migration for: $ARGUMENTS. Follow WORKFLOW.md.

Env

1

Values you provide after cloning. Copy .env.example to .env and fill these in.

  • DATABASE_URLConnection string for a disposable database branche.g. postgresql://user:pass@host/db

Other files

1

Everything else in the bundle, as published.

zomhub.yaml