doctor
CommandRun one-shot environment diagnostics for Diagram Design readiness
Export a diagram-design HTML file to .svg and .png next to the source
> /plugin marketplace add cathrynlavery/diagram-design> /plugin install diagram-design@diagram-design
description: Export a diagram-design HTML file to .svg and .png next to the source argument-hint: <html-file> [--svg-only|--png-only] [--scale=N] [--output=<path>] [--registry] allowed-tools: - Read - Write - Edit - Bash - Glob
Export the diagram HTML at `$1` to `.svg` and/or `.png`, following the procedure documented in [`skills/diagram-design/references/export.md`](../skills/diagram-design/references/export.md). Treat that reference as the source of truth — don't reimplement the logic here. Run the packaged `skills/diagram-design/scripts/export_svg.py` and `skills/diagram-design/scripts/export_png.py` helpers for the requested formats. If `--registry` is present, also follow [`skills/diagram-design/references/export-registry.md`](../skills/diagram-design/references/export-registry.md) to emit the metadata sidecar — a separate procedure from the SVG/PNG rasterization above.
Full argument string: `$ARGUMENTS`
1. **No source path provided** → ask the user which `.html` file to export. Don't guess. 2. **Source is `assets/index.html`** (the gallery, multiple SVGs in one file) → refuse and ask which specific diagram file. Per the reference's edge-case section. 3. **Source has no `<svg>` block** → refuse and tell the user; don't write anything. 4. **PNG requested but Playwright not installed** → surface the install instruction from the reference verbatim and stop. Do **not** auto-install. 5. **PNG requested with a non-numeric or non-finite `--scale`, or a value outside the inclusive 1–4 range** → reject. Fractional values within that range are valid. 6. **Both `--svg-only` and `--png-only` supplied** → reject them as mutually exclusive. 7. **`--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. 8. **`--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.
Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
Run one-shot environment diagnostics for Diagram Design readiness
Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level
Redraw an Excalidraw board as an editorial diagram at a chosen format, size, and detail level
Redraw Mermaid as an editorial diagram at a chosen format, size, and detail level
Redraw PlantUML sequence and class diagrams as an editorial diagram at a chosen format, size, and detail level
Save, load, inspect, update, reset, or delete diagram-design client profiles
Generate a concrete design system (tokens, style, type, UX) before building UI
Open a first-contribution PR (or bug issue) on nexu-io/open-design — works for non-coders too.
Strip the signatures that make a UI look AI-generated — flat hierarchy, no focal point, monotone layout, timid palettes, generic…
Head-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line.