diagram-design
A diagram design agent skill for coding agents, centered on a prose-style guide and rules. It supports 44 diagram types and outputs HTML files with inline SVG, emphasizing design taste and accessibility.
Timeline (last 90 days)
The diagram-design project on GitHub is authored by Cathryn Lavery, is made into an agent skill, and uses the MIT license.
diagram-design reached No. 4 on GitHub Trending on Sunday, gaining 1083 stars in a single day for a cumulative 50933 stars.
diagram-design can draw 44 chart types, outputs an HTML file with a single inline SVG, supports redrawing Mermaid, draw.io, and Excalidraw source files, and includes a guided step to extract colors and fonts from the user's website.
diagram-design's SKILL.md is 30.5 KB in size, and CI limits it to within 40000 bytes because it is fully loaded into the context window on every call.
diagram-design's references/ directory contains 62 Markdown files, totaling about 710 KB; assets/ contains 204 example diagrams and templates; scripts/ has five Python files that use only the standard library.
diagram-design's style rules include: split once there are more than nine nodes; use the accent color on only one or two elements; no shadows; all connectors are right-angle polylines, no diagonals; structural geometry aligns to a 4px grid; do not copy Mermaid's automatic layout.
Scanning all 204 examples in diagram-design with a short Node script revealed: the only external host is fonts.googleapis.com; ten files contain script, all animation variants; the median file size is 12.6 KB, and the largest is a 208 KB animated exploding keyboard diagram.
diagram-design's built-in export_svg.py can convert the 208 KB example into an 8703-byte standalone SVG with ids prefixed, making it easy to coexist with other diagrams on one page.
diagram-design's import script only parses text and never renders or fetches; the importer only reads flowcharts, sequence diagrams, state diagrams and ER diagrams, and rejects Gantt charts, timelines, journey maps, Sankey diagrams and quadrant charts.
diagram-design's adversarial examples hide 'IGNORE ALL PREVIOUS INSTRUCTIONS' inside node labels, and the extractor keeps it as escaped text and discards four style directives and a click handler.
4 more timeline events
All Facts (15)
diagram-design's known boundaries: a first run under the default style guide pauses to ask for brand information; fonts come from Google by default, and the --offline flag will reject files that load them; PNG export requires Playwright and Chromium.
50%Unverifieddiagram-design's adversarial examples hide 'IGNORE ALL PREVIOUS INSTRUCTIONS' inside node labels, and the extractor keeps it as escaped text and discards four style directives and a click handler.
50%UnverifiedAfter a tester deliberately broke three header rules of a flowchart (emphasis color on all seven nodes, drop shadows on six, and one diagonal arrow), diagram-design's own self_check.py let it pass outright; the geometry validator caught the diagonal line, but it sits outside the skill folder installed by npx skills add; the palette lint said nothing; no script checks shadows.
50%Unverifieddiagram-design's self_check.py is a safety and accessibility gate, not a taste gate; after the tester added a remote image and deleted the <title>, it reported five issues.
50%UnverifiedThe diagram-design project on GitHub is authored by Cathryn Lavery, is made into an agent skill, and uses the MIT license.
50%Unverifieddiagram-design can draw 44 chart types, outputs an HTML file with a single inline SVG, supports redrawing Mermaid, draw.io, and Excalidraw source files, and includes a guided step to extract colors and fonts from the user's website.
50%Unverifieddiagram-design's SKILL.md is 30.5 KB in size, and CI limits it to within 40000 bytes because it is fully loaded into the context window on every call.
50%Unverifieddiagram-design's references/ directory contains 62 Markdown files, totaling about 710 KB; assets/ contains 204 example diagrams and templates; scripts/ has five Python files that use only the standard library.
50%Unverifieddiagram-design's style rules include: split once there are more than nine nodes; use the accent color on only one or two elements; no shadows; all connectors are right-angle polylines, no diagonals; structural geometry aligns to a 4px grid; do not copy Mermaid's automatic layout.
50%UnverifiedScanning all 204 examples in diagram-design with a short Node script revealed: the only external host is fonts.googleapis.com; ten files contain script, all animation variants; the median file size is 12.6 KB, and the largest is a 208 KB animated exploding keyboard diagram.
50%Unverifieddiagram-design's built-in export_svg.py can convert the 208 KB example into an 8703-byte standalone SVG with ids prefixed, making it easy to coexist with other diagrams on one page.
50%Unverifieddiagram-design's import script only parses text and never renders or fetches; the importer only reads flowcharts, sequence diagrams, state diagrams and ER diagrams, and rejects Gantt charts, timelines, journey maps, Sankey diagrams and quadrant charts.
50%Unverifiedstyleguide.md is the configuration center of the entire design system, centrally defining visual variables such as color schemes, typography standards, spacing parameters, and component styles.
50%UnverifiedThe intermediate-layer design of the behavioral pattern mapping draws on the abstraction layer concept of intermediate representation (IR) in compilers, avoiding a combinatorial explosion of visual types and ensuring predictable output.
50%Unverifieddiagram-design is a structured skill written for Claude Code, used to produce editorial-style diagrams.
50%