drawio
Skill3 starsChanged 8 months agoMITArchived repositoryView on GitHub
Draw.io architecture diagrams for Azure via simonkurtz-MSFT MCP server — 700+ Azure icons, batch creation, transactional mode. USE FOR: architecture diagrams, dependency diagrams, runtime flow diagrams, as-built diagrams. DO NOT USE FOR: WAF/cost charts (use python-diagrams), inline Mermaid (use mermaid), Excalidraw diagrams (use excalidraw).
14 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/frontier-ai-governance-rvastheir own version, first seen Oct 3, 2026
- jablonkai/skillstheir own version, first seen Oct 1, 2026
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- norandom/Skillstheir own version, first seen Sep 13, 2026
- ikkeseb/skillstheir own version, first seen Aug 20, 2026
- ana52070/claude-code-setuptheir own version, first seen Jul 17, 2026
Used with
Projects with it also use skill-creator.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 4 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- github/awesome-copilot★ 40ksame name
- bahayonghang/drawio-skills★ 285same name
- Chanw-research/claude-code-paper-writing★ 42same name
- sordi-ai/skill-everything★ 20same name
- scarr05/claude-skills-pub★ 17same name
- roeyw5/claude-code-guide★ 9same name
- akiojin/skills★ 7same name
- MakiDevelop/claude-skills★ 3same name
- norandom/Skills★ 3same name
- ikkeseb/skills★ 2same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- appinsights-instrumentationSkill
- azure-adrSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-artifactsSkill
- azure-bicep-patternsSkill
- azure-cloud-migrateSkill
- azure-complianceSkill
- azure-computeSkill
- azure-cost-optimizationSkill
- azure-defaultsSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-diagramsSkill
- azure-hosted-copilot-sdkSkill
- azure-kustoSkill
- azure-messagingSkill
- azure-prepareSkill
- azure-quotasSkill
- azure-rbacSkill
- azure-resource-lookupSkill
- azure-resource-visualizerSkill
- azure-storageSkill
- azure-validateSkill
- context-optimizerSkill
- context-shreddingSkill
- copilot-customizationSkill
- count-registrySkill
- docs-writerSkill
- entra-app-registrationSkill
- excalidrawSkill
- github-operationsSkill
- golden-principlesSkill
- iac-commonSkill
- make-skill-templateSkill
- mermaidSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-foundrySkill
- microsoft-skill-creatorSkill
- python-diagramsSkill
- session-resumeSkill
- terraform-patternsSkill
- terraform-search-importSkill
- terraform-testSkill
- workflow-engineSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 7 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Use the MCP server's startup instructions as the authoritative tool reference.
- Very specific: line 49
Use shape_name in add-cells to specify Azure icons (e.g., shape_name: "Front Doors")
- Very specific: line 50
Do NOT specify
width,height, orstyle: when using shape_name — the server auto-applies correct dimensions and styling - Very specific: line 52
Use search-shapes with a queries array to find icon names by fuzzy match
- Very specific: line 54
Every shaped vertex MUST have a text label or omit text entirely — never pass text: ""
- Very specific: line 83
CRITICAL: When using transactional mode, you MUST call finish-diagram at the end.
- Very specific: line 88
When finish-diagram or export-diagram returns XML in a JSON response, use the helper script to decompress, strip edge anchors, and save in …
- Distinctive: line 99
Do NOT: read the large MCP JSON response back through the LLM — extract data via terminal commands to avoid inflating the context window.
- Distinctive: line 105
Never call a tool repeatedly for individual items.
- Very specific: line 110
Use temp_id for cross-refs, shape_name for icons.
- Very specific: line 115
After group assignments, call validate-group-containment to detect any children that exceed group bounds.
- Distinctive: line 123
Do NOT read back large MCP responses through the LLM: When a tool result is written to a temp file, extract only the data you need via a …
- Distinctive: line 142
Create groups for VNets, subnets, Container Apps Environments, resource groups.
- Very specific: line 144
Use suggest-group-sizing to calculate dimensions based on child count.
- Very specific: line 148
Orthogonal only: Use edgeStyle=orthogonalEdgeStyle (the default).
- Very specific: line 149
NO anchor points: Never set entryX, entryY, exitX, exitY in your edge style.
- Very specific: line 150
NO waypoints: Do not add <Array as="points"> or <mxPoint> elements.
- Distinctive: line 154
Fan-out staggering: When multiple edges leave the same source, keep them minimal.
- Distinctive: line 168
Place Azure Monitor, Entra ID, Key Vault, Azure Policy, Defender for Cloud, Container Registry, DNS Zones, Application Insights, Log …
- Very specific: line 173
Use the Azure-aligned color palette from get-style-presets and the style examples in references/style-reference.md.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Draw.io Architecture Diagrams
Generate Azure architecture diagrams in .drawio format using the
simonkurtz-MSFT Draw.io MCP server. The server has 700+ built-in Azure icons,
fuzzy shape search, batch operations, group/layer/page management, and
transactional mode for efficient multi-step workflows.
Authoritative reference: The MCP server's own src/instructions.md (519 lines) is the
canonical guide for tool parameters, layout rules, and workflow patterns.
It is automatically sent to the MCP client at startup via the server's
instructions field — agents receive it in context without needing to read it.
This skill provides project-specific conventions that complement (not duplicate) it.
Prerequisites
- Draw.io MCP server:
simonkurtz-MSFT/drawio-mcp-server(Deno, stdio) configured in.vscode/mcp.json - Deno runtime: Installed via devcontainer feature
ghcr.io/devcontainers-community/features/deno - VS Code extension (optional):
hediet.vscode-drawiofor in-editor preview
MCP Workflow Summary
Use the MCP server's startup instructions as the authoritative tool reference. This skill only captures the repo-specific sequence and guardrails that must stay consistent across generated diagrams.
search-shapes— resolve all Azure icons up front in one batchcreate-groups— create VNets, subnets, resource groups, or app environmentsadd-cells— add all vertices and edges in one batch usingshape_nameandtemp_idadd-cells-to-group— assign all children to groups in one batchfinish-diagramorexport-diagram— emit final XML withcompress: true
For reusable call patterns, see references/azure-patterns.md.
Icon Handling
Icons are resolved automatically by the MCP server from its built-in library
(700+ Azure icons from assets/azure-public-service-icons/).
- Use
shape_nameinadd-cellsto specify Azure icons (e.g.,shape_name: "Front Doors") - Do NOT specify
width,height, orstylewhen usingshape_name— the server auto-applies correct dimensions and styling - Use
search-shapeswith aqueriesarray to find icon names by fuzzy match - Azure icons use their official service names, often plural (e.g., "Key Vaults", "Container Apps", "App Services")
- Every shaped vertex MUST have a
textlabel or omittextentirely — never passtext: "" - Output format is embedded base64 SVG in the style attribute
Diagram Creation Workflows
Workflow A: Non-Transactional (small diagrams)
For simple diagrams or single operations. Each tool call returns full XML with complete SVG image data.
search-shapes → add-cells → export-diagram(compress: true) → save .drawioWorkflow B: Transactional (recommended for multi-step)
For any multi-step diagram. Intermediate responses use lightweight placeholders
(~2KB instead of ~200KB). Real SVGs are resolved once at the end via finish-diagram.
search-shapes
→ create-groups(transactional: true)
→ add-cells(transactional: true)
→ add-cells-to-group(transactional: true)
→ edit-cells(transactional: true) [if needed]
→ finish-diagram(compress: true) [resolves all placeholders]
→ save .drawio via terminal commandCRITICAL: When using transactional mode, you MUST call finish-diagram
at the end. Without it, the diagram contains placeholder shapes instead of real icons.
Saving .drawio Files
When finish-diagram or export-diagram returns XML in a JSON response, use
the helper script to decompress, strip edge anchors, and save in one step:
python3 scripts/save-drawio.py '<temp-content-json-path>' '<output-path>.drawio'
node scripts/validate-drawio-files.mjs '<output-path>.drawio'The script handles: compressed content decompression, mxGraphModel embedding
(repo validator format), edge anchor/waypoint stripping, and directory creation.
Do NOT read the large MCP JSON response back through the LLM — extract data via terminal commands to avoid inflating the context window.
Batch-Only Workflow (CRITICAL)
Every tool that accepts an array MUST be called exactly ONCE with ALL items. Never call a tool repeatedly for individual items.
search-shapes— ONE call with ALL queries in thequeriesarray (main flow + cross-cutting)create-groups— ONE call with ALL groups. Settext: ""for groups; create separate text vertex above.add-cells— ONE call with ALL vertices AND edges. Vertices before edges. Usetemp_idfor cross-refs,shape_namefor icons.add-cells-to-group— ONE call with ALL assignments. Server auto-converts absolute → group-relative coords.edit-cells/edit-edges— ONE call if adjustments needed.finish-diagram(transactional) orexport-diagram(default) — withcompress: true.
After group assignments, call validate-group-containment to detect any children that exceed group bounds.
Token Efficiency
- The MCP server is NOT stateful between tool calls. You MUST pass
diagram_xmlfrom the previous call's response on every subsequent call. Save the XML to a temp file between steps and read it back rather than inflating the LLM context with the full XML in every turn. - Do NOT read back large MCP responses through the LLM. When a tool result is written to a temp file, extract only the data you need via a terminal command (e.g., cell IDs) rather than reading the entire JSON into context.
- Target 8–10 model turns for a complete diagram. Pre-compute the full layout (all vertices, edges, groups, assignments) before making any MCP calls, then execute the batch workflow in sequence.
Layout Conventions
General Rules
- Primary flow: left-to-right. Each stage occupies a column.
- Parallel services: stacked vertically within their column, never side-by-side.
- Spacing: 120px horizontal between columns, 80px vertical between rows, 40px around each cell.
- Page: US Letter 850×1100px. Content within 40px margins (usable: 770×1020).
- No overlapping: Components must not overlap each other.
Groups
- Create groups for VNets, subnets, Container Apps Environments, resource groups.
- Set
text: ""for groups — create a separate bold text vertex above the group instead. - Use
suggest-group-sizingto calculate dimensions based on child count.
Edges
- Orthogonal only: Use
edgeStyle=orthogonalEdgeStyle(the default). - NO anchor points: Never set
entryX,entryY,exitX,exitYin your edge style. - NO waypoints: Do not add
<Array as="points">or<mxPoint>elements. - Side exits preferred: edges exit/enter through left or right sides.
- One edge per source into a group: target the group cell, not children inside.
- No edges to cross-cutting services: their presence is implied.
- Fan-out staggering: When multiple edges leave the same source, keep them minimal. Consider merging semantically similar paths (e.g., "Partner Data Export" instead of Storage → Data Share → Partners as 3 separate edges).
CRITICAL — Post-Processing Required: The MCP server's auto-router injects
exitX/exitY/entryX/entryYanchor points and<Array>waypoints into every edge it creates. These computed routes are poor for fan-out patterns and cause edges to pile up in horizontal corridors. Afterfinish-diagram, the agent MUST runscripts/save-drawio.pywhich strips these injected anchors and waypoints, letting Draw.io's client-side renderer calculate clean orthogonal paths when the file is opened.
Cross-Cutting & Supporting Services
Place Azure Monitor, Entra ID, Key Vault, Azure Policy, Defender for Cloud, Container Registry, DNS Zones, Application Insights, Log Analytics at the bottom of the diagram, 120px below the main flow. No edges to them. Space 100px apart (center-to-center). Wrap into multiple rows at page width.
Use the Azure-aligned color palette from get-style-presets and the style
examples in references/style-reference.md. Standard output filenames and the
validation checklist live in references/validation-checklist.md.
Reference Index
| File | Purpose |
references/style-reference.md | Draw.io style properties for AI-generated files |
references/azure-patterns.md | Reusable MCP tool call patterns for Azure architectures |
references/validation-checklist.md | Validation rules for AI-generated .drawio files |
references/abstraction-rules.md | Diagram abstraction and data-flow clarity rules |
references/iac-to-diagram.md | Generate diagrams from Bicep/Terraform/ARM templates |
Quality target samples: tmp/azure-architecture-example.drawio, tmp/03-des-diagram.svg
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

