# /diagram-design: Draw publishable, on-brand diagrams instead of generic boxes

Source: https://trendhub.net/skills/cathrynlavery-diagram-design/diagram-design
Skill folder: https://github.com/cathrynlavery/diagram-design/tree/main/skills/diagram-design
Pack: Diagram Design (https://trendhub.net/skills/cathrynlavery-diagram-design)
Works with: Cursor, Cline, Gemini CLI, Windsurf, Amp and other Agent Skills hosts, Claude Code (plugin), Codex, GitHub Copilot, Factory Droid, Qoder, Pi

The diagram-design skill guides an agent from request to a finished HTML file with inline SVG. It checks your brand tokens on first use, chooses a behaviour pattern and visual type, states its plan, then draws within a node and arrow budget using strict connector rules. A pre-output checklist and bundled scripts verify geometry and accessibility.

## When to use it

- You need an architecture, sequence or flowchart for a blog post or slide deck.
- You want an existing Mermaid block or draw.io file redrawn to look consistent.
- You publish diagrams for several clients and each needs its own colours and fonts.

## How it works

1. **Check the style guide**: On the first diagram in a project the agent sees whether tokens are still default and offers onboarding from a URL, a design system, pasted tokens or a saved profile.
2. **Choose pattern and type**: When behaviour carries the meaning it picks one of nine semantic patterns first, then the nearest of fifty visual types, and loads that type's reference.
3. **State the plan**: It tells you the type, size preset and what the budget will force out, so you can redirect before it draws.
4. **Draw to the rules**: It copies a template, keeps nodes on a 4px grid, uses orthogonal connectors with masked labels and limits the accent to one or two elements.
5. **Run the taste gate**: It works through removal, signal, technical and typography checks and runs the self-check and geometry scripts before handing over.

## What it steers the agent away from

- Shadows, heavily rounded boxes and cyan or purple glow on dark backgrounds
- Diagonal connectors, overlapping lines and labels sitting on strokes
- Drawing a diagram where a table or paragraph would do

## What it can touch

Writes HTML, SVG or PNG files, may edit its style guide and profile files, runs Python scripts for import, verification and export, and fetches a website you name for brand onboarding.

## Questions

### What happens to my source layout on import?

It is discarded. The agent keeps components, relationships, grouping and direction, redraws them and reports what it merged, collapsed or dropped.

### Can diagrams be animated?

Optionally. Reveal, step and loop modes exist, but the default is static and every animated file must work without JavaScript and under reduced motion.
