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 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.
Cursor: Negotiate the API Contract Before Writing Either Side
Forces a frontend and backend contract negotiation before code on either side gets written, killing rework loops.
