# kevinbadi/claude-codes-influencers architecture

> Architecture diagram of the GitHub repository kevinbadi/claude-codes-influencers, 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/kevinbadi/claude-codes-influencers
- Repository: https://github.com/kevinbadi/claude-codes-influencers

## Overview

This repository turns a script or recording into a vertical talking-mascot video, and also supports creating, configuring, drawing and checking mascots. The main flow is make.py dispatching voice generation, audio analysis into a take, then frame rendering. Mascot art and settings supply poses, mouths, eyes, triggers and style; optional image-to-mascot creation uses Claude. The graph follows documented workflow and shown calls; unsampled command internals and integrations are omitted where their wiring is not evidenced.

Main entry points: [`make.py`](https://github.com/kevinbadi/claude-codes-influencers/blob/main/make.py) (Command dispatcher), [`engine/animate.py`](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/animate.py) (Frame animator), [`engine/lipsync.py`](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/lipsync.py) (Audio analysis), [`rigs/bake_doodle.py`](https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/bake_doodle.py) (Doodle sprite baker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Mascot creation"]
  node_autorig["Image autorig<br/>[autorig.py]"]
  node_checker["Art checker<br/>[check.py]"]
end

subgraph group_assets["Mascot assets"]
  node_mascot_settings["Mascot settings<br/>[mascot.py]"]
  node_mascot_art["Mascot art packs"]
  node_pack["Mascot loader<br/>[pack.py]"]
end

subgraph group_audio["Voice and timing"]
  node_voice["Voice generation<br/>[voice.py]"]
  node_audio_input(("Audio recording"))
  node_lipsync["Audio analysis<br/>[lipsync.py]"]
  node_take["Take cues and timings"]
end

subgraph group_render["Video rendering"]
  node_animator["Frame animator<br/>[animate.py]"]
  node_procedural["Mouth and eye layers<br/>[procedural.py]"]
  node_video["Vertical MP4"]
end

subgraph group_rig["Drawing rig"]
  node_doodle_baker["Doodle sprite baker<br/>[bake_doodle.py]"]
  node_doodle_rig["Doodle renderer<br/>[doodle_rig.py]"]
  node_doodle_styles["Doodle styles<br/>[doodle_styles.py]"]
  node_bake["Sprite pack baker<br/>[bake.py]"]
  node_kev_draw["Kev drawing entry<br/>[draw.py]"]
  node_anime_draw["Anime drawing entry<br/>[draw.py]"]
  node_sparky_draw["Sparky drawing entry<br/>[draw.py]"]
end

node_user(("Creator"))
node_cli["Command dispatcher<br/>[make.py]"]
node_claude(("Claude API"))
node_elevenlabs(("ElevenLabs"))
node_rhubarb(("Rhubarb"))
node_whisper(("Whisper"))

node_user -->|"runs command"| node_cli
node_cli -->|"creates mascot"| node_autorig
node_autorig -->|"analyzes image"| node_claude
node_autorig -->|"writes settings"| node_mascot_settings
node_user -->|"configures"| node_mascot_settings
node_user -->|"supplies artwork"| node_mascot_art
node_cli -->|"checks art"| node_checker
node_checker -->|"loads mascot"| node_pack
node_pack -->|"loads settings"| node_mascot_settings
node_pack -->|"loads sprites"| node_mascot_art
node_cli -->|"generates speech"| node_voice
node_user -->|"records line"| node_audio_input
node_voice -->|"requests speech"| node_elevenlabs
node_cli -->|"analyzes audio"| node_lipsync
node_audio_input -->|"provides recording"| node_lipsync
node_lipsync -->|"gets mouth cues"| node_rhubarb
node_lipsync -->|"gets word timings"| node_whisper
node_lipsync -->|"writes take"| node_take
node_cli -->|"renders take"| node_animator
node_animator -->|"reads cues"| node_take
node_animator -->|"loads mascot"| node_pack
node_animator -->|"draws layers"| node_procedural
node_animator -->|"encodes frames"| node_video
node_user -->|"redraws art"| node_kev_draw
node_user -->|"redraws art"| node_anime_draw
node_user -->|"redraws art"| node_sparky_draw
node_kev_draw -->|"bakes sprites"| node_doodle_baker
node_anime_draw -->|"bakes sprites"| node_doodle_baker
node_doodle_baker -->|"uses renderer"| node_doodle_rig
node_doodle_baker -->|"selects style"| node_doodle_styles
node_doodle_baker -->|"writes sprite pack"| node_bake

click node_cli "https://github.com/kevinbadi/claude-codes-influencers/blob/main/make.py"
click node_autorig "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/autorig.py"
click node_mascot_settings "https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/_template/mascot.py"
click node_mascot_art "https://github.com/kevinbadi/claude-codes-influencers/tree/main/mascots"
click node_pack "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/pack.py"
click node_checker "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/check.py"
click node_voice "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/voice.py"
click node_lipsync "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/lipsync.py"
click node_animator "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/animate.py"
click node_procedural "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/procedural.py"
click node_doodle_baker "https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/bake_doodle.py"
click node_doodle_rig "https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/doodle_rig.py"
click node_doodle_styles "https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/doodle_styles.py"
click node_bake "https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/bake.py"
click node_kev_draw "https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/kev/draw.py"
click node_anime_draw "https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/anime/draw.py"
click node_sparky_draw "https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/sparky/draw.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_autorig,node_checker toneBlue
class node_mascot_settings,node_mascot_art,node_pack toneAmber
class node_voice,node_audio_input,node_lipsync,node_take,node_claude toneMint
class node_animator,node_procedural,node_video toneRose
class node_doodle_baker,node_doodle_rig,node_doodle_styles,node_bake,node_kev_draw,node_anime_draw,node_sparky_draw,node_user,node_elevenlabs,node_rhubarb,node_whisper toneIndigo
class node_cli toneTeal
```

## Components

### Mascot creation

- [Image autorig](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/autorig.py): `engine/autorig.py`
- [Art checker](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/check.py): `engine/check.py`

### Mascot assets

- [Mascot settings](https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/_template/mascot.py): `mascots/_template/mascot.py`
- [Mascot art packs](https://github.com/kevinbadi/claude-codes-influencers/tree/main/mascots): `mascots`
- [Mascot loader](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/pack.py): `engine/pack.py`

### Voice and timing

- [Voice generation](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/voice.py): `engine/voice.py`
- **Audio recording**
- [Audio analysis](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/lipsync.py): `engine/lipsync.py`
- **Take cues and timings**

### Video rendering

- [Frame animator](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/animate.py): `engine/animate.py`
- [Mouth and eye layers](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/procedural.py): `engine/procedural.py`
- **Vertical MP4**

### Drawing rig

- [Doodle sprite baker](https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/bake_doodle.py): `rigs/bake_doodle.py`
- [Doodle renderer](https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/doodle_rig.py): `rigs/doodle_rig.py`
- [Doodle styles](https://github.com/kevinbadi/claude-codes-influencers/blob/main/rigs/doodle_styles.py): `rigs/doodle_styles.py`
- [Sprite pack baker](https://github.com/kevinbadi/claude-codes-influencers/blob/main/engine/bake.py): `engine/bake.py`
- [Kev drawing entry](https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/kev/draw.py): `mascots/kev/draw.py`
- [Anime drawing entry](https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/anime/draw.py): `mascots/anime/draw.py`
- [Sparky drawing entry](https://github.com/kevinbadi/claude-codes-influencers/blob/main/mascots/sparky/draw.py): `mascots/sparky/draw.py`

### Other components

- **Creator**
- [Command dispatcher](https://github.com/kevinbadi/claude-codes-influencers/blob/main/make.py): `make.py`
- **Claude API**
- **ElevenLabs**
- **Rhubarb**
- **Whisper**

## Connections

- Creator → Command dispatcher: runs command (evidence: `README.md`)
- Command dispatcher → Image autorig: creates mascot (evidence: `make.py`)
- Image autorig → Claude API: analyzes image (evidence: `README.md`)
- Image autorig → Mascot settings: writes settings (evidence: `engine/autorig.py`)
- Creator → Mascot settings: configures (evidence: `README.md`)
- Creator → Mascot art packs: supplies artwork (evidence: `README.md`)
- Command dispatcher → Art checker: checks art (evidence: `make.py`)
- Art checker → Mascot loader: loads mascot (evidence: `engine/check.py`)
- Mascot loader → Mascot settings: loads settings (evidence: `engine/pack.py`)
- Mascot loader → Mascot art packs: loads sprites (evidence: `engine/pack.py`)
- Command dispatcher → Voice generation: generates speech (evidence: `README.md`)
- Creator → Audio recording: records line (evidence: `README.md`)
- Voice generation → ElevenLabs: requests speech (evidence: `engine/voice.py`)
- Command dispatcher → Audio analysis: analyzes audio (evidence: `make.py`)
- Audio recording → Audio analysis: provides recording (evidence: `README.md`)
- Audio analysis → Rhubarb: gets mouth cues (evidence: `README.md`)
- Audio analysis → Whisper: gets word timings (evidence: `README.md`)
- Audio analysis → Take cues and timings: writes take (evidence: `engine/lipsync.py`)
- Command dispatcher → Frame animator: renders take (evidence: `make.py`)
- Frame animator → Take cues and timings: reads cues (evidence: `engine/animate.py`)
- Frame animator → Mascot loader: loads mascot (evidence: `engine/animate.py`)
- Frame animator → Mouth and eye layers: draws layers (evidence: `engine/animate.py`)
- Frame animator → Vertical MP4: encodes frames (evidence: `engine/animate.py`)
- Creator → Kev drawing entry: redraws art (evidence: `README.md`)
- Creator → Anime drawing entry: redraws art (evidence: `README.md`)
- Creator → Sparky drawing entry: redraws art (evidence: `README.md`)
- Kev drawing entry → Doodle sprite baker: bakes sprites (evidence: `rigs/bake_doodle.py`)
- Anime drawing entry → Doodle sprite baker: bakes sprites (evidence: `rigs/bake_doodle.py`)
- Doodle sprite baker → Doodle renderer: uses renderer (evidence: `rigs/bake_doodle.py`)
- Doodle sprite baker → Doodle styles: selects style (evidence: `rigs/bake_doodle.py`)
- Doodle sprite baker → Sprite pack baker: writes sprite pack (evidence: `rigs/bake_doodle.py`)
