DiagramKit (dsh-tool-diagram): Layout Ruler and Self-Checker for Structured Diagrams

DiagramKit is the dsh-tool-diagram plugin developed by erzhe-lume for DeepSeek Harness: it draws flowcharts, DFDs, UML diagrams, and other schematic figures via declarative specs, parses TTF fonts itself to measure true text widths, checks 10 categories of layout problems including overflow, overlap, and line-through-box, and provides actionable fix suggestions in its report. It offers three tools—diagram_create, diagram_patch, and diagram_measure—with coordinates measured in centimeters and output in PNG/SVG. This article covers positioning, bundle installation steps, a minimal example, and CLI usage, and clarifies its boundaries: it is not an auto-layout engine, and suits discrete node-and-edge diagrams rather than data visualization.

Read More