/architecture-design:export-diagram <html-file> [--svg-only|--png-only] [--scale=N] [--output=<path>] [--registry]from architecture-design
Export a diagram-design HTML file to .svg and .png next to the source
Ships in architecture-design. Installing the plugin adds it to Claude Code.
Export the diagram HTML at $1 to .svg and/or .png, following the procedure documented in skills/create-diagram/references/export.md. Treat that reference as the source of truth — don't reimplement the logic here. For SVG output, prefer running the packaged helper at skills/create-diagram/scripts/export_svg.py when available (it implements the CSS carry-forward and defs ID namespacing steps). If --registry is present, also follow skills/create-diagram/references/export-registry.md to emit the metadata sidecar — a separate procedure from the SVG/PNG rasterization above.
Full argument string: $ARGUMENTS
--svg-only/--png-only/--scale/--output but no --registry: produce both .svg and .png next to the source (e.g. diagram.html → diagram.svg + diagram.png).device_scale_factor=2.--registry given by itself, with neither --svg-only nor --png-only also present, produces only the registry JSON. The SVG/PNG defaults above do not also apply, and Playwright is never required for a registry-only call. To get an image alongside the registry, add --svg-only and/or --png-only explicitly.--svg-only — emit only the SVG. Skip Playwright entirely.--png-only — emit only the PNG.--scale=N — override the PNG device scale factor with a finite number from 1 to 4, including fractional values such as 1.25. Default 2.--output=<path> — override the output base path; the format extension is appended. Applies to both formats when both are produced.--registry — emit <basename>.registry.json, a metadata sidecar of every block's data-block-* attributes. Follows skills/create-diagram/references/export-registry.md, a procedure independent of the SVG/PNG rasterization above — it never needs Playwright. Used alone (see Defaults), it is the only output produced. Combine with --svg-only and/or --png-only to also produce an image in the same call..html file to export. Don't guess.assets/index.html (the gallery, multiple SVGs in one file) → refuse and ask which specific diagram file. Per the reference's edge-case section.<svg> block → refuse and tell the user; don't write anything.--scale, or a value outside the inclusive 1–4 range → reject. Fractional values within that range are valid.--registry requested but source has no data-block-id attributes → refuse and tell the user; don't emit an empty or partial registry file. Per the export-registry reference's edge-case section.--registry is the only flag given (no --svg-only/--png-only) → emit only the registry JSON. Do not also produce SVG/PNG, and do not check for Playwright — a registry-only call must succeed on a host that doesn't have it installed at all.After producing the outputs, report the file paths and sizes back to the user.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
6 commands in this plugin
/diagram-doctorRequired behaviorRun one-shot environment diagnostics for Diagram Design (Fabric) readiness/diagram-profileRoutingSave, load, inspect, update, reset, or delete create-diagram client profiles/import-drawioDefaultsRedraw a draw.io file as an editorial diagram at a chosen format, size, and detail level/import-excalidrawDefaultsRedraw an Excalidraw board as an editorial diagram at a chosen format, size, and detail level/import-mermaidDefaultsRedraw Mermaid as an editorial diagram at a chosen format, size, and detail levelnpx claudepluginhub ozzycodes2/claudellum --plugin architecture-designOther plugins' commands for the same job