Hysen Labs
Open-source project
cathrynlavery/diagram-design avatar
cathrynlavery

diagram-design

29 editorial diagram types for Claude Code. Self-contained HTML + SVG. No shadows, no Mermaid-slop.

18,743 stars1,133 forksHTMLMIT
01
DEEP OPEN-SOURCE ANALYSIS

Diagram Design, editorial diagrams for coding agents

A skill that produces editorial quality diagrams in self contained HTML and SVG for coding agents, matching a site's brand by reading its homepage.

02
DEEP OPEN-SOURCE ANALYSIS

The pitch

The GitHub description promises 29 editorial diagram types for Claude Code with self contained HTML and SVG, no shadows, and no Mermaid slop. The README version 2.3 counts 27 visual types in a single agent skill that works with Claude Code, Codex, and Pi.

03
DEEP OPEN-SOURCE ANALYSIS

Why the author built it

The author writes that every time they needed a diagram, an architecture sketch, or a flowchart, asking Claude produced a generic rounded box thing that looked nothing like the rest of the site. The choice was fighting Figma for 30 minutes or skipping the diagram, so they built a skill instead.

04
DEEP OPEN-SOURCE ANALYSIS

Brand matching

The skill reads a website and matches the brand in 60 seconds, mapping the site's colors and fonts onto tokens for paper, ink, accent, and typography. Contrast is checked automatically against WCAG AA, and the README notes the highest quality move is usually deletion, with the accent color reserved for one or two things.

05
DEEP OPEN-SOURCE ANALYSIS

Semantic patterns and motion

Semantic patterns describe behavior separately from layout, so a queue, policy trace, or trust boundary can reuse the nearest existing type without growing the type count. Motion is optional and does not create another visual type; static HTML remains the default and ordinary output stays script free.

06
DEEP OPEN-SOURCE ANALYSIS

Import and export

The skill redraws draw.io and Mermaid sources, reading .drawio files and fenced Mermaid blocks as text only. Diagrams can be exported to SVG or PNG, with the PNG path rasterizing via Playwright at 2x by default. The README promises the same content in a new design system at whatever format, size, and detail the destination needs.

08
DEEP OPEN-SOURCE ANALYSIS

Official sources

09
Community notes

Community notes