Category · Architecture
Architecture Prompts
7 prompts that force AI to explain tradeoffs, not just recommend a stack. For decisions with long-term consequences.
When to use these: Before you commit to a data model, a framework, a deployment strategy, or a migration path. Not for questions AI can answer with code — those go to the debugging and refactoring prompts.
Compare two technical approaches
Use when you're choosing between two viable options. Forces a real comparison instead of "both are fine."
A comparison table plus a recommendation. The "what would have to be true" line is the real value — it exposes what AI is optimizing for.
Design a database schema
Use when starting a new feature or domain. AI's first draft is a good starting point, then you refine based on domain knowledge.
A complete schema ready for review. The "what you'd need to know" section is honest — this is where AI admits its uncertainty.
Plan a safe migration
Use when migrating databases, frameworks, or infrastructure. AI is excellent at breaking large migrations into safe increments.
A step-by-step plan with rollback for each step. If AI doesn't include rollback, push back: "What's the rollback for each step?"
Choose a state management strategy
Use when building a frontend app and unsure where state should live. AI knows the common patterns and their tradeoffs.
A layered strategy with clear boundaries. If AI recommends a heavy library for a small app, push back: "What's the simplest option that works at this scale?"
Design the API contract
Use when defining endpoints for a new service. AI writes thorough OpenAPI-style specs faster than you can.
A complete API spec with error handling and pagination. The "what's NOT in v1" section is what experienced API designers add — AI mimics that well here.
Estimate complexity and identify risks
Use when scoping a feature or sprint. AI is good at breaking down work and flagging unknowns you'd miss.
A task list with risk flags. The "3× longer" question usually reveals the real bottleneck — which is rarely the code itself.
Find the failure mode before it happens
Use before shipping a critical system. AI thinks through failure scenarios that you might miss when you're close to the code.
A ranked list of failure modes. The value is the ranking — it turns vague worry into a prioritized action list.
🎯 How to get real architecture advice from AI
- Lead with constraints. Scale, budget, team, timeline. AI's advice is only as good as the constraints you provide.
- Ask for tradeoffs, not just recommendations. "What does this sacrifice?" produces better thinking than "which is better?"
- Push for the "what would have to be true" line. It exposes the assumptions behind the recommendation.
- Ask what's NOT recommended. "What would you NOT do here, and why?" surfaces negative-space decisions.
- Treat AI as a peer, not an oracle. It's one opinion. The decisions with long-term consequences still need human judgment.
❓ Frequently asked questions
Can AI help me design a system architecture?
Yes, for bounded design questions with clear constraints. AI is good at comparing approaches, identifying tradeoffs, and flagging risks. It's not good at understanding team dynamics, budget constraints, or long-term business strategy.
What should I include in an architecture prompt?
Constraints first: scale, budget, team size, existing stack, timeline. Then the specific decision. AI gives better answers when the constraints are explicit — general architecture questions get general answers.
How do I make AI explain tradeoffs instead of just recommending?
Ask it explicitly: 'For each option, list what it optimizes for and what it sacrifices.' Or: 'What would have to be true for the other option to be better?' This forces comparative reasoning.
Can AI design a database schema?
Yes for common patterns (users, posts, orders, etc.). It's weaker on domain-specific schemas where you understand the business better. Use AI's first draft as a starting point, then refine based on your domain knowledge.
Is AI-generated architecture always safe?
No. AI suggestions reflect common patterns, not your specific constraints. Treat its output as one opinion among many. The decisions with long-term consequences still need human judgment.