Logo: Zerox Architecture Diagram

Zerox Architecture Diagram

Communautéit
ZeroxZhang
zerox-architecture-diagram

Create and review professional system architecture, infrastructure, cloud, security, network-topology, deployment, and data-flow diagrams as self-contained HTML plus standalone SVG. Use this skill whenever a user wants to visualize technical components or service relationships, especially when layout, swimlanes, edge routing, multi-region grouping, presentation mode, or export quality matters.

Iwwersiicht

EditeurZeroxZhang
Repositoryzerox-skills
Skill-Nummzerox-architecture-diagram
Stären
40
Forks
5
Matgeliwwert Dateien
15
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 15 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ZeroxZhang huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Zerox Architecture Diagram an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-architecture-diagram
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ZeroxZhang/zerox-skills.git /tmp/zerox-skills
mkdir -p .claude/skills
cp -r /tmp/zerox-skills/zerox-architecture-diagram .claude/skills/zerox-architecture-diagram
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Zerox Architecture Diagram an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Zerox Architecture Diagram automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Zerox Architecture Diagram net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Architecture Diagram Skill

Create readable architecture diagrams whose layout remains correct after SVG extraction, browser resizing, and presentation export. Treat layout as a deterministic pipeline, not a collection of hand-tuned coordinates.

Required resources

Read these files before generating a diagram:

  1. references/layout.md — graph model, sizing, placement, ports, routing, labels, and viewBox calculation.
  2. references/design-system.md — themes, typography, component styles, icons, and SVG patterns.
  3. references/quality-gates.md — semantic SVG contract, validator usage, visual review, and output requirements.

Use assets/template.html for standard scrollable output. For presentation output, use assets/template-presentation.html; changing only CSS does not create a valid 16:9 layout.

Workflow

Follow the seven stages in order. A later stage may send the work back to an earlier stage when validation exposes a layout defect.

1. Resolve requirements

Infer values from context when safe. Otherwise ask only for choices that materially change the diagram.

SettingDefaultOptions
ThemeLightLight, Dark
LanguageChineseChinese, English
ModeStandardStandard, Presentation
StyleIcon when availableIcon, Text-only
Flow directionAutoLR, TB
ScopeSingle regionSingle region, Multi-region / Multi-AZ

Direction rules:

  • Use TB when horizontal bands represent primary tiers such as 接入层 / 应用层 / 数据层.
  • Use LR for request or data pipelines without primary horizontal tiers.
  • Do not use layer ambiguously. rank means graph depth, lane means a visual band, and group means a containing boundary such as Region, AZ, cluster, or trust domain.

2. Normalize the graph

Assign every object a stable ASCII ID before choosing coordinates.

  • Node: id, label, sublabel, type, icon, rank, lane, group.
  • Edge: id, source, target, kind, label, preferred ports, optional bus ID.
  • Lane: id, label, order.
  • Group: id, label, parent group, padding.

Treat message buses and gateways as real nodes when they have independent semantics. Preserve cycles; mark their return edges for an outer route channel.

3. Write the layout plan

Place this plan as an HTML comment immediately before the SVG. List every node and edge.

text
MODE standard  THEME light  DIRECTION TB  GRID base=10 major=20
LANE access       order=0 label="接入层"
GROUP aws-west    parent=- label="AWS 区域: us-west-2"
NODE api          rank=1 lane=application group=aws-west x=420 y=240 w=140 h=60 type=backend icon=server
EDGE api-db       api:right -> db:left kind=sync label="SQL" bus=api-data

The plan is the source of truth for graph completeness; SVG metadata must use the same IDs.

4. Run the layout pipeline

Use the algorithms and constants in references/layout.md:

  1. Measure text and determine node sizes.
  2. Assign ranks and order nodes to reduce crossings.
  3. Size lanes and nested groups from their content.
  4. Assign coordinates using actual rank widths and node heights.
  5. Assign source and target ports.
  6. Route orthogonal edges around inflated obstacles.
  7. Place labels, legend, and title; then derive the viewBox from the union of all geometry.

Do not write SVG routes until node, lane, and group geometry is stable.

5. Generate semantic SVG and HTML

Start from the mode-specific template and preserve its semantic hooks:

  • data-role="boundary|lane|edge-route|bus-trunk|component|edge-label|legend"
  • stable data-id, data-edge-id, data-source, and data-target
  • explicit geometry in data-bbox and route points in data-points
  • SVG-local styles, font stack, markers, title, and description

Render in this order:

text
background -> boundaries -> lanes -> edge routes / bus trunks
-> component masks and boxes -> component text/icons
-> edge labels -> legend

Draw a shared bus trunk once. Draw each branch once from its junction to its target. Use a neutral trunk if branches have different semantics.

6. Extract and validate

Extract the exact inline SVG:

bash
python3 scripts/extract_svg.py output.html output.svg

Run the deterministic quality gate on both artifacts:

bash
python3 scripts/validate_diagram.py output.html --strict
python3 scripts/validate_diagram.py output.svg --strict
python3 scripts/validate_diagram.py output.html --compare output.svg --strict

Fix the layout model or algorithm that caused a failure. Do not silence a check or move a single label without re-running the complete gate.

7. Rendered review

Run the browser-backed geometry probe when Chrome/Chromium is available:

bash
python3 scripts/render_check.py output.html --width 1440 --height 900
python3 scripts/render_check.py output.svg --width 1000 --height 760
# Presentation mode:
python3 scripts/render_check.py output.html --width 1280 --height 720

Then open both files and inspect the actual rendered result.

  • Standard: desktop and narrow viewport; horizontal scrolling is allowed only inside the diagram region.
  • Presentation: exact 1280×720 viewBox with no clipping.
  • Verify long Chinese/English labels, marker tips, tooltips, dark theme, and standalone SVG fonts.
  • Inspect at 100% and 200% zoom.

The static validator checks declared geometry. Browser review remains required because final glyph metrics vary by platform.

Layout invariants

These are hard constraints; the detailed calculations live in references/layout.md.

  • Base grid: 10px for node coordinates and sizes. Major grid: 20px for lanes, groups, rank origins, and viewBox dimensions.
  • Node gap: at least 40px on the axis where their projections overlap.
  • Route clearance: at least 20px from unrelated nodes and 8px between parallel routes.
  • Source endpoint: on the declared source boundary. Target endpoint: 2px before the declared target boundary, with the final segment pointing toward it.
  • Route shape: absolute orthogonal M/L segments only; no diagonal segment unless the user explicitly requests free-form routing.
  • Labels: reserve a label corridor and keep a 4px gap from components, boundaries, and other labels.
  • Lanes: reserve a label gutter; nodes must lie inside the lane content rectangle.
  • Groups: derive size from contained geometry plus title gutter and padding. Layout inner groups before outer groups.
  • Standard legend: centered horizontally and at least 20px below all content boundaries.
  • Presentation legend: bottom-right with 20px right/bottom margins; it is not subject to the standard centering rule.
  • Standard viewBox: content-derived, at least 1000×680, snapped up to the 20px major grid.
  • Presentation viewBox: exactly 0 0 1280 720.

Language and accessibility

Chinese is the default for titles, node labels, lane labels, edge labels, legends, and summaries. Keep proper nouns, protocols, ports, and technologies in their conventional form.

Every SVG must include:

  • xmlns="http://www.w3.org/2000/svg"
  • numeric intrinsic width and height matching the viewBox
  • role="img" and aria-labelledby
  • one overall <title> and <desc>
  • one native <title> as the first child of every component group
  • an SVG-local font stack; do not rely on HTML inheritance or remote fonts

Output

Always return two self-contained files:

  1. .html — inline SVG, embedded CSS, optional summary cards, no runtime JavaScript, no external fonts/images/stylesheets.
  2. .svg — the exact extracted SVG, with local styles/defs/tooltips and no HTML dependency.

Report the chosen mode, direction, validator result, and any intentionally allowed crossing or exception.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Zerox Architecture Diagram?

Create and review professional system architecture, infrastructure, cloud, security, network-topology, deployment, and data-flow diagrams as self-contained HTML plus standalone SVG. Use this skill whenever a user wants to visualize technical components or service relationships, especially when layout, swimlanes, edge routing, multi-region grouping, presentation mode, or export quality matters.

Firwat Zerox Architecture Diagram op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Zerox Architecture Diagram besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Zerox Architecture Diagram an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-architecture-diagram an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Zerox Architecture Diagram benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Zerox Architecture Diagram benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Zerox Architecture Diagram domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Zerox Architecture Diagram gratis?

Jo. ZeroxZhang huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇