# video-db/skills architecture

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

- Interactive diagram: https://gitdiagram.com/video-db/skills
- Repository: https://github.com/video-db/skills

## Overview

This repository is an agent skill for VideoDB, not the VideoDB processing service itself. Its main workflow is an agent-guided request to capture or ingest media, understand and search it, then produce or stream results. The README documents those capabilities; the reference files provide detailed guidance. The only sampled executable component is a WebSocket event listener, which connects through the VideoDB SDK and writes received events to local files. Other capability relationships are documented at a high level in the README.

Main entry points: [`python/SKILL.md`](https://github.com/video-db/skills/blob/main/python/SKILL.md) (VideoDB skill), [`python/scripts/ws_listener.py`](https://github.com/video-db/skills/blob/main/python/scripts/ws_listener.py) (WebSocket listener), [`python/reference/capture.md`](https://github.com/video-db/skills/blob/main/python/reference/capture.md) (Capture), [`python/reference/api-reference.md`](https://github.com/video-db/skills/blob/main/python/reference/api-reference.md) (Media ingestion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Agent guidance"]
  node_skill["VideoDB skill<br/>[SKILL.md]"]
end

subgraph group_media["Capture and context"]
  node_capture["Capture<br/>[capture.md]"]
  node_ingest["Media ingestion<br/>[api-reference.md]"]
  node_realtime["Realtime context<br/>[rtstream.md]"]
end

subgraph group_intelligence["Understand and search"]
  node_analysis["Media analysis<br/>[indexing.md]"]
  node_indexing["Indexing<br/>[indexing.md]"]
  node_search["Search and Q&amp;A<br/>[search.md]"]
end

subgraph group_outputs["Create and deliver"]
  node_transcripts["Transcripts<br/>[api-reference.md]"]
  node_subtitles["Subtitles<br/>[editor.md]"]
  node_editing["Editing and export<br/>[editor.md]"]
  node_generation["AI generation<br/>[generative.md]"]
  node_sandbox["Sandbox compute<br/>[sandbox.md]"]
  node_streaming["Streaming<br/>[streaming.md]"]
end

subgraph group_listener["Event listener"]
  node_listener["WebSocket listener<br/>[ws_listener.py]"]
  node_eventfile["Event JSONL"]
  node_connectionfiles["Connection files"]
end

node_agent(("AI agent"))
node_videodb[("VideoDB service")]

node_agent -->|"uses instructions"| node_skill
node_skill -->|"guides capture"| node_capture
node_skill -->|"guides ingestion"| node_ingest
node_skill -->|"guides context"| node_realtime
node_skill -->|"guides analysis"| node_analysis
node_skill -->|"guides indexing"| node_indexing
node_skill -->|"guides search"| node_search
node_skill -->|"guides transcripts"| node_transcripts
node_skill -->|"guides subtitles"| node_subtitles
node_skill -->|"guides editing"| node_editing
node_skill -->|"guides generation"| node_generation
node_skill -->|"guides compute"| node_sandbox
node_skill -->|"guides streaming"| node_streaming
node_listener -->|"connects and receives"| node_videodb
node_listener -->|"appends events"| node_eventfile
node_listener -->|"writes IDs and PID"| node_connectionfiles

click node_skill "https://github.com/video-db/skills/blob/main/python/SKILL.md"
click node_capture "https://github.com/video-db/skills/blob/main/python/reference/capture.md"
click node_ingest "https://github.com/video-db/skills/blob/main/python/reference/api-reference.md"
click node_realtime "https://github.com/video-db/skills/blob/main/python/reference/rtstream.md"
click node_analysis "https://github.com/video-db/skills/blob/main/python/reference/indexing.md"
click node_indexing "https://github.com/video-db/skills/blob/main/python/reference/indexing.md"
click node_search "https://github.com/video-db/skills/blob/main/python/reference/search.md"
click node_transcripts "https://github.com/video-db/skills/blob/main/python/reference/api-reference.md"
click node_subtitles "https://github.com/video-db/skills/blob/main/python/reference/editor.md"
click node_editing "https://github.com/video-db/skills/blob/main/python/reference/editor.md"
click node_generation "https://github.com/video-db/skills/blob/main/python/reference/generative.md"
click node_sandbox "https://github.com/video-db/skills/blob/main/python/reference/sandbox.md"
click node_streaming "https://github.com/video-db/skills/blob/main/python/reference/streaming.md"
click node_listener "https://github.com/video-db/skills/blob/main/python/scripts/ws_listener.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_skill toneBlue
class node_capture,node_ingest,node_realtime,node_videodb toneAmber
class node_analysis,node_indexing,node_search toneMint
class node_transcripts,node_subtitles,node_editing,node_generation,node_sandbox,node_streaming toneRose
class node_listener,node_eventfile,node_connectionfiles,node_agent toneIndigo
```

## Components

### Agent guidance

- [VideoDB skill](https://github.com/video-db/skills/blob/main/python/SKILL.md): `python/SKILL.md`

### Capture and context

- [Capture](https://github.com/video-db/skills/blob/main/python/reference/capture.md): `python/reference/capture.md`
- [Media ingestion](https://github.com/video-db/skills/blob/main/python/reference/api-reference.md): `python/reference/api-reference.md`
- [Realtime context](https://github.com/video-db/skills/blob/main/python/reference/rtstream.md): `python/reference/rtstream.md`

### Understand and search

- [Media analysis](https://github.com/video-db/skills/blob/main/python/reference/indexing.md): `python/reference/indexing.md`
- [Indexing](https://github.com/video-db/skills/blob/main/python/reference/indexing.md): `python/reference/indexing.md`
- [Search and Q&A](https://github.com/video-db/skills/blob/main/python/reference/search.md): `python/reference/search.md`

### Create and deliver

- [Transcripts](https://github.com/video-db/skills/blob/main/python/reference/api-reference.md): `python/reference/api-reference.md`
- [Subtitles](https://github.com/video-db/skills/blob/main/python/reference/editor.md): `python/reference/editor.md`
- [Editing and export](https://github.com/video-db/skills/blob/main/python/reference/editor.md): `python/reference/editor.md`
- [AI generation](https://github.com/video-db/skills/blob/main/python/reference/generative.md): `python/reference/generative.md`
- [Sandbox compute](https://github.com/video-db/skills/blob/main/python/reference/sandbox.md): `python/reference/sandbox.md`
- [Streaming](https://github.com/video-db/skills/blob/main/python/reference/streaming.md): `python/reference/streaming.md`

### Event listener

- [WebSocket listener](https://github.com/video-db/skills/blob/main/python/scripts/ws_listener.py): `python/scripts/ws_listener.py`
- **Event JSONL**
- **Connection files**

### Other components

- **AI agent**
- **VideoDB service**

## Connections

- AI agent → VideoDB skill: uses instructions (evidence: `README.md`)
- VideoDB skill → Capture: guides capture (evidence: `README.md`)
- VideoDB skill → Media ingestion: guides ingestion (evidence: `README.md`)
- VideoDB skill → Realtime context: guides context (evidence: `README.md`)
- VideoDB skill → Media analysis: guides analysis (evidence: `README.md`)
- VideoDB skill → Indexing: guides indexing (evidence: `README.md`)
- VideoDB skill → Search and Q&A: guides search (evidence: `README.md`)
- VideoDB skill → Transcripts: guides transcripts (evidence: `README.md`)
- VideoDB skill → Subtitles: guides subtitles (evidence: `README.md`)
- VideoDB skill → Editing and export: guides editing (evidence: `README.md`)
- VideoDB skill → AI generation: guides generation (evidence: `README.md`)
- VideoDB skill → Sandbox compute: guides compute (evidence: `README.md`)
- VideoDB skill → Streaming: guides streaming (evidence: `README.md`)
- WebSocket listener → VideoDB service: connects and receives (evidence: `python/scripts/ws_listener.py`)
- WebSocket listener → Event JSONL: appends events (evidence: `python/scripts/ws_listener.py`)
- WebSocket listener → Connection files: writes IDs and PID (evidence: `python/scripts/ws_listener.py`)
