agentleFS
ostrium-labsostrium-labs/loams-skills/skills/cutover-operations/SKILL.md

cutover-operations

Skill1 starsChanged 39 days agoApache-2.0View on GitHub

Prepare and run production cutover, rollback, backup and restore drills, upgrades, and day-2 operations for a Loams install. Use before the first production traffic and for every upgrade or incident.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Freeze: Stop schema changes and non-essential deploys in the window.

    line 34
  2. Distinctive:

    Rollback: If a gate fails: flip the flag, restore traffic, keep writes dual until the divergence is understood.

    line 39
  3. Distinctive:

    Upgrade: read notes, back up, pin the new version, upgrade, verify, keep the snapshot until stable.

    line 50
  4. Distinctive:

    No cutover without a tested rollback.

    line 69
  5. Distinctive:

    No upgrade without a backup.

    line 70
  6. Distinctive:

    No restore drill on production data without approval.

    line 71
  7. Distinctive:

    No runbook with a secret in it.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cutover and operations

A migration is not done at cutover; it is done when the team can restore, upgrade, and diagnose it without the migration team.

When to use

  • Stage 5 and 6.
  • A production change, upgrade, or restore drill.
  • An incident needs a runbook that does not exist yet.

Inputs

  • company/architecture/target.md.
  • The service cutover plan and the data migration report.
  • deploy/byog/ and the upstream release/upgrade guides.
  • Design 70, Design 63.

Cutover runbook

  1. Preconditions. Backups current; restore drill passed; dashboards and alerts live; rollback owner and window named; change approved.
  2. Freeze. Stop schema changes and non-essential deploys in the window.
  3. Canary. Route a small percentage; watch errors, p95, saturation, and consistency.
  4. Ramp. 1% → 10% → 50% → 100%, with a pause at each step.
  5. Verify. Contract checks, sampled data parity, and a read-your-write check.
  6. Rollback. If a gate fails: flip the flag, restore traffic, keep writes dual until the divergence is understood.
  7. Close. Record start/end, incidents, decisions, and follow-ups. Remove the old path only after the window.

Day-2 runbooks

  • Backup: disk snapshot + bucket versioning; record the retention and the owner.
  • Restore: new disk from snapshot, point the stack at it, verify, then reopen traffic. Time it.
  • Upgrade: read notes, back up, pin the new version, upgrade, verify, keep the snapshot until stable.
  • Incident: identify the layer (client, engine, store, network, identity), check the dashboard, capture logs, and escalate.
  • Capacity: watch disk, RAM, bucket growth, and queue lag; scale before the limit.
  • Revocation: disable the principal, delete tuples, rotate keys.
  • Support bundle: collect logs, versions, and config with secrets redacted.

Outputs

  • company/runbooks/cutover-<service>.md.
  • company/runbooks/operate.md.
  • company/runbooks/restore-drill.md.
  • company/runbooks/upgrade.md.
  • company/runbooks/incident.md.

Guardrails

  • No cutover without a tested rollback.
  • No upgrade without a backup.
  • No restore drill on production data without approval.
  • No runbook with a secret in it; reference the secret store.
  • The light stack is single-node; plan for downtime, not failover.

References

  • BYOG kit
  • Design 70
  • Migration playbook

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.