Skip to content

Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.

fix(aiicons): emit marker-less base64 data URI so --embed icons render (#82)

Agents365.aic1b4faed8c08
diff --git a/skills/drawio-skill/SKILL.md b/skills/drawio-skill/SKILL.md
index 698c39f..5ade2d9 100644
--- a/skills/drawio-skill/SKILL.md
+++ b/skills/drawio-skill/SKILL.md
@@ -1,6 +1,6 @@
---
name: drawio-skill
-version: 1.28.1
+version: 1.28.2
description: Use when the user requests diagrams, flowcharts, architecture diagrams, ER diagrams, UML / sequence / class diagrams, network topology, cloud architecture from Terraform or Kubernetes manifests, ML/DL model figures (Transformer/CNN/LSTM), mind maps, or any visualization. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Best suited when the diagram needs custom styling, rich shape vocabulary, swimlanes, or exportable images (PNG/SVG/PDF/JPG). Generates .drawio XML and exports locally via the native draw.io desktop CLI.
license: MIT
homepage: https://github.com/Agents365-ai/drawio-skill
diff --git a/skills/drawio-skill/scripts/aiicons.py b/skills/drawio-skill/scripts/aiicons.py
index 425831a..b6fcd59 100644
--- a/skills/drawio-skill/scripts/aiicons.py
+++ b/skills/drawio-skill/scripts/aiicons.py
@@ -164,7 +164,9 @@ def main():
continue
# Rewrite the 1em intrinsic size so draw.io scales the inlined SVG.
svg = svg.replace(b'width="1em"', b'width="24"').replace(b'height="1em"', b'height="24"')
- image = "data:image/svg+xml;base64," + base64.b64encode(svg).decode()
+ # Marker-less base64: draw.io splits style values on ';', so a
+ # ';base64,' marker would truncate the image= value (issue #80).
+ image = "data:image/svg+xml," + base64.b64encode(svg).decode()
else:
image = url
results.append({"brand": base, "file": file, "w": args.size, "h": args.size,
@@ -179,7 +181,8 @@ def main():
if args.embed:
try:
svg = urllib.request.urlopen(url, timeout=15).read()
- image = "data:image/svg+xml;base64," + base64.b64encode(svg).decode()
+ # Marker-less base64 (see issue #80 note above).
+ image = "data:image/svg+xml," + base64.b64encode(svg).decode()
except Exception as exc: # noqa: BLE001 - keep the CDN URL
sys.stderr.write(f"warning: could not fetch {url} ({exc}); using CDN URL\n")
results.append({"brand": brand, "file": f"simpleicons:{slug}",