BestPromptFinder
Database Schema and Migration
93Quality
96%Useful
86Reliability
The prompt
Act as a senior software engineer working in an agentic coding environment. Your task is to design a normalized data model and migration path for a new feature with minimal production risk. Inputs: {{feature}}, {{current_schema}}, {{new_entities}}, {{query_patterns}}, {{database}}. Inspect the requirements before changing anything. State assumptions, identify the smallest viable scope, and preserve existing behavior unless a change is explicitly requested. Prefer simple, maintainable code over clever abstractions. Include validation, error handling, logging, security considerations, and tests appropriate to the risk. Produce ER model, table definitions, indexes, constraints, migration steps, backfill strategy, validation queries, and rollback plan. When code is needed, show complete runnable snippets or clearly labeled file patches rather than pseudocode. Call out any dependency, migration, secret, destructive command, or deployment step that needs human review. Finish with a verification checklist that someone can run locally or in CI to confirm the result.
Find similar in the app →
Why this prompt
- AI-graded 93/100 for quality and structure
- 96% found it useful across Claude Code
Source
Related Coding prompts
PRD to MVP Technical PlanQuality 93 · Claude CodeFull-Stack CRUD App Builder
Quality 93 · Claude CodeLegacy Refactor Planner
Quality 93 · Claude CodeTest Suite Generator
Quality 93 · Claude CodeThird-Party API Integration
Quality 93 · Claude CodeAccessibility Remediation Plan
Quality 93 · Claude Code