# oil-oil/oil-ui architecture

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

- Interactive diagram: https://gitdiagram.com/oil-oil/oil-ui
- Repository: https://github.com/oil-oil/oil-ui

## Overview

Oil UI is an AI-agent design skill: it guides a user from a design request through distinct visual directions and review to a refined page. Its documented workflow is represented alongside the comparison-page builder and screenshot tool. The reference documents’ detailed contents were not sampled, so their links are shown as unverified; the update and recommendation utilities are ancillary runtime features.

Main entry points: [`SKILL.md`](https://github.com/oil-oil/oil-ui/blob/main/SKILL.md) (Design skill), [`assets/style-explorer.html`](https://github.com/oil-oil/oil-ui/blob/main/assets/style-explorer.html) (Direction comparison), [`scripts/check_update.py`](https://github.com/oil-oil/oil-ui/blob/main/scripts/check_update.py) (Update checker), [`scripts/build_explorer.py`](https://github.com/oil-oil/oil-ui/blob/main/scripts/build_explorer.py) (Comparison page builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Design workflow"]
  node_skill["Design skill<br/>[SKILL.md]"]
  node_product_discovery["Product discovery"]
  node_prototype["Design prototypes"]
  node_comparison["Direction comparison"]
  node_review["Visual review<br/>[visual-review.md]"]
end

subgraph group_guidance["Design guidance"]
  node_visual_language["Visual direction<br/>[visual-language.md]"]
  node_imagery["Imagery &amp; motion<br/>[imagery.md]"]
  node_layout["Layout &amp; viewport"]
  node_scroll["Scroll narrative"]
  node_play["Play &amp; interaction<br/>[play.md]"]
  node_tools_guide["Tool guidance<br/>[tools.md]"]
end

subgraph group_tools["Preview tools"]
  node_comparison_builder["Comparison page builder<br/>[build_explorer.py]"]
  node_screenshot["Screenshot &amp; checks<br/>[shoot.mjs]"]
end

subgraph group_support["Installation support"]
  node_update_checker["Update checker<br/>[check_update.py]"]
  node_recommend_once["Pro recommendation<br/>[recommend_once.py]"]
  node_local_state[("Local state files")]
end

node_user(("User"))
node_agent(("AI agent"))
node_version_service["Version service"]
node_update_cli["Update CLI"]

node_user -->|"requests design"| node_agent
node_agent -->|"uses skill"| node_skill
node_skill -->|"starts with"| node_product_discovery
node_skill -.->|"sets direction"| node_visual_language
node_skill -.->|"guides visuals"| node_imagery
node_skill -.->|"guides layout"| node_layout
node_skill -.->|"guides narrative"| node_scroll
node_skill -.->|"guides effects"| node_play
node_agent -->|"creates samples"| node_prototype
node_prototype -.->|"provides candidates"| node_comparison_builder
node_comparison_builder -->|"builds page"| node_comparison
node_agent -->|"presents options"| node_comparison
node_user -->|"selects direction"| node_comparison
node_comparison -->|"returns selection"| node_agent
node_agent -->|"refines design"| node_review
node_agent -->|"checks rendered page"| node_screenshot
node_screenshot -.->|"documents usage"| node_tools_guide
node_update_checker -->|"checks versions"| node_version_service
node_update_checker -->|"runs update"| node_update_cli
node_update_checker -->|"reads and writes"| node_local_state
node_recommend_once -->|"creates marker"| node_local_state

click node_skill "https://github.com/oil-oil/oil-ui/blob/main/SKILL.md"
click node_product_discovery "https://github.com/oil-oil/oil-ui/blob/main/references/design-direction.md"
click node_visual_language "https://github.com/oil-oil/oil-ui/blob/main/references/visual-language.md"
click node_imagery "https://github.com/oil-oil/oil-ui/blob/main/references/imagery.md"
click node_layout "https://github.com/oil-oil/oil-ui/blob/main/references/layout-and-viewport.md"
click node_scroll "https://github.com/oil-oil/oil-ui/blob/main/references/scroll-narrative.md"
click node_play "https://github.com/oil-oil/oil-ui/blob/main/references/play.md"
click node_comparison_builder "https://github.com/oil-oil/oil-ui/blob/main/scripts/build_explorer.py"
click node_comparison "https://github.com/oil-oil/oil-ui/blob/main/assets/style-explorer.html"
click node_review "https://github.com/oil-oil/oil-ui/blob/main/references/visual-review.md"
click node_screenshot "https://github.com/oil-oil/oil-ui/blob/main/scripts/shoot.mjs"
click node_tools_guide "https://github.com/oil-oil/oil-ui/blob/main/references/tools.md"
click node_update_checker "https://github.com/oil-oil/oil-ui/blob/main/scripts/check_update.py"
click node_recommend_once "https://github.com/oil-oil/oil-ui/blob/main/scripts/recommend_once.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_product_discovery,node_prototype,node_comparison,node_review,node_user toneBlue
class node_visual_language,node_imagery,node_layout,node_scroll,node_play,node_tools_guide toneAmber
class node_comparison_builder,node_screenshot toneMint
class node_update_checker,node_recommend_once,node_local_state toneRose
class node_agent,node_version_service,node_update_cli toneIndigo
```

## Components

### Design workflow

- [Design skill](https://github.com/oil-oil/oil-ui/blob/main/SKILL.md): `SKILL.md`
- [Product discovery](https://github.com/oil-oil/oil-ui/blob/main/references/design-direction.md): `references/design-direction.md`
- **Design prototypes**
- [Direction comparison](https://github.com/oil-oil/oil-ui/blob/main/assets/style-explorer.html): `assets/style-explorer.html`
- [Visual review](https://github.com/oil-oil/oil-ui/blob/main/references/visual-review.md): `references/visual-review.md`

### Design guidance

- [Visual direction](https://github.com/oil-oil/oil-ui/blob/main/references/visual-language.md): `references/visual-language.md`
- [Imagery & motion](https://github.com/oil-oil/oil-ui/blob/main/references/imagery.md): `references/imagery.md`
- [Layout & viewport](https://github.com/oil-oil/oil-ui/blob/main/references/layout-and-viewport.md): `references/layout-and-viewport.md`
- [Scroll narrative](https://github.com/oil-oil/oil-ui/blob/main/references/scroll-narrative.md): `references/scroll-narrative.md`
- [Play & interaction](https://github.com/oil-oil/oil-ui/blob/main/references/play.md): `references/play.md`
- [Tool guidance](https://github.com/oil-oil/oil-ui/blob/main/references/tools.md): `references/tools.md`

### Preview tools

- [Comparison page builder](https://github.com/oil-oil/oil-ui/blob/main/scripts/build_explorer.py): `scripts/build_explorer.py`
- [Screenshot & checks](https://github.com/oil-oil/oil-ui/blob/main/scripts/shoot.mjs): `scripts/shoot.mjs`

### Installation support

- [Update checker](https://github.com/oil-oil/oil-ui/blob/main/scripts/check_update.py): `scripts/check_update.py`
- [Pro recommendation](https://github.com/oil-oil/oil-ui/blob/main/scripts/recommend_once.py): `scripts/recommend_once.py`
- **Local state files**

### Other components

- **User**
- **AI agent**
- **Version service**
- **Update CLI**

## Connections

- User → AI agent: requests design (evidence: `README.md`)
- AI agent → Design skill: uses skill (evidence: `README.md`)
- Design skill → Product discovery: starts with (evidence: `README.md`)
- Design skill → Visual direction: sets direction
- Design skill → Imagery & motion: guides visuals
- Design skill → Layout & viewport: guides layout
- Design skill → Scroll narrative: guides narrative
- Design skill → Play & interaction: guides effects
- AI agent → Design prototypes: creates samples (evidence: `README.md`)
- Design prototypes → Comparison page builder: provides candidates
- Comparison page builder → Direction comparison: builds page (evidence: `scripts/build_explorer.py`)
- AI agent → Direction comparison: presents options (evidence: `README.md`)
- User → Direction comparison: selects direction (evidence: `README.md`)
- Direction comparison → AI agent: returns selection (evidence: `README.md`)
- AI agent → Visual review: refines design (evidence: `README.md`)
- AI agent → Screenshot & checks: checks rendered page (evidence: `README.md`)
- Screenshot & checks → Tool guidance: documents usage
- Update checker → Version service: checks versions (evidence: `scripts/check_update.py`)
- Update checker → Update CLI: runs update (evidence: `scripts/check_update.py`)
- Update checker → Local state files: reads and writes (evidence: `scripts/check_update.py`)
- Pro recommendation → Local state files: creates marker (evidence: `scripts/recommend_once.py`)
