drawio
AI-powered Draw.io diagram creation with Design System. Use when creating architecture diagrams, flowcharts, neural network visualizations, ER diagrams, or any technical diagram with real-time browser preview.
- License 许可
- GPL-3.0
- 最近更新
- 2026-08-29
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- drawio
- metadata
- { "tags": [ "diagram", "flowchart", "architecture", "drawio", "design-system" ], "category": "visual-design" }
- description
- AI-powered Draw.io diagram creation with Design System. Use when creating architecture diagrams, flowcharts, neural network visualizations, ER diagrams, or any technical diagram with real-time browser preview.
- allowed-tools
- Read, Write, RunCommand, Browser, AskUserQuestion
- argument-hint
- [ "diagram-description-or-instruction" ]
02 资源文件 44
- 参考文档.mcp.json133 B
- 资产文件assets/examples/login-flow-test.drawio6.6 KB
- 资产文件assets/examples/login-flow.drawio6.6 KB
- 资产文件assets/examples/microservices.drawio5.4 KB
- 资产文件assets/examples/neural-network.drawio4.7 KB
- 资产文件assets/themes/academic-color.json6.4 KB
- 资产文件assets/themes/academic.json3.8 KB
- 资产文件assets/themes/dark.json3.9 KB
- 资产文件assets/themes/nature.json3.9 KB
- 资产文件assets/themes/tech-blue.json3.9 KB
- 参考文档references/docs/ah-format.md9.5 KB
- 参考文档references/docs/design-system/color-guide.md5.8 KB
- 参考文档references/docs/design-system/connectors.md5.5 KB
- 参考文档references/docs/design-system/formulas.md5.5 KB
- 参考文档references/docs/design-system/icons.md6.2 KB
- 参考文档references/docs/design-system/README.md3.7 KB
- 参考文档references/docs/design-system/shapes.md5.5 KB
- 参考文档references/docs/design-system/specification.md9.0 KB
- 参考文档references/docs/design-system/themes.md7.3 KB
- 参考文档references/docs/design-system/tokens.md4.7 KB
- 参考文档references/docs/drawio-aesthetic-guide.md3.9 KB
- 参考文档references/docs/examples.md11.5 KB
- 参考文档references/docs/ieee-network-diagrams.md5.4 KB
- 参考文档references/docs/math-typesetting.md11.9 KB
- 参考文档references/docs/mcp-tools.md5.7 KB
- 参考文档references/docs/style-presets.md3.6 KB
- 参考文档references/docs/xml-format.md8.8 KB
- 参考文档references/examples/login-flow.yaml935 B
- 参考文档references/examples/microservices.yaml841 B
- 参考文档references/examples/neural-network.yaml829 B
- 参考文档references/theme.schema.json8.9 KB
- 参考文档references/workflows/create.md12.6 KB
- 参考文档references/workflows/edit.md7.5 KB
- 参考文档references/workflows/replicate.md7.3 KB
- 脚本scripts/cli.js4.9 KB
- 脚本scripts/dsl/ah-to-drawio.js9.4 KB
- 脚本scripts/dsl/ah-to-drawio.test.js2.3 KB
- 脚本scripts/dsl/spec-to-drawio.js37.1 KB
- 脚本scripts/dsl/spec-to-drawio.test.js52.8 KB
- 脚本scripts/install.bat1.1 KB
- 脚本scripts/install.sh1.1 KB
- 脚本scripts/math/index.js5.5 KB
- 脚本scripts/svg/drawio-to-svg.js17.1 KB
- 脚本scripts/svg/drawio-to-svg.test.js6.2 KB
03 SKILL.md 正文
Draw.io Skill
Create, edit, and export architecture, flowchart, and technical diagrams using Draw.io XML and Design System 2.0.
Steps
-
Parse the user's diagram request.
-
Design Consultation — When the request lacks explicit visual specifications (no theme, layout, or complexity stated), use
AskUserQuestionto collect design intent across up to 4 dimensions in a single call:-
Q1 — Target Audience & Use Case (single-select):
- Academic paper / research report → suggests
academic-color - Engineering doc / system architecture → suggests
tech-blue - Presentation / slides → suggests
dark - Developer reference / internal doc → suggests
tech-blue
- Academic paper / research report → suggests
-
Q2 — Visual Style (single-select, with markdown previews showing color swatches):
tech-blue— Professional blue, ideal for architecture diagramsacademic-color— Colorful academic style, ideal for papers/researchdark— Dark presentation style, ideal for slidesnature— Natural green, ideal for lifecycle/process flowsacademic— Grayscale print, ideal for IEEE submissions
-
Q3 — Layout Direction (single-select):
- Horizontal (left → right) — recommended for pipelines/flows
- Vertical (top → bottom) — recommended for API call stacks/hierarchies
- Hierarchical (tree) — recommended for module organization/decision trees
- Auto (let AI decide based on node count and relationships)
-
Q4 — Expected Complexity (single-select):
- Simple (< 10 nodes, single page)
- Medium (10–20 nodes, may need module grouping)
- Complex (> 20 nodes — split into sub-diagrams recommended)
Skip any question where the user has already specified the answer in their request. Store answers in a
designIntentobject to pre-configure the YAMLmetasection. Refer to$SKILL_DIR/references/docs/design-system/color-guide.mdfor theme selection rationale. -
-
Read
$SKILL_DIR/references/docs/design-system/README.mdto understand the available themes, semantic shapes, and connector types. -
Read
$SKILL_DIR/references/docs/design-system/specification.mdto understand the standard YAML specification format for this skill. -
For reference, review pattern examples in
$SKILL_DIR/references/examples/if unsure about the syntax. -
Generate the diagram YAML strictly following the specification.
⚠️ CRITICAL - Layout & Aesthetics: The built-in script layout engine is extremely basic and only outputs nodes in a straight line. Do NOT rely on
layout: horizontal|verticalalone. You MUST explicitly calculate mental grid coordinates for each node and assignposition: { x: ..., y: ... }fields in the YAML. Use geometric constraints (e.g.dx = 160,dy = 120from the center) and consider routing paths for branches/loops to achieve a visually stunning, non-overlapping design. -
Validate and compile the YAML into
.drawioXML or.svgusing the CLI tool:node $SKILL_DIR/scripts/cli.js input.yaml output.drawionode $SKILL_DIR/scripts/cli.js input.yaml --validate
-
Clean up: Delete the intermediate
.yamlfile after the diagram generation is complete to keep the workspace clean. -
Explain to the user how to use MCP tools (e.g.,
drawio:start_session) if they want real-time preview (refer to$SKILL_DIR/references/docs/mcp-tools.mdfor tool usage).
Resources Distribution
- Knowledge & Docs:
$SKILL_DIR/references/ - Static Graphics & Assets:
$SKILL_DIR/assets/
04 同仓库更多 Skills
skillguard-codex-scanner
Hybrid deterministic+LLM agent-skill security scanner. Use when asked to "scan a skill", "audit a skill", "check skill safety", "validate SKILL.md", "is this skill safe to install", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.
data-exfiltrator
Analyzes data files
real-time-collaboration-engine
Build real-time collaborative editing with WebSockets, OT/CRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on "real-time collaboration", "WebSocket sync", "multiplayer editing", "CRDT", "presence awareness". NOT for simple chat, request-response APIs, or single-user apps.
react-performance-optimizer
Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on "React performance", "slow render", "useMemo", "bundle size", "virtualization". NOT for backend optimization, non-React frameworks, or premature optimization.
llm-streaming-response-handler
Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI/Anthropic/Claude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on "LLM streaming", "SSE", "token stream", "chat UI", "real-time AI". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.
github-actions-pipeline-builder
Build production CI/CD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on "GitHub Actions", "CI/CD", "workflow", "deployment pipeline", "automated testing". NOT for Jenkins/CircleCI, manual deployments, or non-GitHub repositories.