# yjz211/vivid-illustration-skill architecture

> Architecture diagram of the GitHub repository yjz211/vivid-illustration-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yjz211/vivid-illustration-skill
- Repository: https://github.com/yjz211/vivid-illustration-skill

## Overview

Vivid Illustration Skill is a scientific-figure and architecture-diagram toolkit, with a local browser workbench for selecting, editing, and exporting results. The main interactive flow is user → workbench UI → local server → render worker → plotting engine → exported figure and reproducibility bundle. A separate architecture flow adapts editable SVG assets and supports module editing and an architecture agent. README-described capabilities such as template breadth, palette/language choices, versioning, and PPTX delivery are represented at subsystem level; unsampled implementation links are omitted or marked unverified.

Main entry points: [`workbench/editor_backend/engine.py`](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/engine.py) (Plot renderer), [`workbench/editor_backend/agent/architecture.py`](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/architecture.py) (Architecture agent), [`workbench/editor_backend/agent/runtime.py`](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/runtime.py) (Agent runtime), [`workbench/editor_backend/_utils/plot_utils.py`](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/plot_utils.py) (Plot styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Workbench"]
  node_frontend["Browser editors"]
  node_server["Local API<br/>[server.py]"]
  node_workspace[("Projects and exports<br/>[engine.py]")]
end

subgraph group_data["Data Figures"]
  node_catalog["Template catalog<br/>[catalog_data.py]"]
  node_contracts["Data contracts<br/>[schema.py]"]
  node_engine["Plot renderer<br/>[engine.py]"]
  node_worker["Render worker<br/>[worker.py]"]
  node_recipes["Figure recipes"]
  node_objectedit["Chart object editor<br/>[object_editor.py]"]
end

subgraph group_arch["Architecture Figures"]
  node_svgassets["SVG asset library"]
  node_assetloader["SVG adaptation<br/>[source_asset.py]"]
  node_semantic["Semantic palette"]
  node_diagram["Diagram primitives<br/>[diagram.py]"]
  node_archtemplates["Architecture templates"]
  node_arched["Architecture editor"]
end

subgraph group_agents["Agent Services"]
  node_archagent["Architecture agent<br/>[architecture.py]"]
  node_runtime["Agent runtime<br/>[runtime.py]"]
  node_provider["Model provider<br/>[provider.py]"]
  node_store[("Agent revisions<br/>[store.py]")]
  node_jobs["Agent jobs<br/>[jobs.py]"]
end

subgraph group_shared["Shared Runtime"]
  node_plotutils["Plot styling<br/>[plot_utils.py]"]
  node_language["Language support<br/>[figure_language.py]"]
  node_palette["Palette registry<br/>[palette_maps.py]"]
  node_config["Project config<br/>[vivid_config.py]"]
end

node_user(("Figure author"))
node_agentuser(("Agent user"))
node_deliverables["Figure deliverables"]

node_user -->|"edits and selects"| node_frontend
node_frontend -.->|"sends requests"| node_server
node_server -->|"launches render"| node_worker
node_worker -->|"calls render"| node_engine
node_engine -->|"validates project"| node_contracts
node_engine -->|"applies edits"| node_objectedit
node_engine -->|"sets plot style"| node_plotutils
node_engine -->|"applies fonts"| node_language
node_engine -->|"writes outputs"| node_workspace
node_contracts -->|"loads contracts"| node_catalog
node_catalog -.->|"describes templates"| node_recipes
node_plotutils -->|"reads settings"| node_config
node_plotutils -->|"uses palettes"| node_palette
node_plotutils -->|"uses labels"| node_language
node_worker -->|"packages results"| node_deliverables
node_user -->|"chooses asset"| node_svgassets
node_svgassets -->|"provides SVG source"| node_assetloader
node_assetloader -->|"applies colors"| node_semantic
node_archtemplates -->|"builds diagrams"| node_diagram
node_archtemplates -->|"loads assets"| node_assetloader
node_agentuser -->|"requests diagram"| node_archagent
node_archagent -->|"saves revisions"| node_store
node_archagent -->|"requests model actions"| node_provider
node_archagent -->|"uses agent lifecycle"| node_runtime
node_runtime -->|"dispatches requests"| node_provider
node_runtime -->|"loads state"| node_store
node_runtime -->|"uses job queue"| node_jobs
node_archagent -->|"applies SVG edits"| node_arched
node_arched -->|"exports editable files"| node_deliverables
node_agentuser -->|"uses chart agent"| node_runtime

click node_frontend "https://github.com/yjz211/vivid-illustration-skill/tree/main/workbench/frontend"
click node_server "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/server.py"
click node_catalog "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/catalog_data.py"
click node_contracts "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/schema.py"
click node_engine "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/engine.py"
click node_worker "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/worker.py"
click node_recipes "https://github.com/yjz211/vivid-illustration-skill/tree/main/catalog/sources"
click node_plotutils "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/plot_utils.py"
click node_language "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/figure_language.py"
click node_palette "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/palette_maps.py"
click node_config "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/vivid_config.py"
click node_objectedit "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/object_editor.py"
click node_workspace "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/engine.py"
click node_svgassets "https://github.com/yjz211/vivid-illustration-skill/tree/main/architecture/source-assets"
click node_assetloader "https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/source_asset.py"
click node_semantic "https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/semantic_palette.py"
click node_diagram "https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/diagram.py"
click node_archtemplates "https://github.com/yjz211/vivid-illustration-skill/tree/main/architecture/templates"
click node_arched "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/architecture_editor.py"
click node_archagent "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/architecture.py"
click node_runtime "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/runtime.py"
click node_provider "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/provider.py"
click node_store "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/store.py"
click node_jobs "https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/jobs.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_frontend,node_server,node_workspace,node_agentuser toneBlue
class node_catalog,node_contracts,node_engine,node_worker,node_recipes,node_objectedit toneAmber
class node_svgassets,node_assetloader,node_semantic,node_diagram,node_archtemplates,node_arched toneMint
class node_archagent,node_runtime,node_provider,node_store,node_jobs toneRose
class node_plotutils,node_language,node_palette,node_config,node_user,node_deliverables toneIndigo
```

## Components

### Workbench

- [Browser editors](https://github.com/yjz211/vivid-illustration-skill/tree/main/workbench/frontend): `workbench/frontend`
- [Local API](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/server.py): `workbench/editor_backend/server.py`
- [Projects and exports](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/engine.py): `workbench/editor_backend/engine.py`

### Data Figures

- [Template catalog](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/catalog_data.py): `workbench/editor_backend/catalog_data.py`
- [Data contracts](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/schema.py): `workbench/editor_backend/schema.py`
- [Plot renderer](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/engine.py): `workbench/editor_backend/engine.py`
- [Render worker](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/worker.py): `workbench/editor_backend/worker.py`
- [Figure recipes](https://github.com/yjz211/vivid-illustration-skill/tree/main/catalog/sources): `catalog/sources`
- [Chart object editor](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/object_editor.py): `workbench/editor_backend/object_editor.py`

### Architecture Figures

- [SVG asset library](https://github.com/yjz211/vivid-illustration-skill/tree/main/architecture/source-assets): `architecture/source-assets`
- [SVG adaptation](https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/source_asset.py): `architecture/lib/source_asset.py`
- [Semantic palette](https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/semantic_palette.py): `architecture/lib/semantic_palette.py`
- [Diagram primitives](https://github.com/yjz211/vivid-illustration-skill/blob/main/architecture/lib/diagram.py): `architecture/lib/diagram.py`
- [Architecture templates](https://github.com/yjz211/vivid-illustration-skill/tree/main/architecture/templates): `architecture/templates`
- [Architecture editor](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/architecture_editor.py): `workbench/editor_backend/architecture_editor.py`

### Agent Services

- [Architecture agent](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/architecture.py): `workbench/editor_backend/agent/architecture.py`
- [Agent runtime](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/runtime.py): `workbench/editor_backend/agent/runtime.py`
- [Model provider](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/provider.py): `workbench/editor_backend/agent/provider.py`
- [Agent revisions](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/store.py): `workbench/editor_backend/agent/store.py`
- [Agent jobs](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/agent/jobs.py): `workbench/editor_backend/agent/jobs.py`

### Shared Runtime

- [Plot styling](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/plot_utils.py): `workbench/editor_backend/_utils/plot_utils.py`
- [Language support](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/figure_language.py): `workbench/editor_backend/_utils/figure_language.py`
- [Palette registry](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/palette_maps.py): `workbench/editor_backend/_utils/palette_maps.py`
- [Project config](https://github.com/yjz211/vivid-illustration-skill/blob/main/workbench/editor_backend/_utils/vivid_config.py): `workbench/editor_backend/_utils/vivid_config.py`

### Other components

- **Figure author**
- **Agent user**
- **Figure deliverables**

## Connections

- Figure author → Browser editors: edits and selects (evidence: `README.md`)
- Browser editors → Local API: sends requests
- Local API → Render worker: launches render (evidence: `workbench/editor_backend/server.py`)
- Render worker → Plot renderer: calls render (evidence: `workbench/editor_backend/worker.py`)
- Plot renderer → Data contracts: validates project (evidence: `workbench/editor_backend/engine.py`)
- Plot renderer → Chart object editor: applies edits (evidence: `workbench/editor_backend/engine.py`)
- Plot renderer → Plot styling: sets plot style (evidence: `workbench/editor_backend/engine.py`)
- Plot renderer → Language support: applies fonts (evidence: `workbench/editor_backend/engine.py`)
- Plot renderer → Projects and exports: writes outputs (evidence: `README.md`)
- Data contracts → Template catalog: loads contracts (evidence: `workbench/editor_backend/schema.py`)
- Template catalog → Figure recipes: describes templates
- Plot styling → Project config: reads settings (evidence: `workbench/editor_backend/_utils/plot_utils.py`)
- Plot styling → Palette registry: uses palettes (evidence: `workbench/editor_backend/_utils/plot_utils.py`)
- Plot styling → Language support: uses labels (evidence: `workbench/editor_backend/_utils/plot_utils.py`)
- Render worker → Figure deliverables: packages results (evidence: `README.md`)
- Figure author → SVG asset library: chooses asset (evidence: `README.md`)
- SVG asset library → SVG adaptation: provides SVG source (evidence: `README.md`)
- SVG adaptation → Semantic palette: applies colors (evidence: `architecture/lib/source_asset.py`)
- Architecture templates → Diagram primitives: builds diagrams (evidence: `architecture/templates/network-inset/make_figure.py`)
- Architecture templates → SVG adaptation: loads assets
- Agent user → Architecture agent: requests diagram (evidence: `README.md`)
- Architecture agent → Agent revisions: saves revisions (evidence: `workbench/editor_backend/agent/architecture.py`)
- Architecture agent → Model provider: requests model actions (evidence: `workbench/editor_backend/agent/architecture.py`)
- Architecture agent → Agent runtime: uses agent lifecycle (evidence: `workbench/editor_backend/agent/architecture.py`)
- Agent runtime → Model provider: dispatches requests (evidence: `workbench/editor_backend/agent/runtime.py`)
- Agent runtime → Agent revisions: loads state (evidence: `workbench/editor_backend/agent/runtime.py`)
- Agent runtime → Agent jobs: uses job queue (evidence: `workbench/editor_backend/agent/runtime.py`)
- Architecture agent → Architecture editor: applies SVG edits (evidence: `workbench/editor_backend/agent/architecture.py`)
- Architecture editor → Figure deliverables: exports editable files (evidence: `README.md`)
- Agent user → Agent runtime: uses chart agent (evidence: `README.md`)
