# melvynx/video-agent-skills architecture

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

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

## Overview

video-agent-skills is a collection of Claude Code workflows for scripting, editing, translating, and publishing videos; it is not a hosted application. The main path is creator → setup and content preparation → short-editing’s local render engine → finished video and posting materials → optional publishing. The README documents the broader skill capabilities and several handoffs. Engine links use the supplied source index and excerpts; unsampled skill internals and optional integrations are represented only at the documented level.

Main entry points: [`skills/short-editing/SKILL.md`](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/SKILL.md) (Short editing), [`skills/short-editing/engine/short.mjs`](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/short.mjs) (Render CLI), [`skills/editing/SKILL.md`](https://github.com/melvynx/video-agent-skills/blob/main/skills/editing/SKILL.md) (Skill router), [`skills/short-editing/engine/lib/scenes.js`](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes.js) (Scene library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Workflow and setup"]
  node_editing["Skill router<br/>[SKILL.md]"]
  node_setup["Studio setup<br/>[SKILL.md]"]
end

subgraph group_research["Research and scripting"]
  node_script["Script writing<br/>[SKILL.md]"]
  node_outliers["Outlier discovery<br/>[SKILL.md]"]
  node_audit["Instagram audit<br/>[SKILL.md]"]
end

subgraph group_production["Video production"]
  node_shortedit["Short editing<br/>[SKILL.md]"]
  node_cli["Render CLI<br/>[short.mjs]"]
  node_timeline["Timeline mapping<br/>[timeline.js]"]
  node_runtime["Frame rendering<br/>[runtime.js]"]
  node_scenes["Scene library<br/>[scenes.js]"]
  node_scene_story["Story scenes<br/>[scenes-story.js]"]
  node_scene_life["Life scenes<br/>[scenes-life.js]"]
  node_drawkit["Drawing primitives<br/>[kit.js]"]
  node_audio["Audio mixing<br/>[audio.mjs]"]
  node_dsp["Audio DSP<br/>[dsp.js]"]
  node_music_styles["Music styles<br/>[chill-styles.js]"]
  node_transcription["Local transcription<br/>[whisper.mjs]"]
  node_platform["Local toolchain<br/>[platform.mjs]"]
end

subgraph group_creative["Creative extensions"]
  node_clips["Long video clips<br/>[SKILL.md]"]
  node_broll["B-roll library<br/>[SKILL.md]"]
  node_steal["Style imitation<br/>[SKILL.md]"]
  node_translate["Voice translation<br/>[SKILL.md]"]
  node_vox["Photo animation<br/>[SKILL.md]"]
  node_images["Image generation<br/>[SKILL.md]"]
end

subgraph group_distribution["Publishing and analysis"]
  node_publish["Video publishing<br/>[SKILL.md]"]
end

node_creator(("Creator"))
node_treg{{"Treg service"}}
node_deliverable["Finished video"]

node_creator -->|"requests work"| node_editing
node_editing -->|"routes setup"| node_setup
node_editing -->|"routes scripting"| node_script
node_editing -->|"routes editing"| node_shortedit
node_editing -->|"routes publishing"| node_publish
node_creator -->|"prepares studio"| node_setup
node_setup -->|"configures studio"| node_shortedit
node_script -->|"provides scripts"| node_creator
node_outliers -->|"informs remakes"| node_script
node_audit -.->|"audits through"| node_treg
node_shortedit -->|"runs engine"| node_cli
node_cli -->|"maps timing"| node_timeline
node_cli -->|"renders frames"| node_runtime
node_runtime -->|"draws scenes"| node_scenes
node_scenes -->|"registers scenes"| node_scene_story
node_scenes -->|"registers scenes"| node_scene_life
node_scenes -->|"uses primitives"| node_drawkit
node_cli -.->|"mixes audio"| node_audio
node_audio -->|"measures levels"| node_dsp
node_audio -.->|"builds music"| node_music_styles
node_cli -->|"gets word timing"| node_transcription
node_cli -->|"locates tools"| node_platform
node_shortedit -->|"exports video"| node_deliverable
node_clips -->|"edits selections"| node_shortedit
node_broll -->|"adds footage"| node_shortedit
node_steal -->|"tests style"| node_shortedit
node_translate -->|"edits translation"| node_shortedit
node_vox -->|"renders animation"| node_deliverable
node_images -->|"provides images"| node_creator
node_creator -->|"approves release"| node_publish
node_publish -.->|"publishes through"| node_treg
node_publish -->|"prepares post kit"| node_deliverable

click node_editing "https://github.com/melvynx/video-agent-skills/blob/main/skills/editing/SKILL.md"
click node_setup "https://github.com/melvynx/video-agent-skills/blob/main/skills/studio-setup/SKILL.md"
click node_script "https://github.com/melvynx/video-agent-skills/blob/main/skills/studio-script/SKILL.md"
click node_outliers "https://github.com/melvynx/video-agent-skills/blob/main/skills/outliers/SKILL.md"
click node_audit "https://github.com/melvynx/video-agent-skills/blob/main/skills/insta-audit/SKILL.md"
click node_shortedit "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/SKILL.md"
click node_cli "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/short.mjs"
click node_timeline "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/timeline.js"
click node_runtime "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/runtime.js"
click node_scenes "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes.js"
click node_scene_story "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes-story.js"
click node_scene_life "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes-life.js"
click node_drawkit "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/kit.js"
click node_audio "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/audio.mjs"
click node_dsp "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/dsp.js"
click node_music_styles "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/chill-styles.js"
click node_transcription "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/whisper.mjs"
click node_platform "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/platform.mjs"
click node_clips "https://github.com/melvynx/video-agent-skills/blob/main/skills/clips/SKILL.md"
click node_broll "https://github.com/melvynx/video-agent-skills/blob/main/skills/broll/SKILL.md"
click node_steal "https://github.com/melvynx/video-agent-skills/blob/main/skills/steal/SKILL.md"
click node_translate "https://github.com/melvynx/video-agent-skills/blob/main/skills/short-translate/SKILL.md"
click node_vox "https://github.com/melvynx/video-agent-skills/blob/main/skills/vox/SKILL.md"
click node_images "https://github.com/melvynx/video-agent-skills/blob/main/skills/codex-images/SKILL.md"
click node_publish "https://github.com/melvynx/video-agent-skills/blob/main/skills/publish/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_editing,node_setup toneBlue
class node_script,node_outliers,node_audit toneAmber
class node_shortedit,node_cli,node_timeline,node_runtime,node_scenes,node_scene_story,node_scene_life,node_drawkit,node_audio,node_dsp,node_music_styles,node_transcription,node_platform toneMint
class node_clips,node_broll,node_steal,node_translate,node_vox,node_images toneRose
class node_publish,node_creator,node_treg,node_deliverable toneIndigo
```

## Components

### Workflow and setup

- [Skill router](https://github.com/melvynx/video-agent-skills/blob/main/skills/editing/SKILL.md): `skills/editing/SKILL.md`
- [Studio setup](https://github.com/melvynx/video-agent-skills/blob/main/skills/studio-setup/SKILL.md): `skills/studio-setup/SKILL.md`

### Research and scripting

- [Script writing](https://github.com/melvynx/video-agent-skills/blob/main/skills/studio-script/SKILL.md): `skills/studio-script/SKILL.md`
- [Outlier discovery](https://github.com/melvynx/video-agent-skills/blob/main/skills/outliers/SKILL.md): `skills/outliers/SKILL.md`
- [Instagram audit](https://github.com/melvynx/video-agent-skills/blob/main/skills/insta-audit/SKILL.md): `skills/insta-audit/SKILL.md`

### Video production

- [Short editing](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/SKILL.md): `skills/short-editing/SKILL.md`
- [Render CLI](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/short.mjs): `skills/short-editing/engine/short.mjs`
- [Timeline mapping](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/timeline.js): `skills/short-editing/engine/lib/timeline.js`
- [Frame rendering](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/runtime.js): `skills/short-editing/engine/lib/runtime.js`
- [Scene library](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes.js): `skills/short-editing/engine/lib/scenes.js`
- [Story scenes](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes-story.js): `skills/short-editing/engine/lib/scenes-story.js`
- [Life scenes](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/scenes-life.js): `skills/short-editing/engine/lib/scenes-life.js`
- [Drawing primitives](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/kit.js): `skills/short-editing/engine/lib/kit.js`
- [Audio mixing](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/audio.mjs): `skills/short-editing/engine/audio.mjs`
- [Audio DSP](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/dsp.js): `skills/short-editing/engine/lib/dsp.js`
- [Music styles](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/lib/chill-styles.js): `skills/short-editing/engine/lib/chill-styles.js`
- [Local transcription](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/whisper.mjs): `skills/short-editing/engine/whisper.mjs`
- [Local toolchain](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-editing/engine/platform.mjs): `skills/short-editing/engine/platform.mjs`

### Creative extensions

- [Long video clips](https://github.com/melvynx/video-agent-skills/blob/main/skills/clips/SKILL.md): `skills/clips/SKILL.md`
- [B-roll library](https://github.com/melvynx/video-agent-skills/blob/main/skills/broll/SKILL.md): `skills/broll/SKILL.md`
- [Style imitation](https://github.com/melvynx/video-agent-skills/blob/main/skills/steal/SKILL.md): `skills/steal/SKILL.md`
- [Voice translation](https://github.com/melvynx/video-agent-skills/blob/main/skills/short-translate/SKILL.md): `skills/short-translate/SKILL.md`
- [Photo animation](https://github.com/melvynx/video-agent-skills/blob/main/skills/vox/SKILL.md): `skills/vox/SKILL.md`
- [Image generation](https://github.com/melvynx/video-agent-skills/blob/main/skills/codex-images/SKILL.md): `skills/codex-images/SKILL.md`

### Publishing and analysis

- [Video publishing](https://github.com/melvynx/video-agent-skills/blob/main/skills/publish/SKILL.md): `skills/publish/SKILL.md`

### Other components

- **Creator**
- **Treg service**
- **Finished video**

## Connections

- Creator → Skill router: requests work (evidence: `README.md`)
- Skill router → Studio setup: routes setup (evidence: `README.md`)
- Skill router → Script writing: routes scripting (evidence: `README.md`)
- Skill router → Short editing: routes editing (evidence: `README.md`)
- Skill router → Video publishing: routes publishing (evidence: `README.md`)
- Creator → Studio setup: prepares studio (evidence: `README.md`)
- Studio setup → Short editing: configures studio (evidence: `README.md`)
- Script writing → Creator: provides scripts (evidence: `README.md`)
- Outlier discovery → Script writing: informs remakes (evidence: `README.md`)
- Instagram audit → Treg service: audits through (evidence: `README.md`)
- Short editing → Render CLI: runs engine (evidence: `README.md`)
- Render CLI → Timeline mapping: maps timing (evidence: `skills/short-editing/engine/short.mjs`)
- Render CLI → Frame rendering: renders frames (evidence: `skills/short-editing/engine/short.mjs`)
- Frame rendering → Scene library: draws scenes (evidence: `skills/short-editing/engine/lib/runtime.js`)
- Scene library → Story scenes: registers scenes (evidence: `skills/short-editing/engine/lib/scenes.js`)
- Scene library → Life scenes: registers scenes (evidence: `skills/short-editing/engine/lib/scenes.js`)
- Scene library → Drawing primitives: uses primitives (evidence: `skills/short-editing/engine/lib/scenes.js`)
- Render CLI → Audio mixing: mixes audio (evidence: `skills/short-editing/engine/short.mjs`)
- Audio mixing → Audio DSP: measures levels (evidence: `skills/short-editing/engine/audio.mjs`)
- Audio mixing → Music styles: builds music
- Render CLI → Local transcription: gets word timing (evidence: `skills/short-editing/engine/short.mjs`)
- Render CLI → Local toolchain: locates tools (evidence: `skills/short-editing/engine/short.mjs`)
- Short editing → Finished video: exports video (evidence: `README.md`)
- Long video clips → Short editing: edits selections (evidence: `README.md`)
- B-roll library → Short editing: adds footage (evidence: `README.md`)
- Style imitation → Short editing: tests style (evidence: `README.md`)
- Voice translation → Short editing: edits translation (evidence: `README.md`)
- Photo animation → Finished video: renders animation (evidence: `README.md`)
- Image generation → Creator: provides images (evidence: `README.md`)
- Creator → Video publishing: approves release (evidence: `README.md`)
- Video publishing → Treg service: publishes through (evidence: `README.md`)
- Video publishing → Finished video: prepares post kit (evidence: `README.md`)
