dsh-ai-diagrams
Manifest validEditorial diagrams in chat: the agent draws a self-contained HTML/SVG diagram (50 types, on the cathrynlavery/diagram-design skill), it renders inline with SVG/PNG export, redraws draw.io/Mermaid/Exca
AI diagrams
Editorial diagrams for DeepSeek Harness. Ask in plain words and the agent draws one self-contained HTML file with inline SVG; it renders directly in the chat, and you can export HTML, SVG or PNG. 50 diagram types, redraws existing draw.io / Mermaid / Excalidraw / PlantUML diagrams, and can match a website's brand.
Built on the MIT-licensed cathrynlavery/diagram-design skill (© Cathryn Lavery), vendored unmodified apart from the DeepSeek Harness tools section.
Links — npm · Marketplace PR · Workshop PR

Install
dsh plugin add dsh-ai-diagrams
Or install from the marketplace / a local checkout.
Use
Say what you want a diagram of, then publish it:
给这个应用的架构画一张图:前端、后端、数据库、Redis 缓存。
Draw a quadrant of Q2 projects by impact vs effort.
The agent loads the diagram-design skill, writes the HTML document, and calls diagram_save. The diagram appears inline; the card offers HTML, SVG, PNG, Open and a larger preview. Ask for changes and the agent redraws it.
Redraw an existing diagram:
Redraw platform.drawio for my deck.
The agent calls diagram_import, gets a structure digest, picks the matching type, and saves the editorial version.
Browse the bundled types in the right sidebar (+ → AI diagrams gallery): search, preview an example, and copy a ready-to-send prompt. The same list is available to the agent as diagram_types.
Match your brand once:
Learn the brand from https://example.com and save it as "acme", then draw this quarter's roadmap with the acme profile.
diagram_profile extracts the palette and typefaces into $DSH_HOME/editorial-diagrams/profiles/<name>.md; later diagrams reuse the same tokens.
Need a PNG file instead of a browser download? Ask for it:
Export that diagram as a PNG next to the HTML.
diagram_png rasterizes the saved page at 2× with the machine's Chrome/Chromium (no Python, no Playwright).
Tools
| Tool | What it does |
|---|---|
diagram_save | Validate + save a diagram HTML into diagrams/; renders the inline card |
diagram_svg | Export the diagram-only .svg next to the saved HTML |
diagram_validate | Check the accessible-SVG / single-file contract; returns exact errors |
diagram_import | Extract a bounded structure digest from draw.io / Mermaid / Excalidraw / PlantUML |
Requirements and limits
- No Python and no Playwright: validation, SVG export, source parsing and PNG rasterization are TypeScript/browser code.
- Saved diagrams are static: no
<script>, no remote assets except the approved Google Fonts stylesheet. Motion variants are not previewed in DSH. - PNG is rasterized in the browser at 2× on the card;
diagram_pngneeds a locally installed Chrome/Chromium (setCHROME_PATHwhen it is not in a standard location). - The gallery and brand profiles only read public pages:
diagram_profile fetchrejects loopback/private targets and caps a page at 1 MB. - The skill's deep painted-geometry checker (
verify_geometry.py) is not ported; the DSH validator checks the accessible/SVG contract and single-file safety.
License
Plugin code: Apache-2.0. Vendored skills/diagram-design/ is MIT (© Cathryn Lavery); see THIRD_PARTY_LICENSES.md.
Comments
Loading…
Similar plugins
Renders mermaid code blocks in the chat as diagrams in place (flowchart, sequence, class, state, ER, gantt, pie), with zoom, source toggle, copy PNG and SVG download.
★ 0
dsh plugin --profile web add @dsh-local/dsh-diagramby fourzkw
DSH 右侧栏的可编辑画布 + AI 语义绘图工具(diagram_apply / diagram_read),直接读写原生 .drawio 文件
★ 714
↓ 2k/wk
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add dsh-drawaiby hanzhangzzz
Turn DeepSeek Harness articles into editable Excalidraw canvases — live diagrams, not disposable Mermaid output.
★ 21
↓ 394/wk
MIT
TypeScript
Sep 28, 2026
dsh plugin --profile web add dsh-diagramby lokih1028
Adds a Canvas drawer and eight model tools to create, patch, version, and export HTML, Markdown, Mermaid, SVG, and React artifacts.
★ 0
MIT
JavaScript
Sep 6, 2026
dsh plugin --profile web add dsh-plugin-canvas-proRenders a dsh-view fence in an assistant reply as cards — text, tables, charts, Mermaid diagrams and sandboxed HTML widgets — with an editable model prompt, a render_view tool and a bundled skill.
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-mosaicby SmileBuild
Publishes a project plan the agent writes: ordered steps in a panel docked to the right of the frame, and the framework graph as an auto-laid-out diagram in its own centre tab, downloadable as SVG or
★ 1
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-planchart