drawio-diagrams
Skill5 starsChanged 58 days agoMITView on GitHub
Draw dense diagrams — cloud architecture (AWS/GCP/Azure), data flow, network — as draw.io files, export them to PNG headlessly, and place the PNG in a slide-forge deck. The editable .drawio source is archived in the deck's Drive folder so the user can keep editing it. Use for: draw.io で図を作って, クラウド構成図, データフロー図, ネットワーク構成図, cloud architecture diagram, or any diagram too dense for native Slides shapes.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- codebytes/skillstheir own version, first seen Sep 7, 2026
- stark-ai-de/agent-skillstheir own version, first seen Aug 19, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- stark-ai-de/agent-skills★ 8same name
- codebytes/skills★ 2same name
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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- forgeSkill
- analysis-template-creatorSkill
- b2b-account-mapsSkill
- calendar-slidesSkill
- current-state-analysisSkill
- google-slidesSkill
- google-slides-templateSkill
- hearing-sheetSkill
- hearing-slidesSkill
- image-slotsSkill
- nexus-report-slidesSkill
- pptx-exportSkill
- pricing-strategySkill
- scalar-account-planning-sessionSkill
- scalar-account-planSkill
- scalar-ae-materialsSkill
- scalar-deal-intakeSkill
- scalar-nurture-intakeSkill
- scalar-product-slidesSkill
- scalar-proposal-slidesSkill
- settingsSkill
- slide-qaSkill
- slide-template-creatorSkill
- spreadsheetsSkill
- template-forgeSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
When inserting into an existing deck the user already has, run scripts/snapshot_version.py <URL> first (version-before-edit rule shared …
- Very specific: line 54
If neither exists, ask the user to run brew install --cask drawio.
- Very specific: line 60
Write the mxGraph XML directly, following references/drawio.md:
- Distinctive: line 106
Every deck lives in its own Drive folder (see the Drive folder rule in the generating skill).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
日本語
draw.io Diagrams for Google Slides
Important
- Scope: diagrams too dense for
diagrams.pynative shapes — nested containers (VPC/subnet) 2+ levels deep, 10+ nodes, 15+ edges, or when official-style cloud vendor icons with group frames are wanted. For simple concept/flow figures, stay withdiagrams.pyin thegoogle-slidesskill. The routing table is at the top ofreferences/drawio.md. - Working directory: the slide-forge root —
${CLAUDE_PLUGIN_ROOT}when running from an installed plugin,/path/to/slide-forgeon a local clone (literal paths assume the local clone). - Requires the drawio desktop CLI (
brew install --cask drawio;drawioon PATH or the app bundle). Verified headless on macOS. - Visual QA of the exported PNG is mandatory. A wrong shape name
(
resIcon/prIcon/ azure2 SVG path) renders as a plain colored square with no error — never guess names; look them up (references/drawio.md§ How to look up shape names). - Deliverables are three: the slide with the PNG inserted, the exported
PNG, and the editable
.drawiosource. Upload the.drawioand PNG into the deck's Drive folder (scripts/drive_folder.py upload) so the user can edit the diagram later — a PNG alone is a dead end. - When inserting into an existing deck the user already has, run
scripts/snapshot_version.py <URL>first (version-before-edit rule shared with the other slide-forge skills).
Quick Reference
| Task | Where |
| Authoring guide + verified style recipes (AWS/GCP/Azure, groups, edges) | references/drawio.md |
| Export .drawio to PNG | .venv/bin/python scripts/drawio_export.py <in.drawio> [--out out/diagrams/x.png] [--scale 2] |
| Look up shape names (never guess) | grep -ao 'mxgraph\.aws4\.[a-z0-9_]*' /Applications/draw.io.app/Contents/Resources/app.asar | sort -u |
| Insert PNG into a deck spec | { "type": "image", "x": …, "y": …, "w": …, "h": …, "source": "out/diagrams/x.png", "fit": "contain" } |
| Archive sources to the deck's Drive folder | .venv/bin/python scripts/drive_folder.py upload <FOLDER> x.drawio out/diagrams/x.png |
| Version snapshot before editing an existing deck | .venv/bin/python scripts/snapshot_version.py <URL> |
Phase 0: Environment check
which drawio || ls /Applications/draw.io.app/Contents/MacOS/draw.ioIf neither exists, ask the user to run brew install --cask drawio. The
Python side uses the shared slide-forge venv (.venv), same as the other
skills.
Phase 1: Author the .drawio
Write the mxGraph XML directly, following references/drawio.md:
- File skeleton with the mandatory
id="0"/id="1"root cells - Coordinates in px; children of a container use parent-relative coordinates
- Vendor icons: AWS
resourceIcon+resIcon, GCPhexIcon+prIcon, Azureimage=img/lib/azure2/…— copy the verified recipes, look up any name you have not used before - Edges always attach via
source/target(never free coordinates), withedgeLabelchild vertices for labels - Aim the drawing bounds at the slide region's aspect ratio (16:9 to 2:1 for a full-body figure); PNG export crops to content, page size is irrelevant
Save the file next to the deck's spec (e.g. <deck-dir>/figures/arch.drawio).
Phase 2: Export to PNG
.venv/bin/python scripts/drawio_export.py <deck-dir>/figures/arch.drawio \
--out out/diagrams/arch.png --scale 2--scale 2 is the minimum for full-slide figures (target ≥ 1600px width for
an 8in insertion). --transparent for decks with tinted backgrounds;
--page N for multi-page files.
Phase 3: Visual QA (mandatory)
Open the PNG with the Read tool and run the checklist at the bottom of
references/drawio.md: plain-square icons (wrong shape names), overlapping
labels, edges crossing unrelated shapes, children escaping containers,
legibility at insertion size. Fix the XML and re-export until clean.
Phase 4: Insert into the deck
- Spec path (
build_deck.py): add animagepart pointing at the local PNG; usefit: "contain"and size the box to the PNG's aspect ratio. - Code-first path (
deckkit):image(x, y, w, h, "out/diagrams/arch.png"). - Existing deck: snapshot the version first (
snapshot_version.py), then insert with the API and renumber pages if needed (references/code-blocks.mdshows the insertion pattern).
The generator uploads the PNG to Drive temporarily and cleans it up — the slide keeps its own copy of the image.
Phase 5: Archive sources in the deck's Drive folder
Every deck lives in its own Drive folder (see the Drive folder rule in the generating skill). Put the diagram sources there too:
.venv/bin/python scripts/drive_folder.py upload <FOLDER_URL_OR_ID> \
<deck-dir>/figures/arch.drawio out/diagrams/arch.pngReport the folder URL together with the deck URL, and mention that the
.drawio can be opened at app.diagrams.net or in the draw.io desktop app
for later edits.
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.

