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.
Python agent-skillsarchitecturearchitecture-diagramasyncapibpmnc4-modelclaude-codediagramdiagrams-as-codedrawioflowchartgithub-actionsgraphqlimage-to-diagramkubernetesmcp-serverprotobufsysmlterraformuml
fix(aiicons): mark --embed data URIs as ;base64 (#36)
Nicky Clarkecda9ec7e1942
diff --git a/skills/drawio-skill/scripts/aiicons.py b/skills/drawio-skill/scripts/aiicons.pyindex f3dcdb8..67f3781 100644--- a/skills/drawio-skill/scripts/aiicons.py+++ b/skills/drawio-skill/scripts/aiicons.py@@ -164,7 +164,7 @@ 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.b64encode(svg).decode()+ image = "data:image/svg+xml;base64," + base64.b64encode(svg).decode()else:image = urlresults.append({"brand": base, "file": file, "w": args.size, "h": args.size,@@ -179,7 +179,7 @@ def main():if args.embed:try:svg = urllib.request.urlopen(url, timeout=15).read()- image = "data:image/svg+xml," + base64.b64encode(svg).decode()+ image = "data:image/svg+xml;base64," + base64.b64encode(svg).decode()except Exception as exc: # noqa: BLE001 - keep the CDN URLsys.stderr.write(f"warning: could not fetch {url} ({exc}); using CDN URL\n")results.append({"brand": brand, "file": f"simpleicons:{slug}",