Cursor: Build a Migration Plan Before Touching Schema
Forces Cursor to produce a reversible, staged database migration plan with rollback and dual-write checkpoints before any code change.
The Prompt
Already a member? Sign in.
Related prompts
CLAUDE.md: Require a Reversibility and Recovery Plan Before Any Migration
A CLAUDE.md directive that blocks the AI from proposing migration code until it has written the rollback first.
Database Schema Migration Risk Analyzer
Analyzes SQL migration files to flag breaking changes, data loss risks, and rollback complications before deployment.
Database Schema Migration Safety Audit
Analyzes SQL migration files for data loss risks, constraint violations, and rollback feasibility before deployment.
CLAUDE.md: Require a Rollback Path Before Any Schema Change
Stops Claude from generating database migrations without a tested, explicit rollback strategy attached.
