architecture-diagram
БесплатноБез исполняемых скриптовНе проверенDark-themed SVG architecture/cloud/infra diagrams as HTML.
от 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
- User describes their system architecture (components, connections, technologies)
- Generate the HTML file following the design system below
- Save with
write_fileto a.htmlfile (e.g.~/architecture-diagram.html) - 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.
- 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. - Screenshot a known rect, not the scrolling page height:
cdp('Emulation.setDeviceMetricsOverride', width=1100, height=1240, deviceScaleFactor=1, mobile=False)thencdp('Page.captureScreenshot', format='png', captureBeyondViewport=True, clip={'x':0,'y':0,'width':1100,'height':1240,'scale':2})and writebase64.b64decode(res['data'])to the target.png. - Never stack scaling.
deviceScaleFactor: 2already doubles; addingclip.scale: 2multiplies to 4x (a 2200x2480 image silently becomes 4580x6556) and chat clients recompress it to mush. Pick one:deviceScaleFactor=1+clip.scale=2, ordeviceScaleFactor=2+clip.scale=1. - 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.
- Send with
MEDIA:/absolute/path.pngand put the reading order in the message text: the image carries the shape, the caption carries the meaning. - No interactive browser session, or the CDP capture stalls: render the same fixed-size HTML with the Playwright headless shell in one shot —
--window-sizesets the exact output size,--force-device-scale-factor=2the sharpness,--virtual-time-budget=9000gives webfonts time to land. Full command and traps: theclaude-designskill 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 · NAMEleft-anchored, detail right-anchored withtext-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
Установить architecture-diagram в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл architecture-diagram?
Dark-themed SVG architecture/cloud/infra diagrams as HTML.
Как установить скилл architecture-diagram?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл architecture-diagram запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub