Vibe Coding Prompts

Database Migration Change Planner

Plan a schema or data change for an AI-built app with compatibility, backfill, validation, rollback, and deployment sequencing.

FreeClaudeChatGPT
Best for

Vibe coders changing a live database who need more than an autogenerated migration file and a hopeful deploy.

Suitable LLM groups
FrontierReasoning
Download Prompt.md
Prompt
You are a database change engineer who specializes in safe schema evolution for small production applications.

Inputs:
1. Current schema, data volume, and database engine: {{current_database}}
2. Requested product change and target schema: {{requested_change}}
3. Application reads, writes, queries, and generated types: {{application_usage}}
4. Deployment model, traffic, and migration tools: {{delivery_context}}
5. Downtime, privacy, backup, and rollback constraints: {{constraints}}

Do the following:
1. Explain why the change is needed and map every affected table, constraint, index, query, API, type, seed, policy, and user-visible behavior.
2. Classify the migration as additive, destructive, data-transforming, or constraint-tightening, and identify compatibility risks between old and new application versions.
3. Design an expand-migrate-contract sequence where appropriate, including nullable transitions, dual read or write behavior, backfill batching, validation, and cleanup.
4. Define backup, lock, timeout, transaction, row-level security, data-retention, failure-recovery, and rollback considerations without assuming every migration is safely reversible.
5. Produce migration steps, SQL or pseudocode outline, application-change sequence, validation queries, rehearsal plan, monitoring, stop conditions, and post-migration cleanup. Clearly label engine-specific details that require verification.

How to use

  1. Include the current schema and representative queries.
  2. State data volume and deployment behavior.
  3. List generated types, policies, and imports affected.
  4. Rehearse the migration against a production-like copy.

Example input

Database: Supabase PostgreSQL with 180,000 task rows. Change: replace free-text project_status with a normalized statuses table while preserving custom labels per workspace. Usage: dashboard filters and reports read the text value; imports write it directly; generated TypeScript types are committed. Delivery: Vercel app with rolling deployments. Constraints: no downtime, existing reports must remain accurate, RLS must continue isolating workspaces, and rollback cannot lose newly entered labels.

Example output

The plan uses an additive statuses table and nullable status_id, seeds distinct labels per workspace, backfills in batches, and updates RLS before application reads switch. During transition, imports resolve or create status records while retaining the legacy text field for compatibility. Validation compares counts and labels by workspace. Cleanup occurs only after old versions stop writing and report parity is confirmed; rollback returns reads to the retained text field without discarding new status records.

Customization tips

  • Prefer additive transitions for rolling deployments.
  • Define validation queries before running the backfill.
  • Protect tenant isolation during every phase.
  • Separate rollback from irreversible cleanup.

Tags

#database-migration#schema-evolution#data-backfill#deployment-safety#vibe-coding

FAQ

What is this prompt for?
It plans the database and application changes needed to evolve a live schema safely.
How should I customize it?
Provide the current and target schema, data volume, reads and writes, policies, deployment model, migration tools, and downtime or rollback limits.
Are there any limitations?
Database behavior, locks, and reversibility depend on the engine and data distribution, so the plan must be rehearsed and reviewed before production use.
How is it different from a basic prompt?
It coordinates schema, code, types, policies, backfill, compatibility, validation, rollout, rollback, and cleanup as one staged change.
Free

Authentication Flow Implementation Planner

Plan sign-up, sign-in, recovery, session, and authorization behavior for an AI-built app before authentication code is generated.

ClaudeChatGPT
#authentication#session-management#authorization
Free

No-Code Database Schema Planner

Designs a clean, scalable database schema in plain language for a non-technical builder to hand directly to an AI app builder or Supabase, avoiding common structural mistakes.

ClaudeChatGPT
#vibe-coding#database-design#schema-planning
Free

AI Coding Context Pack Builder

Create a compact, reliable context pack that helps an AI coding assistant understand an existing app before making changes.

ClaudeChatGPT
#vibe-coding#codebase-context#ai-coding

Related Skills

Data WorkflowsFree

Data Migration Verification Manager

Plan and verify data migrations with mapping, reconciliation, sampling, cutover, rollback, audit evidence, and sign-off.

ClaudeChatGPTCursor
#data migration#migration verification#data reconciliation
Data WorkflowsFree

Database Schema and Migration Planner

Design relational database schemas and safe migration plans with constraints, indexes, data backfills, rollback, and verification.

ClaudeChatGPTCursor
#database schema#SQL migration#data modeling
API & Integration BuildingFree

Schema Registry and Event Contract Manager

Manage event schemas, compatibility, ownership, validation, versioning, deprecation, replay safety, and consumer migration.

ClaudeChatGPTCursor
#schema registry#event contracts#Kafka schemas

Related Articles

Article · Vibe Coding

How do I use AI tools like Lovable or Cursor to build an app?

AI app builders work best when users provide a scoped feature request, data model, user flow, UI constraints, acceptance criteria, and test cases.

Jul 9, 20268 min read
Read How do I use AI tools like Lovable or Cursor to build an app?
Article · Vibe Coding

What is vibe coding, and where does it break?

Vibe coding can help users prototype quickly with natural language, but it breaks when requirements, security, data model, testing, and maintainability are ignored.

Jul 9, 20268 min read
Read What is vibe coding, and where does it break?