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.
Cursor: Map the Blast Radius Before Any Risky Change
Force Cursor to trace every caller, side effect, and contract before touching a single line of code.
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.
