# josephgibson/optilux architecture

> Architecture diagram of the GitHub repository josephgibson/optilux, 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/josephgibson/optilux
- Repository: https://github.com/josephgibson/optilux

## Overview

Optilux is presented as a Minecraft shader pack and benchmark suite, while the sampled implementation is primarily a Python CLI for repository workflow: inspect milestone status, start milestones, verify documentation, and build or release a pack. Shader assets and benchmark configuration are visible in the tree, but their runtime execution is not shown. The CLI workflow and helper calls below are supported by excerpts or the SOURCE INDEX; dashed links mark the unsampled product areas and integrations whose wiring cannot be verified.

Main entry points: [`optilux/cli.py`](https://github.com/josephgibson/optilux/blob/main/optilux/cli.py) (Optilux CLI), [`optilux/verbs/pack.py`](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/pack.py) (Build and release), [`optilux/verbs/status.py`](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/status.py) (Milestone status), [`optilux/repo.py`](https://github.com/josephgibson/optilux/blob/main/optilux/repo.py) (Git facts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Shader product"]
  node_shader["Shader assets"]
  node_benchmark["Benchmark configuration"]
end

subgraph group_workflow["Milestone workflow"]
  node_cli["Optilux CLI<br/>[cli.py]"]
  node_status["Milestone status<br/>[status.py]"]
  node_milestone["Start milestone<br/>[milestone.py]"]
  node_prompts["Stored prompts<br/>[prompts.py]"]
  node_gitfacts["Git facts<br/>[repo.py]"]
end

subgraph group_checks["Checks and guards"]
  node_verify["Documentation verify<br/>[verify.py]"]
  node_docrules["Documentation rules<br/>[docs_check.py]"]
  node_hooks["Git and editor hooks<br/>[hooks.py]"]
  node_test["Test command<br/>[test.py]"]
end

subgraph group_release["Pack release"]
  node_pack["Build and release<br/>[pack.py]"]
end

node_user(("Engineer"))
node_minecraft(("Minecraft with Iris/Sodium"))
node_git["Git and origin"]
node_github["GitHub releases"]

node_user -->|"runs commands"| node_cli
node_cli -->|"dispatches"| node_status
node_cli -->|"dispatches"| node_milestone
node_cli -->|"dispatches"| node_verify
node_cli -->|"dispatches"| node_pack
node_cli -->|"dispatches"| node_test
node_status -->|"reads Git facts"| node_gitfacts
node_status -->|"selects prompt"| node_prompts
node_status -->|"reads doc rules"| node_docrules
node_milestone -->|"checks repository"| node_gitfacts
node_milestone -->|"finds next phase"| node_prompts
node_verify -->|"runs checks"| node_docrules
node_prompts -->|"uses fence rules"| node_docrules
node_hooks -->|"checks documentation"| node_docrules
node_pack -->|"reads Git state"| node_gitfacts
node_pack -->|"uses hook checks"| node_hooks
node_gitfacts -->|"runs Git commands"| node_git
node_pack -->|"creates release"| node_github
node_minecraft -.->|"loads shaders"| node_shader
node_benchmark -.->|"benchmarks runtime"| node_minecraft
node_pack -.->|"packages assets"| node_shader

click node_cli "https://github.com/josephgibson/optilux/blob/main/optilux/cli.py"
click node_status "https://github.com/josephgibson/optilux/blob/main/optilux/verbs/status.py"
click node_milestone "https://github.com/josephgibson/optilux/blob/main/optilux/verbs/milestone.py"
click node_prompts "https://github.com/josephgibson/optilux/blob/main/optilux/prompts.py"
click node_gitfacts "https://github.com/josephgibson/optilux/blob/main/optilux/repo.py"
click node_verify "https://github.com/josephgibson/optilux/blob/main/optilux/verbs/verify.py"
click node_docrules "https://github.com/josephgibson/optilux/blob/main/optilux/docs_check.py"
click node_hooks "https://github.com/josephgibson/optilux/blob/main/optilux/hooks.py"
click node_test "https://github.com/josephgibson/optilux/blob/main/optilux/verbs/test.py"
click node_pack "https://github.com/josephgibson/optilux/blob/main/optilux/verbs/pack.py"
click node_shader "https://github.com/josephgibson/optilux/tree/main/shader/shaders"
click node_benchmark "https://github.com/josephgibson/optilux/tree/main/config"

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_shader,node_benchmark toneBlue
class node_cli,node_status,node_milestone,node_prompts,node_gitfacts toneAmber
class node_verify,node_docrules,node_hooks,node_test toneMint
class node_pack toneRose
class node_user,node_minecraft,node_git,node_github toneIndigo
```

## Components

### Shader product

- [Shader assets](https://github.com/josephgibson/optilux/tree/main/shader/shaders): `shader/shaders`
- [Benchmark configuration](https://github.com/josephgibson/optilux/tree/main/config): `config`

### Milestone workflow

- [Optilux CLI](https://github.com/josephgibson/optilux/blob/main/optilux/cli.py): `optilux/cli.py`
- [Milestone status](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/status.py): `optilux/verbs/status.py`
- [Start milestone](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/milestone.py): `optilux/verbs/milestone.py`
- [Stored prompts](https://github.com/josephgibson/optilux/blob/main/optilux/prompts.py): `optilux/prompts.py`
- [Git facts](https://github.com/josephgibson/optilux/blob/main/optilux/repo.py): `optilux/repo.py`

### Checks and guards

- [Documentation verify](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/verify.py): `optilux/verbs/verify.py`
- [Documentation rules](https://github.com/josephgibson/optilux/blob/main/optilux/docs_check.py): `optilux/docs_check.py`
- [Git and editor hooks](https://github.com/josephgibson/optilux/blob/main/optilux/hooks.py): `optilux/hooks.py`
- [Test command](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/test.py): `optilux/verbs/test.py`

### Pack release

- [Build and release](https://github.com/josephgibson/optilux/blob/main/optilux/verbs/pack.py): `optilux/verbs/pack.py`

### Other components

- **Engineer**
- **Minecraft with Iris/Sodium**
- **Git and origin**
- **GitHub releases**

## Connections

- Engineer → Optilux CLI: runs commands (evidence: `optilux/cli.py`)
- Optilux CLI → Milestone status: dispatches (evidence: `optilux/cli.py`)
- Optilux CLI → Start milestone: dispatches (evidence: `optilux/cli.py`)
- Optilux CLI → Documentation verify: dispatches (evidence: `optilux/cli.py`)
- Optilux CLI → Build and release: dispatches (evidence: `optilux/cli.py`)
- Optilux CLI → Test command: dispatches (evidence: `optilux/cli.py`)
- Milestone status → Git facts: reads Git facts (evidence: `optilux/verbs/status.py`)
- Milestone status → Stored prompts: selects prompt (evidence: `optilux/verbs/status.py`)
- Milestone status → Documentation rules: reads doc rules (evidence: `optilux/verbs/status.py`)
- Start milestone → Git facts: checks repository (evidence: `optilux/verbs/milestone.py`)
- Start milestone → Stored prompts: finds next phase (evidence: `optilux/verbs/milestone.py`)
- Documentation verify → Documentation rules: runs checks (evidence: `optilux/verbs/verify.py`)
- Stored prompts → Documentation rules: uses fence rules (evidence: `optilux/prompts.py`)
- Git and editor hooks → Documentation rules: checks documentation (evidence: `optilux/hooks.py`)
- Build and release → Git facts: reads Git state (evidence: `optilux/verbs/pack.py`)
- Build and release → Git and editor hooks: uses hook checks (evidence: `optilux/verbs/pack.py`)
- Git facts → Git and origin: runs Git commands (evidence: `optilux/repo.py`)
- Build and release → GitHub releases: creates release (evidence: `optilux/verbs/pack.py`)
- Minecraft with Iris/Sodium → Shader assets: loads shaders
- Benchmark configuration → Minecraft with Iris/Sodium: benchmarks runtime
- Build and release → Shader assets: packages assets
