One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

cathrynlavery/diagram-design

23,713+14,397 this weekHTML

A skill that makes AI coding tools draw magazine-quality diagrams instead of generic rounded boxes

Ask Claude Code, Codex, or Pi for a diagram and you usually get a bland rounded-box picture that doesn't match your site. This repository ships a skill with 38 editorial-style diagram types rendered as self-contained SVG-in-HTML files, no build step needed. Point it at your website and it pulls your colors and fonts in about 60 seconds so every diagram matches your brand.

What it does

  1. Covers 38 diagram types — architecture, flowcharts, sequence diagrams, state machines, org charts and more — each shipped in minimal light, minimal dark, and full-editorial variants.
  2. Enforces a strict visual system: no shadows, 1px hairline borders, only three font families (Instrument Serif and the Geist family), and every coordinate/width/gap aligned to a 4px grid so it doesn't look AI-generated.
  3. Can import existing draw.io or Mermaid diagrams and redraw them in the same system, letting you choose output format, size, and level of detail while reporting what was merged or dropped.
  4. Reads a user's website to auto-extract background, text, accent colors and fonts, checks WCAG AA contrast, and saves the result as a reusable brand style guide.
  5. Has 23,713 GitHub stars and includes automated checker scripts in the repo that catch style violations and accessibility issues before changes are merged.

Why it matters

It solves the common frustration of AI-generated diagrams looking generic and off-brand, which normally pushes people to either fight with design tools or skip diagrams entirely. It lets anyone writing docs, blog posts, or slides get on-brand, publication-ready diagrams directly from their AI coding assistant.

Terms in this repo

  • SVG · a vector image format that stays sharp at any zoom level
  • Mermaid · an open-source tool for drawing diagrams from text
  • draw.io · a web-based diagram editing application
  • WCAG AA · a web accessibility standard for sufficient text-background contrast
  • Agent Skill · a set of instructions an AI coding tool loads to perform a specific task

Repository description (English)

38 editorial diagram types for Claude Code, Codex, and Pi. Self-contained HTML + SVG. No shadows. No Mermaid slop.

Open on GitHub

Trending repos

All repos →

Latest from METAL LAB