diagram-design
Skill42 starsChanged 9 days agoMITView on GitHub
Create technical and product diagrams — architecture, flowchart, sequence, state machine, ER / data model, timeline, swimlane, quadrant, nested, tree, layer stack, venn, pyramid — as standalone HTML files with inline SVG. Supports customizing colors and fonts to match your brand.
47 other projects use a version of this.
Adopted by
Most recently taken up by
- EricGrill/agents-skills-pluginstheir own version, first seen Nov 8, 2026
- apattichis/agentic-research-toolkittheir own version, first seen Nov 8, 2026
- hamzzaqureshi/gravidextheir own version, first seen Nov 8, 2026
- AthenDrakomin-hub/agent-skillstheir own version, first seen Nov 1, 2026
- VGBRO/claude-skillstheir own version, first seen Nov 1, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use pretty-mermaid, transitions-dev and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
drafaelSkillpretty-mermaid
Render beautiful Mermaid diagrams as SVG or ASCII art using the beautiful-mermaid library. Supports 15+ themes, 5 diagram types (flowchart, sequence, state, class, ER), and ultra-fast rendering.
Also in 3 projects that use this
AnasX7Skilltransitions-dev
Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, accordions, toasts, like buttons, learn-more hovers, checkbox checks, spinning counters, toggles, AI thinking states, reasoning streams, streaming text, matrix dot loaders, or banner stacking. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure", "toast", "snackbar", "like button", "heart animation", "learn more arrow", "checkbox", "check animation", "spinning counter", "odometer", "slot machine digits", "toggle", "switch", "thinking states", "AI status line", "agent reasoning", "reasoning stream", "streaming text", "stream words in", "matrix loader", "dot loader", "banner stack", "stacked toasts". Also "motion tokens", "scan for ad-hoc transitions", "replace hardcoded durations with motion tokens", "tokenize my animations", and the commands transitions reveal, transitions review, transitions apply, transitions refine.
Also in 3 projects that use this
PydanticSkilli-have-adhd
Shape every response for an ADHD reader who reviews the work but does not do the coding — the agent does. Use whenever responding to ANY message — coding, debugging, planning, casual. Lead with the result or the decision. Surface anything needing the user's input as a structured question, never buried in prose they'll skim past. No preamble, no recap, no closers. State errors matter-of-factly. Make finished work visible. Trigger even on casual messages and even when brevity wasn't requested.
Also in 4 projects that use this
HK-hubSkilloverdrive
Pushes interfaces past conventional limits with technically ambitious implementations — shaders, spring physics, scroll-driven reveals, 60fps animations. Use when the user wants to wow, impress, go all-out, or make something that feels extraordinary.
Also in 3 projects that use this
AnasX7Skilldesign-taste-frontend
Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.
Also in 9 projects that use this
HK-hubSkilldelight
Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.
Also in 3 projects that use this
- +2 more from AnasX7
Other versions47 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 47
- cathrynlavery/diagram-design★ 66ksame name
- kdlbs/kandev★ 1.1ksame name
- chenjackle45/html-visualizer★ 95same name
- microsoft/devsquad-copilot★ 50same name
- baekenough/oh-my-customcode★ 42same name
- spmtitsolution/OpenBA-Kit★ 38same name
- Fioooooooo/FylloCode★ 29same name
- EricGrill/agents-skills-plugins★ 21same name
- ivanrvpereira/.agents★ 19same name
- delorenj/skills★ 17same name
37 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- app-creatorSkill
- bento-slidesSkill
- brochure-designerSkill
- business-card-readerSkill
- claude-designerSkill
- codebase-to-courseSkill
- daily-briefingSkill
- fable-modeSkill
- ffmpeg-video-processingSkill
- frontend-designSkill
- gamma-presenterSkill
- gitSkill
- hotel-finderSkill
- humanizerSkill
- in-depth-researchSkill
- jclaw-apiSkill
- jira-operationsSkill
- powerpoint-pptxSkill
- research-paper-writer-proSkill
- restaurant-recommenderSkill
- skill-creatorSkill
- ui-ux-pro-maxSkill
- visual-explainerSkill
- whatsapp-wacli-linuxSkill
- whatsapp-wacli-macSkill
- writing-standardsSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Create visual diagrams as self-contained HTML files with inline SVG and CSS, following an opinionated editorial design system.
- Distinctive: line 46
When the user asks to create a diagram, I will:
- Distinctive: line 74
When the user needs an image file (a PNG for LinkedIn, a slide or a document), screenshot the saved HTML page in a browser:
- Very specific: line 81
If it reports a missing browser, run npx -y playwright@1.63.0 install chromium once and retry.
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagram Design
Create visual diagrams as self-contained HTML files with inline SVG and CSS, following an opinionated editorial design system. Generate beautiful, clean diagrams with a consistent style that can be customized to match your brand.
Thirteen Diagram Types
This skill supports creating the following diagram types:
- Architecture — Components + connections in a system
- Flowchart — Decision logic with branches
- Sequence — Time-ordered messages between actors
- State Machine — States + transitions + guards
- ER / Data Model — Entities + fields + relationships
- Timeline — Events positioned in time
- Swimlane — Cross-functional process with handoffs
- Quadrant — Two-axis positioning / prioritization
- Nested — Hierarchy through containment / scope
- Tree — Parent → children relationships
- Layer Stack — Stacked abstraction levels
- Venn — Overlap between sets
- Pyramid / Funnel — Ranked hierarchy or conversion drop-off
Design Philosophy
The design system follows these principles:
- Confident restraint — Earn every element
- One color accent — Reserved for 1-2 focal elements
- Grid system — Every coordinate divisible by 4
- Clean typography — Sans for node names, mono for technical details
- No shadows — Clean, minimal aesthetic with 1px hairline borders
- Target density: 4/10 — Remove what doesn't add value
Using The Skill
When the user asks to create a diagram, I will:
- Determine the appropriate diagram type based on the user's needs
- Check if this is the first diagram in the project to offer style customization
- Generate the HTML/SVG using semantic tokens for colors and typography
- Apply the style guide to maintain consistent visuals
- Run the output through quality checks to ensure it meets the design standards
- Save the output as a standalone HTML file
Style Customization Options
The skill supports customizing the visual style to match the user's brand:
- URL-based onboarding — Extract colors and fonts from the user's website
- Manual token setting — User provides specific color/font values
- Default style — Neutral stone + rust color scheme
Output Location
Outputs are written to diagram-design/ at the root of the agent's workspace.
Each diagram is delivered as a standalone HTML file containing:
- Embedded CSS (no external dependencies except Google Fonts)
- Inline SVG (no external images)
- No JavaScript required
Exporting As An Image
When the user needs an image file (a PNG for LinkedIn, a slide or a document), screenshot the saved HTML page in a browser:
npx -y playwright@1.63.0 screenshot --device "Desktop Chrome HiDPI" --full-page "file://<absolute path>.html" "<absolute path>.png"- The PNG matches what the user sees when they open the HTML, at 2× resolution. When the page holds only a fixed-size
<svg width="W" height="H">with no margin around it, add--viewport-size "W,H"so the image has no empty border. - If it reports a missing browser, run
npx -y playwright@1.63.0 install chromiumonce and retry.
Never rasterize the <svg> on its own, whether through XMLSerializer and a canvas or an SVG-to-PNG converter. Its colors are var(--…) tokens defined on the page, and its background and fonts come from the page too, so a detached SVG renders every fill black, drops every stroke, loses the background and falls back to a default font.
Before reporting an export done, open each PNG as an image and compare it with the HTML: light panels, visible lines and arrows, the accent color, the brand fonts. File size, dimensions and average brightness prove nothing; black boxes on a light background pass all three.
Examples
To create a diagram:
- "Make me an architecture diagram of my app: frontend, backend, database, Redis cache."
- "I need a flowchart showing the user authentication process."
- "Create a sequence diagram for an API request flow."
- "Draw a quadrant showing my Q2 projects by impact vs. effort."
To customize the style:
- "Onboard diagram-design to match https://mywebsite.com"
- "Update the diagram style guide with my brand colors"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

