# yodaos-project/aiui architecture

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

- Interactive diagram: https://gitdiagram.com/yodaos-project/aiui
- Repository: https://github.com/yodaos-project/aiui

## Overview

AIUI is a toolkit and guidance repository for building interactive agents on Rokid display-equipped glasses, rather than the agent runtime itself. Developers explore documentation, examples, design guidance, and skills; the project creator can scaffold a starter agent. A separate cloud package supports account/token, message-cache, and glasses-notification workflows, while the coding benchmark evaluates agent changes. The optimize skill includes an archive-audit utility. Most directories are represented from README descriptions; sampled source supports the scaffold and cloud relationships, but not internal links among documentation, samples, or benchmark stages.

Main entry points: [`packages/cloud-integration/index.js`](https://github.com/yodaos-project/aiui/blob/main/packages/cloud-integration/index.js) (Cloud client), [`packages/create-aiui-agent/index.js`](https://github.com/yodaos-project/aiui/blob/main/packages/create-aiui-agent/index.js) (Project scaffolder), [`skills/aiui-optimize/scripts/audit_aix.py`](https://github.com/yodaos-project/aiui/blob/main/skills/aiui-optimize/scripts/audit_aix.py) (AIX archive auditor), [`packages/create-aiui-agent/template`](https://github.com/yodaos-project/aiui/tree/main/packages/create-aiui-agent/template) (Starter template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_build["Agent creation"]
  node_scaffolder["Project scaffolder<br/>[index.js]"]
  node_starter["Starter template"]
  node_lifecycle["Starter lifecycle<br/>[app.js]"]
end

subgraph group_cloud["Cloud services"]
  node_cloudclient["Cloud client<br/>[index.js]"]
  node_aiuiservices{{"AIUI cloud services"}}
  node_rokidnotify{{"Rokid notifications"}}
end

subgraph group_guidance["Developer resources"]
  node_docs["Guides and APIs"]
  node_samples["Runnable examples"]
  node_design["Display design system"]
  node_devskill["AIUI developer skill"]
  node_debugskill["Debugging skill"]
  node_cloudskill["Cloud skills"]
  node_cloudapiskill["Cloud API skill"]
  node_optimizeskill["Optimization skill"]
end

subgraph group_evaluation["Evaluation tools"]
  node_benchmark["Coding benchmark"]
  node_auditor["AIX archive auditor<br/>[audit_aix.py]"]
end

node_developer(("Agent developer"))
node_archive["Local AIX/ZIP archive"]

node_developer -->|"creates project"| node_scaffolder
node_scaffolder -->|"copies template"| node_starter
node_developer -->|"follows quickstart"| node_docs
node_developer -->|"explores examples"| node_samples
node_developer -->|"uses guidance"| node_design
node_developer -->|"gets coding guidance"| node_devskill
node_cloudclient -->|"requests token/cache"| node_aiuiservices
node_cloudclient -->|"sends notification"| node_rokidnotify
node_developer -->|"evaluates agent changes"| node_benchmark
node_developer -->|"audits archive"| node_auditor
node_auditor -->|"inspects without extraction"| node_archive

click node_scaffolder "https://github.com/yodaos-project/aiui/blob/main/packages/create-aiui-agent/index.js"
click node_starter "https://github.com/yodaos-project/aiui/tree/main/packages/create-aiui-agent/template"
click node_lifecycle "https://github.com/yodaos-project/aiui/blob/main/packages/create-aiui-agent/template/app.js"
click node_cloudclient "https://github.com/yodaos-project/aiui/blob/main/packages/cloud-integration/index.js"
click node_docs "https://github.com/yodaos-project/aiui/tree/main/documentation"
click node_samples "https://github.com/yodaos-project/aiui/tree/main/samples"
click node_design "https://github.com/yodaos-project/aiui/tree/main/design"
click node_devskill "https://github.com/yodaos-project/aiui/tree/main/skills/aiui-dev"
click node_debugskill "https://github.com/yodaos-project/aiui/tree/main/skills/aiui-debug"
click node_cloudskill "https://github.com/yodaos-project/aiui/tree/main/skills/aiui-cloud-integration"
click node_cloudapiskill "https://github.com/yodaos-project/aiui/tree/main/skills/aiui-cloud-apis"
click node_optimizeskill "https://github.com/yodaos-project/aiui/tree/main/skills/aiui-optimize"
click node_benchmark "https://github.com/yodaos-project/aiui/tree/main/bench"
click node_auditor "https://github.com/yodaos-project/aiui/blob/main/skills/aiui-optimize/scripts/audit_aix.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_scaffolder,node_starter,node_lifecycle toneBlue
class node_cloudclient,node_aiuiservices,node_rokidnotify toneAmber
class node_docs,node_samples,node_design,node_devskill,node_debugskill,node_cloudskill,node_cloudapiskill,node_optimizeskill toneMint
class node_benchmark,node_auditor toneRose
class node_developer,node_archive toneIndigo
```

## Components

### Agent creation

- [Project scaffolder](https://github.com/yodaos-project/aiui/blob/main/packages/create-aiui-agent/index.js): `packages/create-aiui-agent/index.js`
- [Starter template](https://github.com/yodaos-project/aiui/tree/main/packages/create-aiui-agent/template): `packages/create-aiui-agent/template`
- [Starter lifecycle](https://github.com/yodaos-project/aiui/blob/main/packages/create-aiui-agent/template/app.js): `packages/create-aiui-agent/template/app.js`

### Cloud services

- [Cloud client](https://github.com/yodaos-project/aiui/blob/main/packages/cloud-integration/index.js): `packages/cloud-integration/index.js`
- **AIUI cloud services**
- **Rokid notifications**

### Developer resources

- [Guides and APIs](https://github.com/yodaos-project/aiui/tree/main/documentation): `documentation`
- [Runnable examples](https://github.com/yodaos-project/aiui/tree/main/samples): `samples`
- [Display design system](https://github.com/yodaos-project/aiui/tree/main/design): `design`
- [AIUI developer skill](https://github.com/yodaos-project/aiui/tree/main/skills/aiui-dev): `skills/aiui-dev`
- [Debugging skill](https://github.com/yodaos-project/aiui/tree/main/skills/aiui-debug): `skills/aiui-debug`
- [Cloud skills](https://github.com/yodaos-project/aiui/tree/main/skills/aiui-cloud-integration): `skills/aiui-cloud-integration`
- [Cloud API skill](https://github.com/yodaos-project/aiui/tree/main/skills/aiui-cloud-apis): `skills/aiui-cloud-apis`
- [Optimization skill](https://github.com/yodaos-project/aiui/tree/main/skills/aiui-optimize): `skills/aiui-optimize`

### Evaluation tools

- [Coding benchmark](https://github.com/yodaos-project/aiui/tree/main/bench): `bench`
- [AIX archive auditor](https://github.com/yodaos-project/aiui/blob/main/skills/aiui-optimize/scripts/audit_aix.py): `skills/aiui-optimize/scripts/audit_aix.py`

### Other components

- **Agent developer**
- **Local AIX/ZIP archive**

## Connections

- Agent developer → Project scaffolder: creates project (evidence: `README.md`)
- Project scaffolder → Starter template: copies template (evidence: `packages/create-aiui-agent/index.js`)
- Agent developer → Guides and APIs: follows quickstart (evidence: `README.md`)
- Agent developer → Runnable examples: explores examples (evidence: `README.md`)
- Agent developer → Display design system: uses guidance (evidence: `README.md`)
- Agent developer → AIUI developer skill: gets coding guidance (evidence: `README.md`)
- Cloud client → AIUI cloud services: requests token/cache (evidence: `packages/cloud-integration/index.js`)
- Cloud client → Rokid notifications: sends notification (evidence: `packages/cloud-integration/index.js`)
- Agent developer → Coding benchmark: evaluates agent changes (evidence: `README.md`)
- Agent developer → AIX archive auditor: audits archive (evidence: `skills/aiui-optimize/scripts/audit_aix.py`)
- AIX archive auditor → Local AIX/ZIP archive: inspects without extraction (evidence: `skills/aiui-optimize/scripts/audit_aix.py`)
