# johndavekern-del/diagram-design architecture

> Architecture diagram of the GitHub repository johndavekern-del/diagram-design, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/johndavekern-del/diagram-design
- Repository: https://github.com/johndavekern-del/diagram-design

## Overview

Diagram Design is an agent skill for creating editorial, self-contained HTML/SVG diagrams and redrawing existing draw.io, Mermaid, or Excalidraw sources. The documented workflow is a user request, optional source extraction, then a diagram in a selected format, size, and detail level. The tree exposes the three format extractors and a standalone output checker, but not the skill’s authoring instructions or templates; extraction links are therefore documented capabilities, not confirmed runtime calls.

Main entry points: [`skills/diagram-design`](https://github.com/johndavekern-del/diagram-design/tree/main/skills/diagram-design) (Diagram design skill), [`skills/diagram-design/scripts/drawio_extract.py`](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/drawio_extract.py) (draw.io extractor), [`skills/diagram-design/scripts/mermaid_extract.py`](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/mermaid_extract.py) (Mermaid extractor), [`skills/diagram-design/scripts/excalidraw_extract.py`](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/excalidraw_extract.py) (Excalidraw extractor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Diagram authoring"]
  node_skill["Diagram design skill"]
  node_diagram["HTML and SVG diagram"]
end

subgraph group_imports["Source imports"]
  node_drawio["draw.io extractor<br/>[drawio_extract.py]"]
  node_mermaid["Mermaid extractor<br/>[mermaid_extract.py]"]
  node_excalidraw["Excalidraw extractor"]
end

subgraph group_quality["Output checking"]
  node_checker["HTML self-check<br/>[self_check.py]"]
end

node_user(("Diagram requester"))

node_user -->|"requests diagram"| node_skill
node_skill -->|"creates diagram"| node_diagram
node_skill -.->|"imports source"| node_drawio
node_skill -.->|"imports source"| node_mermaid
node_skill -.->|"imports source"| node_excalidraw

click node_skill "https://github.com/johndavekern-del/diagram-design/tree/main/skills/diagram-design"
click node_drawio "https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/drawio_extract.py"
click node_mermaid "https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/mermaid_extract.py"
click node_excalidraw "https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/excalidraw_extract.py"
click node_checker "https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/self_check.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill,node_diagram toneBlue
class node_drawio,node_mermaid,node_excalidraw toneAmber
class node_checker,node_user toneMint
```

## Components

### Diagram authoring

- [Diagram design skill](https://github.com/johndavekern-del/diagram-design/tree/main/skills/diagram-design): `skills/diagram-design`
- **HTML and SVG diagram**

### Source imports

- [draw.io extractor](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/drawio_extract.py): `skills/diagram-design/scripts/drawio_extract.py`
- [Mermaid extractor](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/mermaid_extract.py): `skills/diagram-design/scripts/mermaid_extract.py`
- [Excalidraw extractor](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/excalidraw_extract.py): `skills/diagram-design/scripts/excalidraw_extract.py`

### Output checking

- [HTML self-check](https://github.com/johndavekern-del/diagram-design/blob/main/skills/diagram-design/scripts/self_check.py): `skills/diagram-design/scripts/self_check.py`

### Other components

- **Diagram requester**

## Connections

- Diagram requester → Diagram design skill: requests diagram (evidence: `README.md`)
- Diagram design skill → HTML and SVG diagram: creates diagram (evidence: `README.md`)
- Diagram design skill → draw.io extractor: imports source (evidence: `README.md`)
- Diagram design skill → Mermaid extractor: imports source (evidence: `README.md`)
- Diagram design skill → Excalidraw extractor: imports source (evidence: `README.md`)
