DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

xuedipiaofei /

xuedipiaofei/dsh-ai-diagrams

Verified

Editorial diagrams for DeepSeek Harness: bundled diagram-design skill, inline cards, SVG/PNG export. No Python, no Playwright.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@2a789d01

AI diagrams

npm license skill

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

An architecture diagram rendered by the bundled skill

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_png needs a locally installed Chrome/Chromium (set CHROME_PATH when it is not in a standard location).
  • The gallery and brand profiles only read public pages: diagram_profile fetch rejects 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.

—/ 5

No ratings yet

Verified DSH bundle

Commit 2a789d01b65d

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout