diagram-design
What it does
This tool creates visual diagrams to explain complex ideas. It can generate various diagram types like flowcharts, org charts, and data models to make information easier to grasp.
When to use it
- βWhen you need to explain a multi-step process.
- βTo show how different parts of a system connect.
- βWhen presenting data visually instead of in text.
Skill link
https://github.com/cathrynlavery/diagram-design/blob/main/skills/diagram-design/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a flowchart showing a user login process.β
5 new skills a week. 1 minute to read.
diagram-design: full guide
Most AI-made diagrams come out with default colors, random fonts and too many boxes. This skill fixes that in two ways. It builds the diagram from a fixed editorial design system, and it checks first that the style guide matches your brand. It also leans toward deleting nodes and connections that add nothing. The result is a self-contained HTML file with inline SVG.
It covers 52 diagram types, from flowcharts and org charts to Gantt charts, heatmaps and database schemas. It suits people who need clear visuals for documentation, proposals or technical reviews and are not designers. It fits teams that want every diagram to look the same across a project. It is not for a quick text sketch, a plain list, or anything a short paragraph explains just as well.
Use cases
Document how a system fits together
You are writing a README for a service that talks to a database, a queue and two external APIs. Ask for an architecture diagram. The skill puts the components in one snapshot and highlights only one or two focal parts, so the reader sees the main path first.
Show a before and after change
Your team is moving from one hosting setup to another and needs to explain the change to managers. An architecture delta diagram shows the old and new layouts side by side, with a ledger of what changed. This works better than a table when the connections themselves moved.
Plan a project timeline
You have a launch with six phases and want to show who works on what and when. Ask for a Gantt chart. The skill lays tasks and phases along a timeline in the project's colors, so you can paste it into a status report or slide deck.
Step by step
- 1Install the skill: place the diagram-design folder in ~/.claude/skills/ (or your project's .claude/skills/ folder) so the agent can find it.
- 2On your first diagram in a project, the skill checks whether the style guide is still the default. It asks if you want to customize it with a website URL, a local design folder, pasted colors, or the default.
- 3Describe what you want to show and who will read it. Give the real names of components, steps or people. If you know the type, say so, for example sequence, swimlane or treemap.
- 4Read the short plan the skill states before drawing: the chosen diagram type, the size, and anything it will leave out to stay readable. Correct it now if it is wrong.
- 5Open the generated HTML file in a browser, check the labels and focal points, and ask for changes in plain words such as moving a node or removing a link.
Example
What to ask
βMake a sequence diagram of a customer paying an order: the browser, our API, the payment provider and the database. Include a failed-payment path. Use our brand colors from the website.β
What you get
The skill first asks to read your site's colors and fonts. It then confirms a sequence diagram with four actors and one failure branch. It returns an HTML file with time-ordered messages, the failed-payment step marked as the single focal point, and brand styling applied.
Tips
- βName the one or two things the reader must notice. The skill uses its accent color only for those focal nodes, so a clear answer makes the diagram sharper.
- βKeep one diagram to about nine nodes. If you list more, the skill's complexity budget forces cuts, or it suggests an overview plus a detail diagram. Plan that split yourself.
- βDo not ask for a diagram when a table or a paragraph would do. Attribute-only before and after comparisons belong in a table, and the skill says so itself.
- βCustomize the style guide once at the start. If you skip it, your diagrams use the default gray and orange look and will not match your brand.
Alternatives
- design-md
Pick this when you need a written DESIGN.md of your brand's colors and fonts that AI tools can read, rather than finished diagrams.
- visual-style
Pick this to extract or apply a visual-style.md file with colors, fonts and layout rules across many kinds of output, not only diagrams.
- brand-guidelines
Pick this when you want Anthropic's own brand colors and style applied to materials, instead of designing a custom diagram style.
Questions and answers
Can I edit the diagram after the agent makes it?
Yes. Ask the agent for changes in plain words and it regenerates the file. The skill also lists import paths for .drawio, Mermaid, .excalidraw and PlantUML, but the page does not say how editing back into those tools works.
Can I keep one look for several clients or projects?
Yes. After onboarding, the skill offers to save your style as a named profile. A project marker file can then select it, so each project uses its own colors and fonts automatically.
What file do I get at the end?
A self-contained HTML file with inline SVG. The skill description also mentions PNG output, but the material given does not explain how to request it, so check the skill's own references.
How it works
You describe the type of diagram and the information it should contain. The tool uses this to generate an HTML file with the visualized diagram.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Diagram Design
Create diagrams as self-contained HTML files with inline SVG and an editorial design system.
Forty-five visual types. Semantic patterns describe behavior; type references describe layout.
0. First-time setup β style guide gate
Before generating your first diagram in a new project, verify the style guide has been customized.
Do not silently ship default-skinned diagrams into a branded project.
First resolve any project .diagram-design marker per references/profiles.md; a successfully resolved marker selects its profile and bypasses this gate. That reference owns failures, the protected default, and save behavior.
Open references/style-guide.md and check the default tokens. If they are still the shipped defaults (paper #f5f5f5, ink #2d3142, accent #bf4520), pause and ask the user:
"This is your first diagram in this project and the style guide is still default. Customize now? Options: (a) website URL, (b) installed skill, (c) local folder/design-system, (d) paste tokens, (e) keep default, (f) load saved profile."
Then branch per the matching section of references/onboarding.md; for (f) follow references/profiles.md.
Once the style guide has been customized (or the user explicitly chose default), skip this gate on later runs. A leading profile header names the copied-in active profile. Without a header, any semantic-role value or typography family differing from shipped defaults means custom-unsaved: skip the gate and offer to save it as a profile. All-default tokens with no marker/header trigger the gate. After onboarding, offer to save as a named client profile per references/profiles.md.
1. Philosophy
The highest-quality move is usually deletion.
Applied to schematics:
- Every node represents a distinct idea. Two nodes that always travel together are one node.
- Every connection carries information. If the relationship is obvious from layout, remove the line.
- Coral is editorial, not a flag. 1β2 focal nodes per diagram. Using it on 5 nodes erases the signal.
- The schematic isn't done when everything is added. It's done when nothing can be removed.
Target density: 4/10. Enough to be technically complete. Not so dense it needs a guide. Above 9 nodes, it's probably two diagrams.
2. When to Use
Use for any of the 45 visual types (Β§3) when a reader will learn more from a visual than from prose, a table, or a bulleted list.
Don't use for:
- Quick unicode diagrams β use wiretext.
- Lists of things β table or bullets.
- Attribute-only before/after β table; topology changes β Architecture delta.
- One-shape "diagrams" β just write the sentence.
Before drawing, ask: Would the reader learn more from this than from a well-written paragraph? If no, don't draw.
3. Selection: semantic pattern, then visual type
When behavior, state, enforcement, or risk carries the meaning, first load references/semantic-patterns.md and choose one primary pattern. Then choose the nearest visual type for layout. If no pattern matches, choose the type directly.
| Behavioral trigger | Semantic pattern β nearest type |
|---|---|
| Fan-in, queue depth, finite capacity, bottleneck | Fan-in queue / bottleneck β Data flow |
| Repeated Question / Input / Governance / Output slots across stages | Stage framework with semantic slots β Process |
| Conversation or loose input becomes a structured durable artifact | Unstructured input β structured artifact β Data flow |
| Two rule traces need pass/fail/skipped/not-reached and first divergence | Paired policy-evaluation traces β Flowchart |
| Trust boundaries plus permitted/forbidden ingress or deploy paths | Secure paved road β Architecture |
| Controls grouped by where they are enforced | Governance / control catalog β Layer stack |
| Defenses compensate for prior gaps and residual risk propagates | Compensating security layers β Layer stack |
| Hierarchical, ID-addressable decomposition needing per-block I/O, constraints, and a code link | Traceable block decomposition β Tree |
| One subject progresses through phases, waits, retries, cancellation, and terminal outcomes | Lifecycle phase map β State Machine |
β¦
FAQ
What is an 'editorial design system'?
It's a set of rules and visual styles that ensure diagrams look consistent and professional, tailored to a project's visual identity.
What does 'target density: 4/10' mean?
It means the diagram should be clear and informative enough, but not overly complex or cluttered. The goal is for it to be easily understandable without needing a detailed guide.
When should I not use this tool?
Don't use it for simple text diagrams (use 'wiretext'), lists (prefer tables or bullets), or to show only attribute changes. If a well-written paragraph would suffice, don't create a diagram.
Details
Original description by the author
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeli
Popularity
- GitHub stars
- 56k
- Ranking position
- #3277
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
Similar skills
brand-discovery
280kHelps define a brand's identity through structured interviews. It creates a complete guide with the brand's purpose, audience, and personality.
brand-voice
280kCreates a writing profile based on actual brand texts. It ensures content and communications maintain a consistent and authentic style.
design-md
260kTeaches your agent to write, check, and export a DESIGN.md file that lists a brand's colors, fonts, and style in a form AI tools can read.