# blotato/contentskills architecture

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

- Interactive diagram: https://gitdiagram.com/blotato/contentskills
- Repository: https://github.com/blotato/contentskills

## Overview

ContentSkills is a local, AI-agent-assisted short-video creation and editing toolkit. The principal workflow runs from a user-requested edit or faceless-video project through storyboard approval, footage/timeline preparation, and rendering, then into browser review and revision. Its library supplies themes, effects, transitions, captions, and visual components. The README also describes script writing, social posting, weekly planning, and DM automations; those broader capabilities are not fully represented by the supplied source tree. Some pipeline connections are based on the SOURCE INDEX rather than inspected implementation excerpts.

Main entry points: [`pipeline/combine.mjs`](https://github.com/blotato/contentskills/blob/main/pipeline/combine.mjs) (Video combiner), [`dashboard/serve.mjs`](https://github.com/blotato/contentskills/blob/main/dashboard/serve.mjs) (Dashboard server), [`pipeline/draft/footage.js`](https://github.com/blotato/contentskills/blob/main/pipeline/draft/footage.js) (Footage drafting), [`pipeline/review.mjs`](https://github.com/blotato/contentskills/blob/main/pipeline/review.mjs) (Review commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Creation workflow"]
  node_storyboard["Storyboard authoring<br/>[storyboard.js]"]
  node_footage["Footage drafting<br/>[footage.js]"]
  node_player["Draft player<br/>[player.js]"]
  node_social["Social publishing"]
end

subgraph group_render["Render pipeline"]
  node_timeline["Timeline model<br/>[timeline.js]"]
  node_sections["Video sections<br/>[sections.js]"]
  node_combine["Video combiner<br/>[combine.mjs]"]
  node_check["Project validation<br/>[check.mjs]"]
end

subgraph group_library["Visual library"]
  node_effects["Effects engine<br/>[effects_engine.py]"]
  node_lighting["Lighting effects<br/>[lighting.py]"]
  node_transitions["Shader transitions"]
  node_signature["Signature effects<br/>[signature.py]"]
  node_theme["Theme assets"]
  node_style["Style resolution<br/>[style.js]"]
  node_loader["Theme loader<br/>[loader.js]"]
  node_captions["Caption styles<br/>[captions.js]"]
end

subgraph group_review["Review dashboard"]
  node_dashboard["Dashboard server<br/>[serve.mjs]"]
  node_dashboardui["Dashboard UI<br/>[app.js]"]
  node_reviewpage["Review page<br/>[review.js]"]
  node_reviewcmd["Review commands<br/>[review.mjs]"]
  node_reviewstore[("Review marks<br/>[review-store.mjs]")]
  node_creatorvideos["My videos view<br/>[my-videos.js]"]
end

subgraph group_aux["Audio and styling"]
  node_sfx["Sound generation<br/>[generate.py]"]
  node_presenter["Presenter generation<br/>[generate.mjs]"]
end

node_user(("Creator / agent"))
node_socialservice{{"Social platforms"}}

node_user -->|"requests video"| node_storyboard
node_storyboard -.->|"prepares footage"| node_footage
node_footage -->|"loads theme"| node_loader
node_footage -->|"resolves style"| node_style
node_footage -->|"reads stats"| node_timeline
node_player -->|"uses footage"| node_footage
node_combine -->|"reads timeline"| node_timeline
node_combine -->|"reads sections"| node_sections
node_combine -->|"validates project"| node_check
node_combine -->|"loads themes"| node_theme
node_combine -.->|"applies effects"| node_effects
node_combine -.->|"renders transitions"| node_transitions
node_effects -->|"registers lights"| node_lighting
node_signature -->|"uses lighting"| node_lighting
node_footage -.->|"renders captions"| node_captions
node_user -.->|"requests audio"| node_sfx
node_user -.->|"requests presenter"| node_presenter
node_user -->|"opens dashboard"| node_dashboard
node_dashboard -->|"reads review data"| node_reviewstore
node_dashboard -.->|"serves videos"| node_creatorvideos
node_dashboard -.->|"serves review UI"| node_reviewpage
node_user -->|"updates review"| node_reviewcmd
node_reviewcmd -->|"reads sections"| node_check
node_reviewcmd -->|"builds lanes"| node_sections
node_reviewcmd -->|"writes marks"| node_reviewstore
node_dashboard -->|"checks projects"| node_check
node_dashboard -.->|"supports posting"| node_social
node_social -.->|"publishes video"| node_socialservice

click node_storyboard "https://github.com/blotato/contentskills/blob/main/pipeline/storyboard/storyboard.js"
click node_footage "https://github.com/blotato/contentskills/blob/main/pipeline/draft/footage.js"
click node_player "https://github.com/blotato/contentskills/blob/main/pipeline/draft/player.js"
click node_timeline "https://github.com/blotato/contentskills/blob/main/pipeline/timeline.js"
click node_sections "https://github.com/blotato/contentskills/blob/main/pipeline/sections.js"
click node_combine "https://github.com/blotato/contentskills/blob/main/pipeline/combine.mjs"
click node_check "https://github.com/blotato/contentskills/blob/main/pipeline/check.mjs"
click node_effects "https://github.com/blotato/contentskills/blob/main/library/_shared/effects_engine.py"
click node_lighting "https://github.com/blotato/contentskills/blob/main/library/_shared/lighting.py"
click node_transitions "https://github.com/blotato/contentskills/blob/main/library/_shared/shader_transitions.py"
click node_signature "https://github.com/blotato/contentskills/blob/main/library/_shared/signature.py"
click node_theme "https://github.com/blotato/contentskills/tree/main/library/themes"
click node_style "https://github.com/blotato/contentskills/blob/main/library/_shared/style.js"
click node_loader "https://github.com/blotato/contentskills/blob/main/library/_shared/loader.js"
click node_captions "https://github.com/blotato/contentskills/blob/main/library/_shared/captions.js"
click node_sfx "https://github.com/blotato/contentskills/blob/main/library/_shared/sfx/generate.py"
click node_presenter "https://github.com/blotato/contentskills/blob/main/library/_shared/presenters/generate.mjs"
click node_dashboard "https://github.com/blotato/contentskills/blob/main/dashboard/serve.mjs"
click node_dashboardui "https://github.com/blotato/contentskills/blob/main/dashboard/app.js"
click node_reviewpage "https://github.com/blotato/contentskills/blob/main/pipeline/review/review.js"
click node_reviewcmd "https://github.com/blotato/contentskills/blob/main/pipeline/review.mjs"
click node_reviewstore "https://github.com/blotato/contentskills/blob/main/pipeline/review-store.mjs"
click node_creatorvideos "https://github.com/blotato/contentskills/blob/main/dashboard/my-videos.js"

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_storyboard,node_footage,node_player,node_social toneBlue
class node_timeline,node_sections,node_combine,node_check toneAmber
class node_effects,node_lighting,node_transitions,node_signature,node_theme,node_style,node_loader,node_captions toneMint
class node_dashboard,node_dashboardui,node_reviewpage,node_reviewcmd,node_reviewstore,node_creatorvideos toneRose
class node_sfx,node_presenter,node_user,node_socialservice toneIndigo
```

## Components

### Creation workflow

- [Storyboard authoring](https://github.com/blotato/contentskills/blob/main/pipeline/storyboard/storyboard.js): `pipeline/storyboard/storyboard.js`
- [Footage drafting](https://github.com/blotato/contentskills/blob/main/pipeline/draft/footage.js): `pipeline/draft/footage.js`
- [Draft player](https://github.com/blotato/contentskills/blob/main/pipeline/draft/player.js): `pipeline/draft/player.js`
- **Social publishing**

### Render pipeline

- [Timeline model](https://github.com/blotato/contentskills/blob/main/pipeline/timeline.js): `pipeline/timeline.js`
- [Video sections](https://github.com/blotato/contentskills/blob/main/pipeline/sections.js): `pipeline/sections.js`
- [Video combiner](https://github.com/blotato/contentskills/blob/main/pipeline/combine.mjs): `pipeline/combine.mjs`
- [Project validation](https://github.com/blotato/contentskills/blob/main/pipeline/check.mjs): `pipeline/check.mjs`

### Visual library

- [Effects engine](https://github.com/blotato/contentskills/blob/main/library/_shared/effects_engine.py): `library/_shared/effects_engine.py`
- [Lighting effects](https://github.com/blotato/contentskills/blob/main/library/_shared/lighting.py): `library/_shared/lighting.py`
- [Shader transitions](https://github.com/blotato/contentskills/blob/main/library/_shared/shader_transitions.py): `library/_shared/shader_transitions.py`
- [Signature effects](https://github.com/blotato/contentskills/blob/main/library/_shared/signature.py): `library/_shared/signature.py`
- [Theme assets](https://github.com/blotato/contentskills/tree/main/library/themes): `library/themes`
- [Style resolution](https://github.com/blotato/contentskills/blob/main/library/_shared/style.js): `library/_shared/style.js`
- [Theme loader](https://github.com/blotato/contentskills/blob/main/library/_shared/loader.js): `library/_shared/loader.js`
- [Caption styles](https://github.com/blotato/contentskills/blob/main/library/_shared/captions.js): `library/_shared/captions.js`

### Review dashboard

- [Dashboard server](https://github.com/blotato/contentskills/blob/main/dashboard/serve.mjs): `dashboard/serve.mjs`
- [Dashboard UI](https://github.com/blotato/contentskills/blob/main/dashboard/app.js): `dashboard/app.js`
- [Review page](https://github.com/blotato/contentskills/blob/main/pipeline/review/review.js): `pipeline/review/review.js`
- [Review commands](https://github.com/blotato/contentskills/blob/main/pipeline/review.mjs): `pipeline/review.mjs`
- [Review marks](https://github.com/blotato/contentskills/blob/main/pipeline/review-store.mjs): `pipeline/review-store.mjs`
- [My videos view](https://github.com/blotato/contentskills/blob/main/dashboard/my-videos.js): `dashboard/my-videos.js`

### Audio and styling

- [Sound generation](https://github.com/blotato/contentskills/blob/main/library/_shared/sfx/generate.py): `library/_shared/sfx/generate.py`
- [Presenter generation](https://github.com/blotato/contentskills/blob/main/library/_shared/presenters/generate.mjs): `library/_shared/presenters/generate.mjs`

### Other components

- **Creator / agent**
- **Social platforms**

## Connections

- Creator / agent → Storyboard authoring: requests video (evidence: `README.md`)
- Storyboard authoring → Footage drafting: prepares footage
- Footage drafting → Theme loader: loads theme (evidence: `pipeline/draft/footage.js`)
- Footage drafting → Style resolution: resolves style (evidence: `pipeline/draft/footage.js`)
- Footage drafting → Timeline model: reads stats (evidence: `pipeline/draft/footage.js`)
- Draft player → Footage drafting: uses footage (evidence: `pipeline/draft/player.js`)
- Video combiner → Timeline model: reads timeline (evidence: `pipeline/combine.mjs`)
- Video combiner → Video sections: reads sections (evidence: `pipeline/combine.mjs`)
- Video combiner → Project validation: validates project (evidence: `pipeline/combine.mjs`)
- Video combiner → Theme assets: loads themes (evidence: `pipeline/combine.mjs`)
- Video combiner → Effects engine: applies effects
- Video combiner → Shader transitions: renders transitions
- Effects engine → Lighting effects: registers lights (evidence: `library/_shared/effects_engine.py`)
- Signature effects → Lighting effects: uses lighting (evidence: `library/_shared/signature.py`)
- Footage drafting → Caption styles: renders captions
- Creator / agent → Sound generation: requests audio
- Creator / agent → Presenter generation: requests presenter
- Creator / agent → Dashboard server: opens dashboard (evidence: `README.md`)
- Dashboard server → Review marks: reads review data (evidence: `dashboard/serve.mjs`)
- Dashboard server → My videos view: serves videos
- Dashboard server → Review page: serves review UI
- Creator / agent → Review commands: updates review (evidence: `pipeline/review.mjs`)
- Review commands → Project validation: reads sections (evidence: `pipeline/review.mjs`)
- Review commands → Video sections: builds lanes (evidence: `pipeline/review.mjs`)
- Review commands → Review marks: writes marks (evidence: `pipeline/review.mjs`)
- Dashboard server → Project validation: checks projects (evidence: `dashboard/serve.mjs`)
- Dashboard server → Social publishing: supports posting
- Social publishing → Social platforms: publishes video
