Describe the system in plain English; get a rendered architecture diagram in seconds. The catch: AI diagrams are plausibility machines — they draw what systems like yours usually look like, not what yours is. The verification pass, edge by edge against design intent, is the playbook.
Tier: Foundation · Hands-on time: ~25 minutes
Diagram generation from natural language is a mature 2026 tool class — Mermaid or D2 through a coding assistant, or dedicated generators like Eraser AI. The speed is real: the first draft that used to cost an afternoon in a drawing tool now costs a prompt. What has not changed is accountability. A diagram is a claim about how the system works, and models pad drafts with components you never mentioned, invent edges that "usually" exist, and label queues as topics. Every box and every arrow gets checked against intent before the diagram earns a filename.
Skip AI when you are changing two boxes on a diagram whose source you own — direct edits beat regenerate-and-reverify.
Write the intent as an inventory, not a story. List components, then connections, then boundaries. Anita's brief for orbit-docs-copilot: "Components: web client, API gateway, copilot service, retrieval service, Postgres+pgvector, embedding pipeline, LLM gateway, external model API. Connections: client→gateway→copilot; copilot→retrieval→pgvector; pipeline→pgvector (write path); copilot→LLM gateway→model API. Boundaries: everything except the model API inside the EU VPC." An inventory converts verification from an aesthetic judgment into a checklist.
Prompt with the inventory and a no-invention rule.
Generate a Mermaid flowchart (architecture style, top-down) from this
inventory. Rules:
- Include ONLY the listed components and edges. Do not add components
that systems like this "usually" have (no cache, no CDN, no queue
unless listed).
- Every edge gets a short label naming the interaction (HTTPS, SQL,
embeddings write).
- Draw the EU VPC as a subgraph boundary; the external model API sits
outside it.
- If the inventory seems to be missing an edge a working system would
need, add a comment line listing the QUESTION — do not draw the edge.
###
[paste inventory]
Render, then verify edge by edge. This is the step that makes the playbook. Take the intent inventory and tick off: every listed component present? every listed edge present, correctly directed, correctly labeled? Then invert it: every drawn box in the inventory? every drawn arrow in the inventory? Anything in the diagram but not the intent is either a model invention (delete) or a real gap in your intent (update the intent first, then the diagram). The QUESTION comments are often the most valuable output — "how does the embedding pipeline get documents?" caught a genuinely missing ingestion edge in Anita's first pass.
Fix in the source, not the picture. Iterate in the same conversation with scoped edits: "Remove the Redis node; change the pipeline→pgvector label to 'batch upsert'; nothing else changes." Regenerating from scratch on each tweak re-rolls every hallucination dice — scoped edits converge.
Set the altitude deliberately. One diagram per audience: the exec version collapses the retrieval internals into one box; the build-team version shows ports and protocols. Ask the model to derive the collapsed view from the verified detailed source so the two cannot disagree — never maintain two hand-divergent versions of the truth.
Commit the source next to the design. The .mmd/.d2 file goes in the repo with the design doc, with the intent inventory as a comment block at the top. That pairing is what pb-08 turns into a drift-checked, living diagram.
The intent inventory usually contains client system names — check the pb-03 register before pasting. Redaction is nearly free here: [ORDER-SYSTEM], [CLIENT-IDP] render identically, and you can restore real labels in a local find-and-replace after generation. Where even structure is restricted, Mermaid/D2 via a local Ollama coding model works well — diagram code is a language small models handle — or use the client-tenancy endpoint. Diagram files are design artifacts under the MSA: store them in the engagement repo, not personal drives, whichever path generated them.
A generated diagram is a hypothesis about your system. Edge-by-edge verification against written intent is what turns it into documentation.