# leeguooooo/image-use architecture

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

- Interactive diagram: https://gitdiagram.com/leeguooooo/image-use
- Repository: https://github.com/leeguooooo/image-use

## Overview

image-use is a small, single-file Python CLI and AI-agent skill for generating images through existing subscriptions. The main workflow is a user prompt and options entering the CLI, which selects a backend and saves the generated image; optional capabilities include animation, reusable/community styles, uploads, diagnostics, and self-upgrade. The README documents these capabilities, but the CLI source was not sampled, so internal calls and unshown implementation details are not mapped.

Main entry points: [`image-use`](https://github.com/leeguooooo/image-use/blob/main/image-use) (image-use CLI), [`SKILL.md`](https://github.com/leeguooooo/image-use/blob/main/SKILL.md) (Agent skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_cli["image-use CLI"]
node_skill["Agent skill<br/>[SKILL.md]"]
node_web["ChatGPT web"]
node_codex["Codex backend"]
node_gemini["Gemini web"]
node_agy["Antigravity CLI"]
node_gallery["Style gallery"]
node_image_tools["Image tools"]
node_release["GitHub releases"]

node_user -->|"runs prompt"| node_cli
node_cli -->|"drives browser"| node_web
node_cli -->|"uses backend"| node_codex
node_cli -->|"drives browser"| node_gemini
node_cli -->|"uses backend"| node_agy
node_user -->|"installs skill"| node_skill
node_skill -.->|"invokes requests"| node_cli
node_cli -->|"searches styles"| node_gallery
node_cli -->|"publishes styles"| node_gallery
node_cli -->|"uploads results"| node_gallery
node_cli -->|"post-processes animation"| node_image_tools
node_cli -->|"checks updates"| node_release
node_cli -->|"installs upgrade"| node_release

click node_cli "https://github.com/leeguooooo/image-use/blob/main/image-use"
click node_skill "https://github.com/leeguooooo/image-use/blob/main/SKILL.md"

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_user toneBlue
class node_cli,node_skill toneTeal
class node_web,node_codex,node_gemini,node_agy,node_gallery,node_image_tools,node_release toneIndigo
```

## Components

### Other components

- **User**
- [image-use CLI](https://github.com/leeguooooo/image-use/blob/main/image-use): `image-use`
- [Agent skill](https://github.com/leeguooooo/image-use/blob/main/SKILL.md): `SKILL.md`
- **ChatGPT web**
- **Codex backend**
- **Gemini web**
- **Antigravity CLI**
- **Style gallery**
- **Image tools**
- **GitHub releases**

## Connections

- User → image-use CLI: runs prompt (evidence: `README.md`)
- image-use CLI → ChatGPT web: drives browser (evidence: `README.md`)
- image-use CLI → Codex backend: uses backend (evidence: `README.md`)
- image-use CLI → Gemini web: drives browser (evidence: `README.md`)
- image-use CLI → Antigravity CLI: uses backend (evidence: `README.md`)
- User → Agent skill: installs skill (evidence: `README.md`)
- Agent skill → image-use CLI: invokes requests
- image-use CLI → Style gallery: searches styles (evidence: `README.md`)
- image-use CLI → Style gallery: publishes styles (evidence: `README.md`)
- image-use CLI → Style gallery: uploads results (evidence: `README.md`)
- image-use CLI → Image tools: post-processes animation (evidence: `README.md`)
- image-use CLI → GitHub releases: checks updates (evidence: `README.md`)
- image-use CLI → GitHub releases: installs upgrade (evidence: `README.md`)
