common-architecture-diagramming
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional multi-view identity checks…
от HoangNguyen0403★ 598 звёзд на GitHub
Установить common-architecture-diagramming в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Architecture Diagramming Standard
Priority: P1 (HIGH)
Pipeline
Never hand-write mxGraph XML. Write a spec; the scripts own every visual decision, so diagrams stay identical across authors, repositories, and sessions.
- Write
spec.json— schema in diagram-spec.md. For an ERD, generate it:python3 scripts/schema_to_spec.py db/schema.sql --title "<System> — ERD" -o spec.json python3 scripts/validate_spec.py spec.jsonpython3 scripts/render_drawio.py spec.json -o docs/architecture/<slug>.drawio --strict(exit 2 = a layout finding; change the spec, per layout-rules.md)- For related views, optionally validate view-manifest.md:
python3 scripts/validate_manifest.py view-manifest.json - Export the image: a draw.io MCP tool if the session has one, else
python3 scripts/export_drawio.py docs/architecture/<slug>.drawio -f png -o docs/architecture/<slug>.png, else ship the.drawioand say the image was not exported. See export paths. For self-contained offline delivery with coordinated light and dark themes, usepython3 scripts/export_html.py spec.json --output-dir docs/architecture/<slug>-package/ [--manifest view-manifest.json]. See offline export. - Inspect the exported image or static package at normal reading size and at the intended
destination (slide, print, narrow viewport) in both themes; strict validation or zero exit
codes cannot prove labels and edges are legible or semantically correct. Fix the spec and
re-export before handoff. For an offline package, also confirm the semantic transcript still
exposes ids, grouping, and relationship direction when images are disabled.
The JSON spec is the semantic source of truth;
.drawiois the editable presentation and the image is a copy for a deck. Generated XML records its own baseline; regeneration protects manual edits by default. Use--acknowledge-manual-editsonly after returning semantic changes to the spec.
Guidelines
- Name the audience and the decision before drawing anything.
- One C4 level per diagram: context, container, or component, never mixed.
- Pick the type from the message, not from habit. See diagram-selection.md.
- Evidence and confidence are separate. Code citations are documented evidence, not runtime
observations; use
assumedorunverifiedfor honest design uncertainty. - Put the number on the box.
metriccarries the load or SLO that sized the node,constraintsays why it exists; never invent either. - Label every edge with its protocol or event; use
style: asyncfor events. - Cloud icons only where verified.
gcp:*andaws:*are official icons; every other vendor is acloud:*kind with the service named insublabel. No Azure logos exist in the bundle, so Azure is alwayscloud:*. - Exec audience caps at 12 nodes. Past that, split by level or by flow.
- Legend and title block are generated. Do not remove or duplicate them.
- Refine in the spec, not by mutating generated XML. Regeneration preserves files with a valid own baseline, but refuses hand mutation until explicitly acknowledged.
Anti-Patterns
- No hand-written XML: Write the spec, run the renderer.
- No invented boxes: Omit what the evidence does not support.
- No mixed levels: Table columns never appear in a context diagram.
- No unlabeled arrows: State the protocol or the event.
- No mystery acronyms: Expand every abbreviation on first use.
- No orphan nodes: Connect it or cut it.
Red Flags
| Thought | Reality |
|---|---|
| "It is one box, I will write the XML" | The renderer owns style, legend, and title block. Use it. |
| "Close enough, I will guess this service" | Guesses ship as facts. Omit the evidence and let it render UNVERIFIED. |
| "Managers want the whole system on one page" | Past 12 nodes they stop reading. Split it. |
References
- Diagram spec · View manifest · Style catalog · House style
- Source extraction · Exec readability
- C4 model · Cloud · Best practices
- Layout rules · Checklist · Export paths and Mermaid fallback · Offline export
- Batch or delegated drawing:
specialist-solution-diagrammer. - HLD document structure and reviewer standards: system-design-document.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- LICENSE
- references/best-practices.md
- references/c4-model.md
- references/checklist.md
- references/cloud-architecture.md
- references/diagram-selection.md
- references/diagram-spec.md
- references/exec-readability.md
- references/house-style.md
- references/layout-rules.md
- references/mermaid-fallback.md
- references/offline-export.md
- references/source-extraction.md
- references/style-catalog.md
- references/view-manifest.md
- scripts/check_layout.py
- scripts/export_drawio.py
- scripts/export_html.py
- scripts/render_drawio.py
- scripts/render_erd.py
- scripts/schema_parsers/__init__.py
- scripts/schema_parsers/django_sqlalchemy.py
- scripts/schema_parsers/model.py
- scripts/schema_parsers/prisma.py
- scripts/schema_parsers/sql_ddl.py
- scripts/schema_parsers/typeorm.py
- scripts/schema_to_spec.py
- scripts/style_catalog.py
- scripts/test_check_layout.py
- scripts/test_export_html.py
- scripts/test_fixtures.py
- scripts/test_render_drawio.py
- scripts/test_schema_parsers.py
- scripts/test_schema_to_spec.py
- scripts/test_view_manifest.py
- scripts/text_layout.py
- scripts/validate_manifest.py
- scripts/validate_spec.py
FAQ
Что делает скилл common-architecture-diagramming?
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional multi-view identity checks. Use when producing a system context, container, component, deployment, data flow, sequence, state, or ERD, or redrawing an ASCII or Mermaid one.
Как установить скилл common-architecture-diagramming?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл common-architecture-diagramming запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…