Turn the architecture in your head into a diagram with AI

Updated 2026-10-12 10 分钟 Difficulty ★☆☆☆☆Author Skills 编辑部

Skills used in this guide (4)

The pain of diagramming isn't "can't draw" — it's that edits are exhausting: change one box and you re-layout the whole thing. Generating descriptive, re-flowable diagrams turns "drawing" into "describing structure"; editing text is 10x faster than editing the picture.

Who this is for / not for

For:

  • Quick architecture / flow / sequence / data-flow diagrams
  • Diagrams that will keep changing — want text-edit to re-flow
  • Export PNG/SVG into docs or PPT

Not for:

  • Brand-level refined color (AI diagrams prioritize structural accuracy, not art)
  • Strict in-house icon library (give the icon spec first)
  • Editable source for designers (pick an exportable format)

Before you start

  1. Structure: natural language or paste Mermaid with nodes and relations.
  2. Diagram type: architecture / flow / sequence / concept.
  3. (Optional) where it goes: doc, PPT, or web — decides export format.

Steps

1. Install the skill

archify outputs interactive HTML diagrams. Copy its folder into your client's skills directory (same as any Agent Skill):

ClientDirectory
Claude Code~/.claude/skills/
Codex~/.codex/skills/
Cursor~/.cursor/skills/
Trae~/.trae/skills/
CodeBuddy~/.codebuddy/skills/
Tongyi Lingma~/.lingma/skills/

2. Describe structure in natural language

text
Draw a sequence diagram for user checkout:
User → Gateway(auth) → OrderSvc(persist) → Inventory(dec deduct)
If stock low, OrderSvc → Notify(sms) and mark order failed.
Dark theme, rounded-rect nodes, label arrows with message names.

3. Mermaid works too

If you already have Mermaid, hand it to archify as input — it renders interactive HTML and supports export.

4. Pick a style

  • Tech architecture / cloud: architecture-diagram (dark SVG)
  • Teaching / concept: concept-diagrams (flat minimal)
  • Hand-drawn flow / sequence: excalidraw

Pitfalls

PitSymptomFix
Wrong relationArrow reversedSay "who calls whom"; give Mermaid if needed
Too loudColors hurt readabilityDark + one accent; accent only on key path
Not editableBitmap, can't changeKeep description/source, don't store only PNG
Blurry in PPTBitmap scaled upExport SVG; vector stays sharp
Wrong iconsOff brand libraryGive icon + color spec first

FAQ

Drop into PPT directly?

Yes. Export SVG or PNG; SVG vector in PPT is sharpest when scaled.

Existing Mermaid usable?

Yes. archify accepts Mermaid and renders interactive HTML.

Diagram keeps changing?

Keep the text/Mermaid source; editing text beats editing bitmap.

Dark to light?

Yes, specify light theme in prompt; use light when pasting into light docs.

Org chart / mind map?

Architecture and concept diagrams both work; for pure mind map start with concept-diagrams.

Related guides

Continue across these scenes:

相关源码

一句话结论

结论:把「画」变成「描述结构」,改文字比改图快十倍;要可改就保留描述或 Mermaid 源。

References

Related Scenes