# shaynep/rabbit-r1-livekit-skill architecture

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

- Interactive diagram: https://gitdiagram.com/shaynep/rabbit-r1-livekit-skill
- Repository: https://github.com/shaynep/rabbit-r1-livekit-skill

## Overview

This repository is a coding-assistant skill, not the generated voice-agent application: SKILL.md is the build prompt, while README.md documents the intended result and its runtime flow. The graph therefore shows both the prompt’s role and the documented application architecture; generated components are conceptual and have no source paths in this repository. Relationships come from README.md because no source excerpts were provided.

Main entry points: [`SKILL.md`](https://github.com/shaynep/rabbit-r1-livekit-skill/blob/main/SKILL.md) (Build prompt)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Build Skill"]
  node_prompt["Build prompt<br/>[SKILL.md]"]
end

subgraph group_app["Generated Voice App"]
  node_web["Token web server"]
  node_frontend["R1 voice UI"]
  node_install["Install page"]
  node_agent["Python agent"]
  node_stt["Speech recognition"]
  node_llm["Language model"]
  node_tts["Speech synthesis"]
end

subgraph group_services["External Services"]
  node_livekit["LiveKit Cloud"]
  node_tunnel["HTTPS tunnel"]
end

node_developer(("Project requester"))
node_assistant(("Coding assistant"))
node_r1(("Rabbit R1"))

node_developer -->|"requests build"| node_assistant
node_assistant -->|"follows"| node_prompt
node_prompt -->|"guides creation"| node_agent
node_prompt -->|"guides creation"| node_web
node_prompt -->|"guides creation"| node_frontend
node_prompt -->|"guides creation"| node_install
node_r1 -->|"scans QR"| node_install
node_r1 -->|"opens UI"| node_frontend
node_frontend -->|"requests token"| node_web
node_web -->|"creates token"| node_livekit
node_frontend -->|"connects via WebRTC"| node_livekit
node_livekit -->|"dispatches"| node_agent
node_agent -->|"processes audio"| node_stt
node_agent -->|"processes transcript"| node_llm
node_agent -->|"generates speech"| node_tts
node_agent -->|"publishes audio"| node_livekit
node_livekit -->|"returns audio"| node_frontend
node_frontend -->|"plays response"| node_r1
node_r1 -->|"accesses HTTPS"| node_tunnel
node_tunnel -->|"forwards requests"| node_web

click node_prompt "https://github.com/shaynep/rabbit-r1-livekit-skill/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_prompt toneBlue
class node_web,node_frontend,node_install,node_agent,node_stt,node_llm,node_tts toneAmber
class node_livekit,node_tunnel,node_developer toneMint
class node_assistant,node_r1 toneIndigo
```

## Components

### Build Skill

- [Build prompt](https://github.com/shaynep/rabbit-r1-livekit-skill/blob/main/SKILL.md): `SKILL.md`

### Generated Voice App

- **Token web server**
- **R1 voice UI**
- **Install page**
- **Python agent**
- **Speech recognition**
- **Language model**
- **Speech synthesis**

### External Services

- **LiveKit Cloud**
- **HTTPS tunnel**

### Other components

- **Project requester**
- **Coding assistant**
- **Rabbit R1**

## Connections

- Project requester → Coding assistant: requests build (evidence: `README.md`)
- Coding assistant → Build prompt: follows (evidence: `README.md`)
- Build prompt → Python agent: guides creation (evidence: `README.md`)
- Build prompt → Token web server: guides creation (evidence: `README.md`)
- Build prompt → R1 voice UI: guides creation (evidence: `README.md`)
- Build prompt → Install page: guides creation (evidence: `README.md`)
- Rabbit R1 → Install page: scans QR (evidence: `README.md`)
- Rabbit R1 → R1 voice UI: opens UI (evidence: `README.md`)
- R1 voice UI → Token web server: requests token (evidence: `README.md`)
- Token web server → LiveKit Cloud: creates token (evidence: `README.md`)
- R1 voice UI → LiveKit Cloud: connects via WebRTC (evidence: `README.md`)
- LiveKit Cloud → Python agent: dispatches (evidence: `README.md`)
- Python agent → Speech recognition: processes audio (evidence: `README.md`)
- Python agent → Language model: processes transcript (evidence: `README.md`)
- Python agent → Speech synthesis: generates speech (evidence: `README.md`)
- Python agent → LiveKit Cloud: publishes audio (evidence: `README.md`)
- LiveKit Cloud → R1 voice UI: returns audio (evidence: `README.md`)
- R1 voice UI → Rabbit R1: plays response (evidence: `README.md`)
- Rabbit R1 → HTTPS tunnel: accesses HTTPS (evidence: `README.md`)
- HTTPS tunnel → Token web server: forwards requests (evidence: `README.md`)
