Skip to content

Design and trade-offs with AI

Design is where AI is most tempting and most dangerous. Ask “what architecture should we use?” and you’ll get a confident, generic answer that ignores your team, budget, legacy systems and regulators. Used well, though, AI makes design better in three specific ways: it widens the options you consider, it argues against your favorite, and it removes the drudgery of writing decision records and drawing diagrams.

The secret is context. The quality of the answer depends almost entirely on how well you describe the constraints.

An AI-assisted design loop1. Write down the context once (goals, constraints, quality scenarios, what exists today) and reuse it in every prompt. 2. After you shortlist, ask AI to attack the favorite option as hard as it can. 3. Once you decide, AI drafts the decision record from the discussion; you edit it. 4. It generates diagrams as code that you review and keep in version control. Context packgoals, constraints, NFRs OptionsAI widens the list Shortlistarchitect chooses Diagrams as codeC4, Mermaid Decision recordAI drafts, you edit Red teamAI argues against it1234
An AI-assisted design loop The architect supplies context and makes the choice; AI widens the options, attacks the favorite and drafts the paperwork.
  1. Write down the context once (goals, constraints, quality scenarios, what exists today) and reuse it in every prompt.
  2. After you shortlist, ask AI to attack the favorite option as hard as it can.
  3. Once you decide, AI drafts the decision record from the discussion; you edit it.
  4. It generates diagrams as code that you review and keep in version control.

Everything else depends on this. Write one page, once, and paste it at the top of every design prompt.

CONTEXT PACK
System: [what it does, who uses it, volumes]
Business goal: [the outcome and how it's measured]
Constraints: [budget, deadline, regulations, approved cloud/vendors,
data residency, existing contracts]
Team: [size, skills, what they've run in production before]
Current state: [relevant existing systems and integrations]
Quality scenarios: [the top 3-5, with numbers]
Out of scope: [...]
Principles we follow: [...]
[Context pack]
Decision: [one clear question, e.g. "how should order events reach
billing, warehouse and email?"]
List 4-6 genuinely different options, including keeping what we have.
For each: how it works in two sentences, what it's good at, what it costs
us given OUR constraints and team, and the main risk.
Do not recommend one. Flag any option that conflicts with a constraint.

Verify: product facts (limits, pricing, features, licensing) against current vendor documentation. Models are often out of date or simply wrong on specifics.

The highest-value use of AI in design. Your favorite option deserves a determined critic.

[Context pack]
Here is the design we are leaning toward:
[describe it, or paste the draft ADR]
Act as a skeptical principal architect reviewing this for a high-stakes
launch. Find the strongest reasons it could fail:
- quality scenarios it may not meet, and why
- failure modes, single points of failure, data consistency problems
- operational, security and cost risks
- what will be hard to change in two years
Then run a pre-mortem: it's 18 months later and this design was a mistake.
Write the three most likely stories of why.

Verify: treat each point as a hypothesis. Some will be irrelevant; one or two will be exactly what you missed. Record the ones you accept as risks or consequences.

Draft an architecture decision record from the notes below, using these
headings: Title, Status, Context, Options considered, Decision,
Consequences (positive and negative), Revisit when.
Use only what is in the notes. Where something is missing, write [TBD]
rather than filling it in.
[Paste meeting notes, options table and your decision]

Or use the site’s own ADR generator for the structure, and AI to tighten the wording.

From this description, write a C4 container diagram in Mermaid
(C4Container syntax). Include every external system and person mentioned,
label every relationship with what it carries and the protocol, and do
not add elements that are not in the description.
[Paste description or ADR]

Verify: render it, and check every box and arrow against the description. Diagram generation is good at structure and bad at noticing what’s missing. Keep the source in version control next to the code; see documenting with C4.

  • Generic answers to generic questions. “Microservices or monolith?” without context gets the internet’s average opinion.
  • Fashion bias. Models reflect what’s written about most, not what fits best. Boring, proven options deserve a fair hearing.
  • Agreeableness. Assistants tend to agree with the framing you give them. Ask for criticism explicitly, and ask the same question framed the other way.
  • Made-up specifics: non-existent configuration options, wrong limits, invented case studies. Check every factual claim you’ll rely on.
  • Diluted accountability. “The AI suggested it” isn’t a rationale. The decision record should stand on its own reasoning.

Written and edited by Abhinav Taduka, enterprise software architect.