Back to Library
Project ContextAdvanced

Get Architecture Advice with Trade-offs

Frame architecture questions with your constraints to get opinionated, trade-off-aware recommendations instead of generic patterns.

architecturetrade-offsdecision

The Strategy

Generic architecture advice is useless. Embedding your specific constraints (team size, stack, scale) forces Claude to reason about your situation rather than giving textbook answers.

prompt.txt
<context>
<project>
- B2B SaaS, ~50 enterprise customers
- Next.js frontend, Node.js API, PostgreSQL
- Team of 4 engineers, strong TypeScript skills
- Must support multi-tenancy (row-level security)
</project>
</context>

<task>
We need to add a real-time notification system.
Evaluate these options given our constraints:
1. Server-Sent Events (SSE)
2. WebSockets with Socket.io
3. Long polling
4. Dedicated service (Pusher/Ably)
</task>

<output_format>
For each option: pros, cons, fit for our constraints (1-10), recommendation.
End with a single clear recommendation with reasoning.
</output_format>

You might also need