# liouhai/plot-is-all-you-need architecture

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

- Interactive diagram: https://gitdiagram.com/liouhai/plot-is-all-you-need
- Repository: https://github.com/liouhai/plot-is-all-you-need

## Overview

Plot Is All You Need is an agent-guided figure-design skill: a user chooses visual references, the agent adapts a selected design to the user’s data, and the user reviews the finished figure beside its reference. The documented stages cover gallery appreciation, candidate-sheet selection, rendition, and appraisal. The repository also provides gallery ingestion, card/index maintenance, and contact-sheet utilities. Stage behavior is documented in the README; the graph does not assume unsampled agent internals or runtime wiring.

Main entry points: [`gallery`](https://github.com/liouhai/plot-is-all-you-need/tree/main/gallery) (Image Gallery), [`stages/2-resonance.md`](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/2-resonance.md) (Resonance), [`scripts/cards.py`](https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/cards.py) (Appreciation Cards), [`stages/4-appraisal.md`](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/4-appraisal.md) (Appraisal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Design Workflow"]
  node_appreciation["Appreciation<br/>[1-appreciation.md]"]
  node_resonance["Resonance<br/>[2-resonance.md]"]
  node_rendition["Rendition<br/>[3-rendition.md]"]
  node_appraisal["Appraisal<br/>[4-appraisal.md]"]
  node_taste["Taste History"]
end

subgraph group_gallery["Reference Gallery"]
  node_gallery[("Image Gallery")]
  node_cards["Appreciation Cards<br/>[cards.py]"]
end

subgraph group_tools["Gallery Tools"]
  node_ingest["Figure Ingestion<br/>[ingest.py]"]
  node_index["Gallery Index<br/>[build_index.py]"]
  node_contact["Contact Sheets<br/>[contact_sheet.py]"]
end

node_user(("User"))
node_agent(("Agent"))

node_user -->|"requests figures"| node_agent
node_agent -->|"reviews references"| node_appreciation
node_appreciation -->|"writes descriptions"| node_cards
node_agent -->|"presents candidates"| node_resonance
node_resonance -->|"selects examples"| node_gallery
node_resonance -->|"records choices"| node_taste
node_user -->|"chooses design"| node_resonance
node_agent -->|"adapts design"| node_rendition
node_rendition -->|"produces figure"| node_appraisal
node_appraisal -->|"shows comparison"| node_user
node_appraisal -->|"may add result"| node_gallery
node_ingest -->|"creates or updates"| node_cards
node_ingest -->|"adds figures"| node_gallery
node_index -->|"reads metadata"| node_cards
node_index -->|"indexes figures"| node_gallery
node_contact -->|"reads card data"| node_cards
node_contact -->|"composes examples"| node_gallery

click node_appreciation "https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/1-appreciation.md"
click node_resonance "https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/2-resonance.md"
click node_rendition "https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/3-rendition.md"
click node_appraisal "https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/4-appraisal.md"
click node_gallery "https://github.com/liouhai/plot-is-all-you-need/tree/main/gallery"
click node_cards "https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/cards.py"
click node_ingest "https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/ingest.py"
click node_index "https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/build_index.py"
click node_contact "https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/contact_sheet.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_appreciation,node_resonance,node_rendition,node_appraisal,node_taste,node_user toneBlue
class node_gallery,node_cards toneAmber
class node_ingest,node_index,node_contact toneMint
class node_agent toneIndigo
```

## Components

### Design Workflow

- [Appreciation](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/1-appreciation.md): `stages/1-appreciation.md`
- [Resonance](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/2-resonance.md): `stages/2-resonance.md`
- [Rendition](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/3-rendition.md): `stages/3-rendition.md`
- [Appraisal](https://github.com/liouhai/plot-is-all-you-need/blob/main/stages/4-appraisal.md): `stages/4-appraisal.md`
- **Taste History**

### Reference Gallery

- [Image Gallery](https://github.com/liouhai/plot-is-all-you-need/tree/main/gallery): `gallery`
- [Appreciation Cards](https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/cards.py): `scripts/cards.py`

### Gallery Tools

- [Figure Ingestion](https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/ingest.py): `scripts/ingest.py`
- [Gallery Index](https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/build_index.py): `scripts/build_index.py`
- [Contact Sheets](https://github.com/liouhai/plot-is-all-you-need/blob/main/scripts/contact_sheet.py): `scripts/contact_sheet.py`

### Other components

- **User**
- **Agent**

## Connections

- User → Agent: requests figures (evidence: `README.md`)
- Agent → Appreciation: reviews references (evidence: `README.md`)
- Appreciation → Appreciation Cards: writes descriptions (evidence: `README.md`)
- Agent → Resonance: presents candidates (evidence: `README.md`)
- Resonance → Image Gallery: selects examples (evidence: `README.md`)
- Resonance → Taste History: records choices (evidence: `README.md`)
- User → Resonance: chooses design (evidence: `README.md`)
- Agent → Rendition: adapts design (evidence: `README.md`)
- Rendition → Appraisal: produces figure (evidence: `README.md`)
- Appraisal → User: shows comparison (evidence: `README.md`)
- Appraisal → Image Gallery: may add result (evidence: `README.md`)
- Figure Ingestion → Appreciation Cards: creates or updates (evidence: `scripts/ingest.py`)
- Figure Ingestion → Image Gallery: adds figures (evidence: `scripts/ingest.py`)
- Gallery Index → Appreciation Cards: reads metadata (evidence: `scripts/build_index.py`)
- Gallery Index → Image Gallery: indexes figures (evidence: `scripts/build_index.py`)
- Contact Sheets → Appreciation Cards: reads card data (evidence: `scripts/contact_sheet.py`)
- Contact Sheets → Image Gallery: composes examples (evidence: `README.md`)
