It hit #1 on GitHub daily trending, yet writing in Korean breaks its design rules: 2,855 stars (as of 2026-08-13 08:47 UTC), 12.6x the #2 repo. It is a diagram skill for Claude Code, and inspecting the source revealed a trap that hits Korean users specifically. 1/ First, what it is: diagram-design, an Agent Skill that generates 27 diagram types including architecture, flow, and sequence diagrams. The standout feature is telling it “match our site colors and fonts” - pass a homepage URL and it extracts color palettes and fonts into style tokens, outputting a single self-contained HTML file that opens straight in a browser. 2/ Korean triggers a subtle issue. The skill locks typography to 3 default fonts: Geist, Instrument Serif, and Geist Mono. Querying Google Fonts character ranges for those 3 families returns 0 glyphs in the Hangul syllable block (U+AC00), whereas Noto Sans KR resolves normally as a control. Korean labels silently fall back to OS system fonts, breaking the “strict 3-font” rule on Korean text. 3/ That means the same diagram looks different on every machine - Apple SD Gothic Neo on macOS versus Malgun Gothic on Windows. Fixing it is straightforward: swap the font tokens in the style guide file to Pretendard or Noto Sans KR and update the Google Fonts link in the HTML template. Automated brand onboarding alone does not touch the base template defaults. 4/ Worth clarifying one number too: the repo tagline says 29 types, whereas README, SKILL.md, and the actual type definition files all count 27. The live gallery shows 35 items because 8 layout variants sit alongside the 27 core types. Quoting 29 from the tagline repeats a stale count; 27 is exact. 5/ Does this replace Mermaid? Quite the opposite: import-mermaid reads existing Mermaid definitions - and draw.io files - and redraws them. Mermaid excels at zero-setup rendering on GitHub and Notion, though manual layout control is tough, a limitation the UK Government Digital Service also noted in its adoption docs. Keep your Mermaid sources and regenerate polished outputs when needed. 6/ Is it exclusive to Claude Code? No - Claude Code, Codex, and Pi share the exact same skill files and produce identical output. 7/ Strict visual constraints stop outputs from looking AI-generated: a single accent color, zero drop shadows, 1px borders, max 10px border radius, and all coordinates and spacing snapped to multiples of 4. The README also notes that any diagram past 9 nodes is really two diagrams. 8/ Validation is thorough: geometric checks catch labels clipped against node backgrounds, SVG files missing accessible names or containing executable attributes get rejected, and CI runs across Linux, Windows, and macOS. However, the validator never fact-checks label text - switching audience presets from practitioner to executive intentionally simplifies wording, so external decks still need human fact-checking. 9/ Practical rollout order: replace style-guide font tokens with Korean fonts first, run brand onboarding for colors second, and batch-convert existing Mermaid diagrams via import. Exporting PNGs requires Playwright and Chromium, whereas opening the HTML directly needs zero extra dependencies. It reached #1 trending on 2026-08-12, and most day-one bug reports were patched the same day.

diagram-design, a fast-rising repository on GitHub Trending, equips AI coding agents such as Claude Code and Codex to generate self-contained HTML diagrams from a single command, complete with URL-based brand color and font extraction.

Why Korean Labels Fall Back and How to Fix Them

None of the 3 bundled default fonts - Geist, Instrument Serif, and Geist Mono - include glyphs for the Hangul syllable block (U+AC00, 0 matches). When diagrams contain Korean labels, browsers fall back to OS system fonts, rendering Apple SD Gothic Neo on macOS and Malgun Gothic on Windows.

Updating the font tokens inside the style guide file to Pretendard or Noto Sans KR and swapping the Google Fonts stylesheet link inside the base HTML template restores consistent rendering across platforms. Running the automated brand onboarding command alone leaves base template font links unchanged, so apply this manual edit first.

27 Diagram Types and Reusing Existing Mermaid Assets

Although the repository description mentions 29 diagram types, the type definitions, README, and SKILL.md define 27 official types; the 35 gallery examples combine those 27 core types with 8 visual variants.

Running import-mermaid converts existing Mermaid definitions into styled HTML diagrams. While Mermaid renders natively inside GitHub and Notion, fine-grained spatial control remains limited. diagram-design enforces strict visual rules - one accent color, no drop shadows, 1px borders, a 4px coordinate grid, and splitting diagrams once node counts pass 9 - to avoid generic AI-generated visuals.

Practical Rollout Order and Built-In Validation

Swap Korean font tokens in the style guide first, then run brand onboarding to pull site colors. Exporting PNG files requires installing Playwright and Chromium, whereas viewing the generated HTML file in a browser works immediately with zero extra packages.

Claude Code, Codex, and Pi all share the same skill definition files. Built-in geometric checks flag overlapping or clipped node labels and reject unsafe SVGs containing executable attributes or missing accessibility labels. Because the validator checks layout geometry rather than factual accuracy, authors should still review simplified label copy before publishing external documents.

Once patched with Korean webfont tokens, this skill turns existing diagram sources into clean technical visuals with minimal manual layout work.

Summary

  • Because the 3 default fonts in diagram-design lack Hangul glyphs, replace the style tokens and Google Fonts template links with Pretendard or Noto Sans KR.
  • The skill supports 27 core diagram types (despite 29 in the repo blurb) and converts existing Mermaid code into styled HTML via import-mermaid.
  • Single-accent palettes, zero shadows, 4px grid alignment, and geometric overlap checks prevent messy AI diagram layouts.