# tuzhechen2005/opus-video-skills architecture

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

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

## Overview

opus-video-skills is a collection of Claude Code skills for generating procedural videos in painted-animation and kinetic-reel styles. The documented user workflow is to describe a video, scaffold a project, shape it with a storyboard, build and review shots, then encode an MP4. The graph includes the sampled runtime modules and README-described capabilities; some workflow links rely on README documentation because the relevant skill instructions and templates were not excerpted.

Main entry points: [`skills/painted-animation/SKILL.md`](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/SKILL.md) (Painted skill), [`skills/kinetic-reel/SKILL.md`](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/SKILL.md) (Kinetic skill), [`skills/painted-animation/template/render.mjs`](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/render.mjs) (Painted renderer), [`skills/kinetic-reel/template/render.mjs`](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/render.mjs) (Reel renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Skill guidance"]
  node_painted_skill["Painted skill<br/>[SKILL.md]"]
  node_kinetic_skill["Kinetic skill<br/>[SKILL.md]"]
end

subgraph group_painted["Painted animation"]
  node_paint_setup["Project scaffold<br/>[new_project.sh]"]
  node_paint_story["Painted storyboard<br/>[ANIMATION_GUIDE.md]"]
  node_beat_grid["Beat detection<br/>[beat_grid.py]"]
  node_paint_timeline["Shot timeline<br/>[timeline.js]"]
  node_paint_core["Paint and motion core<br/>[core.js]"]
  node_clawd["Character acting<br/>[clawd.js]"]
  node_demo_scene["Scene example<br/>[demo.js]"]
  node_karaoke["Karaoke overlay<br/>[karaoke.js]"]
end

subgraph group_kinetic["Kinetic reel"]
  node_kinetic_setup["Project scaffold<br/>[new_project.sh]"]
  node_kinetic_story["Reel storyboard<br/>[STORYBOARD.md]"]
  node_cues["Beat cue timeline<br/>[cues.js]"]
  node_reel["Type and WebGL scenes<br/>[reel.js]"]
  node_score["Synthesized score<br/>[score.mjs]"]
end

subgraph group_delivery["Render and delivery"]
  node_paint_render["Painted renderer<br/>[render.mjs]"]
  node_paint_output["Painted MP4"]
  node_kinetic_render["Reel renderer<br/>[render.mjs]"]
  node_kinetic_output["Reel MP4"]
end

node_creator(("Video creator"))
node_claude["Claude Code"]
node_chrome["Headless Chrome"]
node_ffmpeg["ffmpeg"]

node_creator -->|"describes video"| node_claude
node_claude -->|"selects skill"| node_painted_skill
node_claude -->|"selects skill"| node_kinetic_skill
node_painted_skill -->|"scaffolds project"| node_paint_setup
node_painted_skill -->|"guides storyboard"| node_paint_story
node_painted_skill -->|"builds and reviews"| node_paint_render
node_kinetic_skill -->|"scaffolds project"| node_kinetic_setup
node_kinetic_skill -->|"guides storyboard"| node_kinetic_story
node_kinetic_skill -->|"builds and reviews"| node_kinetic_render
node_paint_story -->|"supports beat cutting"| node_beat_grid
node_paint_timeline -->|"draws frames"| node_paint_core
node_paint_timeline -->|"registers example shots"| node_demo_scene
node_paint_core -->|"draws character"| node_clawd
node_paint_core -->|"composites lyrics"| node_karaoke
node_paint_render -->|"renders frames"| node_chrome
node_paint_render -->|"encodes video"| node_ffmpeg
node_paint_render -->|"writes MP4"| node_paint_output
node_kinetic_story -->|"plans synthesized score"| node_score
node_cues -->|"sets visual timing"| node_reel
node_cues -->|"sets score timing"| node_score
node_kinetic_render -->|"renders frames"| node_chrome
node_kinetic_render -->|"encodes video"| node_ffmpeg
node_kinetic_render -->|"writes MP4"| node_kinetic_output

click node_painted_skill "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/SKILL.md"
click node_kinetic_skill "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/SKILL.md"
click node_paint_setup "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/scripts/new_project.sh"
click node_paint_story "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/ANIMATION_GUIDE.md"
click node_beat_grid "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/scripts/beat_grid.py"
click node_paint_timeline "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/timeline.js"
click node_paint_core "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/core.js"
click node_clawd "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/clawd.js"
click node_demo_scene "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/scenes/demo.js"
click node_karaoke "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/karaoke.js"
click node_paint_render "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/render.mjs"
click node_kinetic_setup "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/scripts/new_project.sh"
click node_kinetic_story "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/STORYBOARD.md"
click node_cues "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/reel/cues.js"
click node_reel "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/reel/reel.js"
click node_score "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/music/score.mjs"
click node_kinetic_render "https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/render.mjs"

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_painted_skill,node_kinetic_skill toneBlue
class node_paint_setup,node_paint_story,node_beat_grid,node_paint_timeline,node_paint_core,node_clawd,node_demo_scene,node_karaoke toneAmber
class node_kinetic_setup,node_kinetic_story,node_cues,node_reel,node_score toneMint
class node_paint_render,node_paint_output,node_kinetic_render,node_kinetic_output toneRose
class node_creator,node_claude,node_chrome,node_ffmpeg toneIndigo
```

## Components

### Skill guidance

- [Painted skill](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/SKILL.md): `skills/painted-animation/SKILL.md`
- [Kinetic skill](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/SKILL.md): `skills/kinetic-reel/SKILL.md`

### Painted animation

- [Project scaffold](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/scripts/new_project.sh): `skills/painted-animation/scripts/new_project.sh`
- [Painted storyboard](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/ANIMATION_GUIDE.md): `skills/painted-animation/template/ANIMATION_GUIDE.md`
- [Beat detection](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/scripts/beat_grid.py): `skills/painted-animation/scripts/beat_grid.py`
- [Shot timeline](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/timeline.js): `skills/painted-animation/template/src/timeline.js`
- [Paint and motion core](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/core.js): `skills/painted-animation/template/src/core.js`
- [Character acting](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/clawd.js): `skills/painted-animation/template/src/clawd.js`
- [Scene example](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/scenes/demo.js): `skills/painted-animation/template/src/scenes/demo.js`
- [Karaoke overlay](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/src/karaoke.js): `skills/painted-animation/template/src/karaoke.js`

### Kinetic reel

- [Project scaffold](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/scripts/new_project.sh): `skills/kinetic-reel/scripts/new_project.sh`
- [Reel storyboard](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/STORYBOARD.md): `skills/kinetic-reel/template/STORYBOARD.md`
- [Beat cue timeline](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/reel/cues.js): `skills/kinetic-reel/template/reel/cues.js`
- [Type and WebGL scenes](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/reel/reel.js): `skills/kinetic-reel/template/reel/reel.js`
- [Synthesized score](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/music/score.mjs): `skills/kinetic-reel/template/music/score.mjs`

### Render and delivery

- [Painted renderer](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/painted-animation/template/render.mjs): `skills/painted-animation/template/render.mjs`
- **Painted MP4**
- [Reel renderer](https://github.com/tuzhechen2005/opus-video-skills/blob/main/skills/kinetic-reel/template/render.mjs): `skills/kinetic-reel/template/render.mjs`
- **Reel MP4**

### Other components

- **Video creator**
- **Claude Code**
- **Headless Chrome**
- **ffmpeg**

## Connections

- Video creator → Claude Code: describes video (evidence: `README.md`)
- Claude Code → Painted skill: selects skill (evidence: `README.md`)
- Claude Code → Kinetic skill: selects skill (evidence: `README.md`)
- Painted skill → Project scaffold: scaffolds project (evidence: `README.md`)
- Painted skill → Painted storyboard: guides storyboard (evidence: `README.md`)
- Painted skill → Painted renderer: builds and reviews (evidence: `README.md`)
- Kinetic skill → Project scaffold: scaffolds project (evidence: `README.md`)
- Kinetic skill → Reel storyboard: guides storyboard (evidence: `README.md`)
- Kinetic skill → Reel renderer: builds and reviews (evidence: `README.md`)
- Painted storyboard → Beat detection: supports beat cutting (evidence: `README.md`)
- Shot timeline → Paint and motion core: draws frames (evidence: `skills/painted-animation/template/src/timeline.js`)
- Shot timeline → Scene example: registers example shots (evidence: `skills/painted-animation/template/src/scenes/demo.js`)
- Paint and motion core → Character acting: draws character (evidence: `README.md`)
- Paint and motion core → Karaoke overlay: composites lyrics (evidence: `skills/painted-animation/template/src/karaoke.js`)
- Painted renderer → Headless Chrome: renders frames (evidence: `skills/painted-animation/template/render.mjs`)
- Painted renderer → ffmpeg: encodes video (evidence: `skills/painted-animation/template/render.mjs`)
- Painted renderer → Painted MP4: writes MP4 (evidence: `README.md`)
- Reel storyboard → Synthesized score: plans synthesized score (evidence: `README.md`)
- Beat cue timeline → Type and WebGL scenes: sets visual timing (evidence: `skills/kinetic-reel/template/reel/cues.js`)
- Beat cue timeline → Synthesized score: sets score timing (evidence: `skills/kinetic-reel/template/reel/cues.js`)
- Reel renderer → Headless Chrome: renders frames (evidence: `skills/kinetic-reel/template/render.mjs`)
- Reel renderer → ffmpeg: encodes video (evidence: `skills/kinetic-reel/template/render.mjs`)
- Reel renderer → Reel MP4: writes MP4 (evidence: `README.md`)
