Логотип Zerox Architecture Diagram

Zerox Architecture Diagram

Сообщество
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.

Обзор

ИздательZeroxZhang
Репозиторийzerox-skills
Название навыкаzerox-architecture-diagram
Звёзды
40
Форки
5
Файлы в комплекте
15
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 15

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — ZeroxZhang. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Zerox Architecture Diagram в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-architecture-diagram
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Zerox Architecture Diagram в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Zerox Architecture Diagram, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Zerox Architecture Diagram не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Zerox Architecture Diagram в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Zerox Architecture Diagram — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Zerox Architecture Diagram в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-architecture-diagram. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Zerox Architecture Diagram?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Zerox Architecture Diagram?

С любым количеством. В TypingMind вы можете использовать Zerox Architecture Diagram с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Zerox Architecture Diagram?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — ZeroxZhang. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип affaan-m

Plan Canvas

affaan-m
СообществоПопулярный

Open plans and HTML artifacts in a local browser canvas where the human annotates elements, chats, and approves or requests changes without leaving the page. Use when presenting a plan for review, or…

40.4K
270.2K
Файлы: 1
Открыть
Логотип mattpocock

Improve Codebase Architecture

mattpocock
СообществоПопулярный

Просканируйте кодовую базу в поисках возможностей для дальнейшего развития, представьте их в виде наглядного HTML-отчёта, а затем тщательно разберите выбранный вами вариант.

22.3K
264.4K
Файлы: 2
Открыть
Логотип mattpocock

Grilling

mattpocock
СообществоПопулярный

Неустанно расспрашивайте пользователя о плане, решении или идее, подвергая их жесткой проверке. Используйте, если пользователь хочет проверить свои рассуждения на прочность или использует любую из фраз-триггеров со словом «grill».

22.3K
264.4K
Файлы: 1
Открыть
Логотип mattpocock

Teach

mattpocock
СообществоПопулярный

Научите пользователя новому навыку или концепции в рамках этого рабочего пространства.

22.3K
264.4K
Файлы: 5
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇