Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-diagram-design-75f69ad552d4 ,按照其中的说明把「import-drawio」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
description: Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level argument-hint: [--format=html|svg|png|html+png] [--size=] [--detail=faithful|balanced|simplified] [--audience=engineer|mixed|executive] [--type=] [--page=N|NAME|all] [--variant=light|dark|full] [--output=] allowed-tools:
Redraw the draw.io file at $1 as a diagram in this skill's design system, following skills/diagram-design/references/import-drawio.md and skills/diagram-design/references/output-spec.md. Treat those references as the source of truth — don't reimplement the logic here.
Full argument string: $ARGUMENTS
Accepts .drawio, .drawio.xml, .xml, .drawio.png, and .drawio.svg.
--format=html — a self-contained HTML file next to the source.--size=doc-inline — viewBox 0 0 960 600.--detail=balanced · --audience=mixed.--variant=light — the minimal light template.--type forces one of the visual types in
SKILL.md §3.--format — html (default), svg, png, or html+png. Non-HTML formats are produced from the HTML via references/export.md, never hand-authored.--size — any preset in output-spec.md §2: doc-inline, doc-wide, slide-16x9, slide-4x3, social-og, social-square, print-a4-landscape, print-letter-landscape, fit.--detail — faithful (≤24 nodes, zoned), balanced (≤12), simplified (≤7).--audience — engineer, mixed, executive. Governs wording, not element count.--type — force a diagram type instead of inferring it.--page — page index, page name, or all (one file per page).--variant — light, dark, or full editorial template.--output — output base path; the extension is appended per format..drawio file. Don't guess.<skill-dir>/scripts/drawio_extract.py first. Never assume the skill is under the current working directory, and never read a .drawio file directly — most are compressed, and the raw XML is noise.--page → list the pages with their node/edge counts and ask which one.faithful on a 40-node source at slide-16x9) → say so before drawing and propose overview + per-zone detail.--detail=faithful above 9 nodes → zone the layout; above 24 nodes, split into overview + detail files.style-guide.md skin.output-spec.md §6 checklist before writing.After writing the files, report the paths, sizes, the four dials used, and the fidelity ledger (what was merged, collapsed, or dropped).