# selab-gnu/cld-ai architecture

> Architecture diagram of the GitHub repository selab-gnu/cld-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/selab-gnu/cld-ai
- Repository: https://github.com/selab-gnu/cld-ai

## Overview

cld-ai is a collection of instructional materials and examples about AI-assisted software engineering and related development practices. The learner’s broad workflow is to choose a topic, study its guides, and inspect a sample; the tree supports those content areas, but the root README does not describe a prescribed sequence. The sampled todo applications are teaching examples, not the repository’s main product. Their internal calls are shown where the source index or excerpts support them; unsampled topic relationships are omitted.

Main entry points: [`03-spec-driven/M06-documentation/example-result/src/app.js`](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/app.js) (HTTP Todo API), [`03-spec-driven/M06-documentation/todo-app/src/app.js`](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/app.js) (HTTP Todo API), [`01-github-action/M09-git-action-ci/todo-app/src/app.js`](https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/app.js) (Browser Todo UI), [`03-spec-driven/M06-documentation/example-result/src/cli.js`](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/cli.js) (Todo CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_development["Web Development"]
  node_web_lessons["Web Stack Lessons"]
end

subgraph group_github["GitHub Workflows"]
  node_github_lessons["GitHub Lessons"]
  node_browser_app["Browser Todo UI<br/>[app.js]"]
  node_browser_rules["Todo Rules<br/>[todo.js]"]
  node_browser_storage[("Browser Storage<br/>[storage.js]")]
end

subgraph group_harness["Harness Engineering"]
  node_harness_lessons["Harness Lessons"]
end

subgraph group_spec["Spec Driven Development"]
  node_spec_lessons["Spec Lessons"]
  node_example_http["HTTP Todo API<br/>[app.js]"]
  node_example_server["HTTP Server<br/>[server.js]"]
  node_example_rules["Todo Rules<br/>[todo.js]"]
  node_example_store[("JSON File Store<br/>[store.js]")]
  node_example_cli["Todo CLI<br/>[cli.js]"]
  node_todo_http["HTTP Todo API<br/>[app.js]"]
  node_todo_server["HTTP Server<br/>[server.js]"]
  node_todo_rules["Todo Rules<br/>[todo.js]"]
  node_todo_store[("JSON File Store<br/>[store.js]")]
  node_todo_cli["Todo CLI<br/>[cli.js]"]
end

subgraph group_agentic["Agentic Methods"]
  node_hermes_lessons["Hermes Agents"]
  node_loop_lessons["Loop Engineering"]
  node_graph_lessons["Graph Engineering"]
end

node_learner(("Learner"))

node_learner -.->|"studies topic"| node_web_lessons
node_learner -.->|"studies topic"| node_github_lessons
node_learner -.->|"studies topic"| node_harness_lessons
node_learner -.->|"studies topic"| node_spec_lessons
node_learner -.->|"studies topic"| node_hermes_lessons
node_learner -.->|"studies topic"| node_loop_lessons
node_learner -.->|"studies topic"| node_graph_lessons
node_browser_app -->|"uses rules"| node_browser_rules
node_browser_app -->|"loads and saves"| node_browser_storage
node_browser_storage -->|"parses with"| node_browser_rules
node_example_server -->|"starts server"| node_example_http
node_example_http -->|"applies operations"| node_example_rules
node_example_http -->|"loads and saves"| node_example_store
node_example_cli -->|"uses rules"| node_example_rules
node_example_cli -->|"loads and saves"| node_example_store
node_todo_server -->|"starts server"| node_todo_http
node_todo_http -->|"applies operations"| node_todo_rules
node_todo_http -->|"loads and saves"| node_todo_store
node_todo_cli -->|"uses rules"| node_todo_rules
node_todo_cli -->|"loads and saves"| node_todo_store

click node_web_lessons "https://github.com/selab-gnu/cld-ai/tree/main/00-front-back-end"
click node_github_lessons "https://github.com/selab-gnu/cld-ai/tree/main/01-github-action"
click node_harness_lessons "https://github.com/selab-gnu/cld-ai/tree/main/02-harness-engineering"
click node_spec_lessons "https://github.com/selab-gnu/cld-ai/tree/main/03-spec-driven"
click node_hermes_lessons "https://github.com/selab-gnu/cld-ai/tree/main/04-hermes-agents"
click node_loop_lessons "https://github.com/selab-gnu/cld-ai/tree/main/05-loop-engineering"
click node_graph_lessons "https://github.com/selab-gnu/cld-ai/tree/main/06-graph-engineering"
click node_browser_app "https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/app.js"
click node_browser_rules "https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/todo.js"
click node_browser_storage "https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/storage.js"
click node_example_http "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/app.js"
click node_example_server "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/server.js"
click node_example_rules "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/todo.js"
click node_example_store "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/store.js"
click node_example_cli "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/cli.js"
click node_todo_http "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/app.js"
click node_todo_server "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/server.js"
click node_todo_rules "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/todo.js"
click node_todo_store "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/store.js"
click node_todo_cli "https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/cli.js"

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_web_lessons toneBlue
class node_github_lessons,node_browser_app,node_browser_rules,node_browser_storage toneAmber
class node_harness_lessons toneMint
class node_spec_lessons,node_example_http,node_example_server,node_example_rules,node_example_store,node_example_cli,node_todo_http,node_todo_server,node_todo_rules,node_todo_store,node_todo_cli toneRose
class node_hermes_lessons,node_loop_lessons,node_graph_lessons,node_learner toneIndigo
```

## Components

### Web Development

- [Web Stack Lessons](https://github.com/selab-gnu/cld-ai/tree/main/00-front-back-end): `00-front-back-end`

### GitHub Workflows

- [GitHub Lessons](https://github.com/selab-gnu/cld-ai/tree/main/01-github-action): `01-github-action`
- [Browser Todo UI](https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/app.js): `01-github-action/M09-git-action-ci/todo-app/src/app.js`
- [Todo Rules](https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/todo.js): `01-github-action/M09-git-action-ci/todo-app/src/todo.js`
- [Browser Storage](https://github.com/selab-gnu/cld-ai/blob/main/01-github-action/M09-git-action-ci/todo-app/src/storage.js): `01-github-action/M09-git-action-ci/todo-app/src/storage.js`

### Harness Engineering

- [Harness Lessons](https://github.com/selab-gnu/cld-ai/tree/main/02-harness-engineering): `02-harness-engineering`

### Spec Driven Development

- [Spec Lessons](https://github.com/selab-gnu/cld-ai/tree/main/03-spec-driven): `03-spec-driven`
- [HTTP Todo API](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/app.js): `03-spec-driven/M06-documentation/example-result/src/app.js`
- [HTTP Server](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/server.js): `03-spec-driven/M06-documentation/example-result/src/server.js`
- [Todo Rules](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/todo.js): `03-spec-driven/M06-documentation/example-result/src/todo.js`
- [JSON File Store](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/store.js): `03-spec-driven/M06-documentation/example-result/src/store.js`
- [Todo CLI](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/example-result/src/cli.js): `03-spec-driven/M06-documentation/example-result/src/cli.js`
- [HTTP Todo API](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/app.js): `03-spec-driven/M06-documentation/todo-app/src/app.js`
- [HTTP Server](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/server.js): `03-spec-driven/M06-documentation/todo-app/src/server.js`
- [Todo Rules](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/todo.js): `03-spec-driven/M06-documentation/todo-app/src/todo.js`
- [JSON File Store](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/store.js): `03-spec-driven/M06-documentation/todo-app/src/store.js`
- [Todo CLI](https://github.com/selab-gnu/cld-ai/blob/main/03-spec-driven/M06-documentation/todo-app/src/cli.js): `03-spec-driven/M06-documentation/todo-app/src/cli.js`

### Agentic Methods

- [Hermes Agents](https://github.com/selab-gnu/cld-ai/tree/main/04-hermes-agents): `04-hermes-agents`
- [Loop Engineering](https://github.com/selab-gnu/cld-ai/tree/main/05-loop-engineering): `05-loop-engineering`
- [Graph Engineering](https://github.com/selab-gnu/cld-ai/tree/main/06-graph-engineering): `06-graph-engineering`

### Other components

- **Learner**

## Connections

- Learner → Web Stack Lessons: studies topic
- Learner → GitHub Lessons: studies topic
- Learner → Harness Lessons: studies topic
- Learner → Spec Lessons: studies topic
- Learner → Hermes Agents: studies topic
- Learner → Loop Engineering: studies topic
- Learner → Graph Engineering: studies topic
- Browser Todo UI → Todo Rules: uses rules (evidence: `01-github-action/M09-git-action-ci/todo-app/src/app.js`)
- Browser Todo UI → Browser Storage: loads and saves (evidence: `01-github-action/M09-git-action-ci/todo-app/src/app.js`)
- Browser Storage → Todo Rules: parses with (evidence: `01-github-action/M09-git-action-ci/todo-app/src/storage.js`)
- HTTP Server → HTTP Todo API: starts server (evidence: `03-spec-driven/M06-documentation/example-result/src/server.js`)
- HTTP Todo API → Todo Rules: applies operations (evidence: `03-spec-driven/M06-documentation/example-result/src/app.js`)
- HTTP Todo API → JSON File Store: loads and saves (evidence: `03-spec-driven/M06-documentation/example-result/src/app.js`)
- Todo CLI → Todo Rules: uses rules (evidence: `03-spec-driven/M06-documentation/example-result/src/cli.js`)
- Todo CLI → JSON File Store: loads and saves (evidence: `03-spec-driven/M06-documentation/example-result/src/cli.js`)
- HTTP Server → HTTP Todo API: starts server (evidence: `03-spec-driven/M06-documentation/todo-app/src/server.js`)
- HTTP Todo API → Todo Rules: applies operations (evidence: `03-spec-driven/M06-documentation/todo-app/src/app.js`)
- HTTP Todo API → JSON File Store: loads and saves (evidence: `03-spec-driven/M06-documentation/todo-app/src/app.js`)
- Todo CLI → Todo Rules: uses rules (evidence: `03-spec-driven/M06-documentation/todo-app/src/cli.js`)
- Todo CLI → JSON File Store: loads and saves (evidence: `03-spec-driven/M06-documentation/todo-app/src/cli.js`)
