# Diagram Design

Source: https://trendhub.net/skills/cathrynlavery-diagram-design
Repository: https://github.com/cathrynlavery/diagram-design
Author: Cathryn Lavery (https://github.com/cathrynlavery)
License: MIT
GitHub stars: 67,670

Diagram Design is Cathryn Lavery's skill for drawing diagrams as one self-contained HTML file with inline SVG in a restrained editorial style. The agent picks from fifty diagram types, applies your brand tokens, follows strict connector and density rules and can redraw draw.io, Mermaid, Excalidraw or PlantUML files. It suits people publishing diagrams in posts, docs and slides.

## What problems it solves

- **Agent diagrams look like generic boxes**: A fixed editorial system with hairlines, no shadows, a 4px grid and one or two accent elements replaces default renderer styling.
- **Diagrams ignore your brand**: Onboarding reads your site's colours and fonts, checks contrast and writes them as tokens that every later diagram uses.
- **Too much crammed into one figure**: A complexity budget of nine nodes and twelve arrows, plus a removal checklist, pushes the agent to cut or split.
- **Old Mermaid or draw.io files look dated**: Import scripts extract the content and the agent redraws it at a chosen size, detail level and audience, with a ledger of what changed.

## Install

### Cursor, Cline, Gemini CLI, Windsurf, Amp and other Agent Skills hosts

Installs the skill only; update it with npx skills update diagram-design.

```
npx skills add cathrynlavery/diagram-design
```

### Claude Code (plugin)

Adds the slash commands; turn on auto-update for the marketplace in /plugin.

```
/plugin marketplace add cathrynlavery/diagram-design
/plugin install diagram-design@diagram-design
```

### Codex

Codex refreshes the marketplace at startup.

```
codex plugin marketplace add cathrynlavery/diagram-design
codex plugin add diagram-design@diagram-design
```

### GitHub Copilot

Includes the doctor, export, import and profile capabilities.

```
copilot plugin marketplace add cathrynlavery/diagram-design
copilot plugin install diagram-design@diagram-design
```

### Factory Droid

Droid tracks the plugin by commit rather than version number.

```
droid plugin marketplace add https://github.com/cathrynlavery/diagram-design
droid plugin install diagram-design@diagram-design --scope user
```

### Qoder

Installs the native plugin from a local clone.

```
git clone https://github.com/cathrynlavery/diagram-design.git
qoder plugins validate ./diagram-design
qoder plugins install ./diagram-design
qoder plugins list
```

### Pi

Run /reload in an open session, and pi update --extensions to pull updates.

```
pi install https://github.com/cathrynlavery/diagram-design
```

Use the plugin marketplace on Claude Code, Codex or Copilot to get updates and the import, export, profile and doctor commands; npx installs the skill alone. PNG export needs Playwright with Chromium, and the first diagram in a new project asks whether to onboard your brand.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/diagram-design`: Draws one of fifty diagram types as a branded HTML and SVG file, and redraws draw.io, Mermaid, Excalidraw or PlantUML sources. (https://trendhub.net/skills/cathrynlavery-diagram-design/diagram-design.markdown)

## Questions

### Is it free, and is the output editable?

The skill is MIT-licensed. Output is a single HTML file with inline SVG, so you change it by asking the agent again or editing the SVG; there is no diffable source format like Mermaid.

### Does it replace Mermaid in my docs?

The README says Mermaid remains the better fit for docs in Git that change often; this skill targets diagrams you intend to publish.

### Does it need network access?

Diagrams load three Google Fonts by default; choosing system fonts makes the file fully offline. Brand onboarding fetches the website you name.

### Can I keep separate brands for different clients?

Yes. Save each onboarded brand as a named profile and add a .diagram-design marker naming the profile to each project.

## Before you install

The skill writes HTML diagram files and can edit its own style-guide.md and saved profiles under ~/.diagram-design. It runs bundled Python scripts for imports, geometry checks and SVG or PNG export, fetches your website during brand onboarding, and diagrams load Google Fonts unless you choose system fonts.
