Shang-ZZ/dsh-diagram-design

Diagram tooling and a 45-type gallery for DSH: export diagram HTML to SVG/PNG, import draw.io/Mermaid/Excalidraw, validate output and diagnose the environment.

The workflow is meant to be taught to an agent rather than done by hand: diagrams are authored as single-file HTML with inline SVG from an editorial design system (one accent colour, 1 px rules, no shadows, a 4 px grid), then exported and self-checked. Importing goes the other way, turning an existing draw.io, Mermaid or Excalidraw file into a digest the agent can redraw in that system. The doctor tool exists because the exports depend on local pieces — bundled scripts, python3 and optionally Playwright — that can be missing.

Tools & Capabilities ★ 0
View on GitHub ↗

Install

dsh plugin add github:Shang-ZZ/dsh-diagram-design

The install line from this repository's README. PNG export is the only feature needing an extra dependency, installed on demand and never automatically: pip install playwright && playwright install chromium. The bundle's Python scripts and example diagrams come from cathrynlavery/diagram-design (MIT), credited in THIRD_PARTY_NOTICES.md.

Compatibility

Four agent tools: diagram_export (HTML to standalone SVG and/or PNG), diagram_extract (parse a draw.io, Mermaid or Excalidraw file into a normalized digest for redrawing), diagram_self_check (validate accessible-SVG, single-file safety and viewBox) and diagram_doctor (report bundled scripts, python3 and Playwright availability). A 'Diagram Gallery' sidebar panel lists the 45 diagram types with live example previews.

Details

Alternatives

shimingming520/dsh-audiogen · Q1hangL/dsh-ask-guard · CaiZongyuan/dsh-ag-ui

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins