Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

architecture-diagram

БесплатноБез исполняемых скриптовНе проверен

Dark-themed SVG architecture/cloud/infra diagrams as HTML.

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

Architecture Diagram Skill

Generate professional, dark-themed technical architecture diagrams as standalone HTML files with inline SVG graphics. No external tools, no API keys, no rendering libraries — just write the HTML file and open it in a browser.

Scope

Best suited for:

  • Software system architecture (frontend / backend / database layers)
  • Cloud infrastructure (VPC, regions, subnets, managed services)
  • Microservice / service-mesh topology
  • Database + API map, deployment diagrams
  • Process / workflow flows (request → gate → queue → parallel workers → result): lay these out as a vertical spine, not a wide left-to-right strip, so the diagram stays legible on a phone
  • Anything with a tech-infra subject that fits a dark, grid-backed aesthetic

Look elsewhere first for:

  • Physics, chemistry, math, biology, or other scientific subjects
  • Physical objects (vehicles, hardware, anatomy, cross-sections)
  • Floor plans, narrative journeys, educational / textbook-style visuals
  • Hand-drawn whiteboard sketches (consider excalidraw)
  • Animated explainers (consider an animation skill)

If a more specialized skill is available for the subject, prefer that. If none fits, this skill can also serve as a general SVG diagram fallback — the output will just carry the dark tech aesthetic described below.

Based on Cocoon AI's architecture-diagram-generator (MIT).

Workflow

  1. User describes their system architecture (components, connections, technologies)
  2. Generate the HTML file following the design system below
  3. Save with write_file to a .html file (e.g. ~/architecture-diagram.html)
  4. User opens in any browser — works offline, no dependencies

Output Location

Save diagrams to a user-specified path, or default to the current working directory:

./[project-name]-architecture.html

Preview

After saving, suggest the user open it:

# macOS
open ./my-architecture.html
# Linux
xdg-open ./my-architecture.html

Delivering as an Image (chat, Telegram, docs)

HTML is for when the user opens the file themselves. When the diagram is the answer in a chat, render a PNG and send that.

  1. Render the SVG standalone. Then screenshot pixels equal viewBox pixels: html, body { margin: 0; padding: 0 } and an explicit <svg width="1100" height="1240" viewBox="0 0 1100 1240">. Put the title inside the SVG. With a padded page wrapper or an HTML header above the SVG, viewBox coordinates no longer map to image coordinates and every pixel probe or crop is misaligned.
  2. Screenshot a known rect, not the scrolling page height: cdp('Emulation.setDeviceMetricsOverride', width=1100, height=1240, deviceScaleFactor=1, mobile=False) then cdp('Page.captureScreenshot', format='png', captureBeyondViewport=True, clip={'x':0,'y':0,'width':1100,'height':1240,'scale':2}) and write base64.b64decode(res['data']) to the target .png.
  3. Never stack scaling. deviceScaleFactor: 2 already doubles; adding clip.scale: 2 multiplies to 4x (a 2200x2480 image silently becomes 4580x6556) and chat clients recompress it to mush. Pick one: deviceScaleFactor=1 + clip.scale=2, or deviceScaleFactor=2 + clip.scale=1.
  4. Size for the phone. ~1100 px wide by 1200-1600 px tall keeps 12-16 px labels readable at full width on a phone; a 1680 px landscape strip downscales to ~7 px text that gets squinted at instead of read.
  5. Send with MEDIA:/absolute/path.png and put the reading order in the message text: the image carries the shape, the caption carries the meaning.
  6. No interactive browser session, or the CDP capture stalls: render the same fixed-size HTML with the Playwright headless shell in one shot — --window-size sets the exact output size, --force-device-scale-factor=2 the sharpness, --virtual-time-budget=9000 gives webfonts time to land. Full command and traps: the claude-design skill carries the export recipe (its html-to-image-export reference).

Verify Before Sending

A diagram that looks right in the SVG source is not verified. After every render, load the PNG with vision_analyze and ask specifically about: text clipped by its box, text overlapped by connectors, arrows stopping short of a box, lines hidden behind components, missing stage numbers, and content cut at the edges. Then fix and re-render; never report a fix you have not seen in a new render.

Defects this check routinely catches:

  • A caption running along the top edge of a dashed boundary gets crossed by the connector entering that boundary. Split it (4 · NAME left-anchored, detail right-anchored with text-anchor="end"), or move the label outside the boundary.
  • Captions inside a dashed group must clear the boxes: label at the top, boxes started ~35 px lower, so merge lines below the boxes never run through the text.
  • Number every stage, including fan-out regions; an unnumbered block reads as an omission in
Полный SKILL.md на GitHub

Установить architecture-diagram в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamltemplates/template.htmltemplates/workflow-spine.html

FAQ

Что делает скилл architecture-diagram?

Dark-themed SVG architecture/cloud/infra diagrams as HTML.

Как установить скилл architecture-diagram?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл architecture-diagram запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить architecture-diagram с