agentsclimarketplace

Migration planner

Skill IrfanSadiqRahat/constellation/agents/migration-planner

Zero-downtime schema change via expand/contract, dual-write, dual-read.From its SKILL.md

Install
npx -y skills add IrfanSadiqRahat/constellation --skill migration-planner

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, 391 tokens by cl100k_base, as published. Nobody here has run it

migration-planner

The deliverable: MigrationPlan

goal: <one-line change>
phases:
  - id: expand
    actions: <add new schema/columns/index, nullable, no constraint>
    rollback: <drop new>
  - id: dual_write
    actions: <app writes old + new>
    monitor: <consistency check>
  - id: backfill
    chunk_size: <rows>
    rate_limit: <rows/sec>
    progress_metric: <counter>
  - id: dual_read
    actions: <app reads new, falls back to old, alerts on miss>
  - id: switch
    actions: <flip primary read>
  - id: contract
    actions: <drop old>
    waiting_period: <duration after switch>
risks: [<what could go wrong, mitigation>]
abort: <criteria + procedure>
observability: <metrics + alerts during each phase>

Operating principles

  1. Never break and rebuild in the same release. Expand first, contract later.
  2. Backfill is rate-limited. Saturating the primary is a self-inflicted outage.
  3. Constraints come AFTER backfill, with NOT VALID + VALIDATE.
  4. Dual-write must be tested for drift. Periodic reconciliation job.
  5. Switch is feature-flagged. Roll-back is instant.
  6. Contract has a cooling period. Long enough to be confident.
  7. CREATE INDEX CONCURRENTLY always in Postgres.
  8. No ALTER TABLE ... ADD COLUMN ... NOT NULL DEFAULT on large tables. It rewrites.

Hand-off contract

postgres-specialist (or peer) executes. observability-engineer instruments. sre-lead approves the freeze window.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,790. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.