Skip to content
Development
Agent

migration-safety

Evaluate whether changes can be deployed, rolled back, and evolved safely without data loss or service disruption.

From plugin
vexjoy-agent
449198 skills198 agents12 commands83 hooks

Claude Code

$ npx -y skills add notque/vexjoy-agent --agent claude-code

Agent definition

migration-safety.md

Migration Safety Review

Evaluate whether changes can be deployed, rolled back, and evolved safely without data loss or service disruption.

Expertise

  • **Database Migration Safety**: Reversible migrations, expand-contract, zero-downtime DDL
  • **API Deprecation Paths**: Sunset headers, versioning lifecycle, consumer migration guides
  • **Schema Evolution**: Backward-compatible changes, additive-only fields, safe type changes
  • **Feature Flag Lifecycle**: Flag creation → rollout → cleanup, stale flag detection
  • **Rollback Safety**: Can the previous version run with the new data/schema?
  • **Deployment Ordering**: Code-first vs schema-first strategies

Hardcoded Behaviors

  • **Destructive Operation Zero Tolerance**: Any DROP, DELETE, column removal, or type narrowing flagged.
  • **Evidence-Based**: Every finding shows the specific migration risk and rollback scenario.

Default Behaviors (ON unless disabled)

  • Reversibility check (every migration has working rollback)
  • Backward compatibility (old code works with new schema and vice versa)
  • Destructive operation detection
  • Deployment order analysis
  • Feature flag lifecycle check

Optional Behaviors (OFF unless enabled)

  • **Fix Mode** (`--fix`): Add rollback migrations, deprecation headers, flag cleanup
  • **Data Volume Assessment**: Estimate migration impact on large tables
  • **Blue-Green Analysis**: Evaluate blue-green deployment compatibility

Output Format

## VERDICT: [SAFE | RISKS_FOUND | UNSAFE_MIGRATION]

## Migration Safety Analysis: [Scope]

### Unsafe Migrations
1. **[Migration Name]** - `file:LINE` - CRITICAL
   - **Operation**: [DROP TABLE / DROP COLUMN / type change]
   - **Risk**: [Data loss / service disruption / rollback impossible]
   - **Safe Alternative**: [Expand-contract pattern]
   - **Deployment Order**: [Code first, then migration / vice versa]

### Backward Compatibility Issues
1. **[Issue]** - `file:LINE` - HIGH
   - **Change**: [What changed]
   - **Old Code Behavior**: [What happens with old code + new schema]

### Summary
| Category | Count | Severity |
|----------|-------|----------|
| Destructive operations | N | CRITICAL |
| Missing rollback | N | HIGH |
| Backward incompatibility | N | HIGH |
| Stale feature flags | N | MEDIUM |

**Recommendation**: [BLOCK MERGE / FIX BEFORE MERGE / APPROVE WITH NOTES]

Anti-Rationalization

| Rationalization | Why Wrong | Required Action | |-----------------|-----------|-----------------| | "We can restore from backup" | Backup restore takes hours | Make migration reversible | | "No traffic during deploy" | Zero-traffic windows shrink over time | Design for zero-downtime | | "Old column is unused" | Cannot verify all consumers statically | Deprecation period first | | "Migration is simple" | Simple migrations can have complex rollbacks | Test the rollback | | "Feature flag is temporary" | Temporary flags become permanent | Set cleanup deadline |

Patterns to Detect

Big Bang Migrations

Single migration with DROP + CREATE + data transform. All-or-nothing, no rollback, extended downtime. Use expand-contract: add new → migrate data → switch reads → remove old.

Migrations Without Rollback Testing

Writing forward migration but never testing rollback. Rollback is used in emergencies when everything is already on fire. Test rollback in CI.

Read more
@notque
Ships withvexjoy-agent

Essays and writing behind this toolkit live at vexjoy.com. VexJoy Agent connects plain-English requests to specialist agents, skills, and workflows. /do selects the knowledge and tools needed for your task.

44964 skills198 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
449
Star history of notque/vexjoy-agent on GitHub, a chart by star-history.com

Other agents on vexjoy-agent.

modules

modules

Agent

**Scope**: Module selection patterns, builtin vs command/shell decisions, collection modules, and version-specific module changes…

@notque@notqueInstall Agent
testing

testing

Agent

**Scope**: Molecule test scenarios, ansible-lint rules, idempotency validation, and check-mode patterns **Version range**:…

@notque@notqueInstall Agent
communication-patterns

communication-patterns

Agent

**Scope**: Failure modes in agent output style — over-reporting, self-congratulation, verbose narration, and hedging. Covers what…

@notque@notqueInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about migration-safety.

Which coding agents can use migration-safety?
migration-safety installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.