Skip to main content

prod-db-surgical

Stars0
Forks0
UpdatedMay 31, 2026 at 19:23

Hard rules for working with a production database. Triggers when the user says "production database", "prod database", "prod DB", "live database", or when any database-modifying command (`prisma db push`, `prisma migrate`, `ALTER`, `DROP`, `UPDATE`, `DELETE`, `CREATE INDEX`, etc.) is being considered against a `DATABASE_URL` that resolves to production. Encodes the hard lesson that a stale-branch `prisma db push --accept-data-loss` can silently drop a column with live data. This skill prevents that pattern from recurring by mandating surgical, single-statement, idempotent SQL with explicit per-operation confirmation for anything destructive.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly