# cth9191/animate architecture

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

- Interactive diagram: https://gitdiagram.com/cth9191/animate
- Repository: https://github.com/cth9191/animate

## Overview

Animate is a Claude Code skill for creating deterministic, code-drawn short videos. Its user workflow moves from intake and story approval through style/storyboard approval, building and rendering, then measured review and revision. The graph preserves the documented story, style, audio, product-capture, and multi-format capabilities. Source excerpts confirm export/review integrations; most tool-to-tool links below are based on the README, not unsampled implementations.

Main entry points: [`plugins/animate/skills/animate/tools/build.mjs`](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/build.mjs) (HTML builder), [`plugins/animate/skills/animate/tools/export.mjs`](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/export.mjs) (Video export), [`plugins/animate/skills/animate/tools/review.mjs`](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/review.mjs) (Video review), [`plugins/animate/skills/animate/templates/piece/src`](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/templates/piece/src) (Scene and score)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Creative workflow"]
  node_skill["Animate skill<br/>[SKILL.md]"]
  node_intake["Intake<br/>[intake.md]"]
end

subgraph group_authoring["Piece authoring"]
  node_grammar["Story grammar"]
  node_piece["Piece definition"]
  node_scenes["Scene and score"]
end

subgraph group_rendering["Rendering engine"]
  node_renderer["Canvas renderer<br/>[core.js]"]
  node_morph["Morph transitions<br/>[morph.js]"]
  node_board["Storyboard<br/>[board.js]"]
  node_score["Procedural audio<br/>[score-head.js]"]
end

subgraph group_production["Production tools"]
  node_build["HTML builder<br/>[build.mjs]"]
  node_beats["Music beat mapping<br/>[beats.mjs]"]
  node_voice["Voice-over<br/>[voice.mjs]"]
  node_capture["Product capture<br/>[capture.mjs]"]
  node_measure["Reference measurement<br/>[refs.mjs]"]
  node_compare["Style comparison<br/>[compare.mjs]"]
  node_export["Video export<br/>[export.mjs]"]
  node_gpu["GPU check<br/>[gpu.mjs]"]
  node_review["Video review<br/>[review.mjs]"]
  node_textcheck["Text checks<br/>[textcheck.mjs]"]
end

subgraph group_looks["Style systems"]
  node_styleguide["Style rules"]
  node_stylekits["Style drawing kits"]
end

node_creator(("Creator"))
node_ffmpeg["ffmpeg"]
node_browser["Headless browser"]

node_creator -->|"requests animation"| node_skill
node_skill -->|"starts with"| node_intake
node_intake -->|"shapes story"| node_grammar
node_intake -->|"selects look"| node_styleguide
node_skill -->|"creates piece"| node_piece
node_piece -->|"defines scenes"| node_scenes
node_scenes -->|"supplies beats"| node_board
node_scenes -->|"defines score"| node_score
node_styleguide -->|"specifies look"| node_stylekits
node_piece -->|"builds from"| node_build
node_build -->|"assembles runtime"| node_renderer
node_build -->|"includes transitions"| node_morph
node_build -->|"includes drawing kit"| node_stylekits
node_renderer -->|"draws through hooks"| node_stylekits
node_creator -->|"provides music"| node_beats
node_creator -.->|"provides narration"| node_voice
node_creator -->|"provides product"| node_capture
node_creator -->|"provides references"| node_measure
node_measure -->|"measures look"| node_compare
node_compare -->|"shows comparisons"| node_creator
node_beats -->|"guides cuts"| node_scenes
node_voice -->|"times picture"| node_scenes
node_capture -->|"supplies screens"| node_piece
node_build -->|"prepares for"| node_export
node_export -->|"renders frames"| node_browser
node_export -->|"checks GPU"| node_gpu
node_export -->|"muxes video"| node_ffmpeg
node_export -->|"hands off render"| node_review
node_review -->|"runs text checks"| node_textcheck
node_review -->|"inspects frames"| node_browser
node_review -->|"reads video frames"| node_ffmpeg
node_review -->|"returns findings"| node_creator

click node_skill "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/SKILL.md"
click node_intake "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/intake.md"
click node_grammar "https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/grammar"
click node_piece "https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/templates/piece"
click node_scenes "https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/templates/piece/src"
click node_styleguide "https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/styles"
click node_stylekits "https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/styles"
click node_build "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/build.mjs"
click node_renderer "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/core.js"
click node_morph "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/morph.js"
click node_board "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/board.js"
click node_score "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/score-head.js"
click node_beats "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/beats.mjs"
click node_voice "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/voice.mjs"
click node_capture "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/capture.mjs"
click node_measure "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/measure/refs.mjs"
click node_compare "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/compare.mjs"
click node_export "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/export.mjs"
click node_gpu "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/gpu.mjs"
click node_review "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/review.mjs"
click node_textcheck "https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/textcheck.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_skill,node_intake,node_browser toneBlue
class node_grammar,node_piece,node_scenes toneAmber
class node_renderer,node_morph,node_board,node_score toneMint
class node_build,node_beats,node_voice,node_capture,node_measure,node_compare,node_export,node_gpu,node_review,node_textcheck toneRose
class node_styleguide,node_stylekits,node_creator,node_ffmpeg toneIndigo
```

## Components

### Creative workflow

- [Animate skill](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/SKILL.md): `plugins/animate/skills/animate/SKILL.md`
- [Intake](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/intake.md): `plugins/animate/skills/animate/intake.md`

### Piece authoring

- [Story grammar](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/grammar): `plugins/animate/skills/animate/grammar`
- [Piece definition](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/templates/piece): `plugins/animate/skills/animate/templates/piece`
- [Scene and score](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/templates/piece/src): `plugins/animate/skills/animate/templates/piece/src`

### Rendering engine

- [Canvas renderer](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/core.js): `plugins/animate/skills/animate/kit/core.js`
- [Morph transitions](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/morph.js): `plugins/animate/skills/animate/kit/morph.js`
- [Storyboard](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/board.js): `plugins/animate/skills/animate/kit/board.js`
- [Procedural audio](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/kit/score-head.js): `plugins/animate/skills/animate/kit/score-head.js`

### Production tools

- [HTML builder](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/build.mjs): `plugins/animate/skills/animate/tools/build.mjs`
- [Music beat mapping](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/beats.mjs): `plugins/animate/skills/animate/tools/beats.mjs`
- [Voice-over](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/voice.mjs): `plugins/animate/skills/animate/tools/voice.mjs`
- [Product capture](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/capture.mjs): `plugins/animate/skills/animate/tools/capture.mjs`
- [Reference measurement](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/measure/refs.mjs): `plugins/animate/skills/animate/tools/measure/refs.mjs`
- [Style comparison](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/compare.mjs): `plugins/animate/skills/animate/tools/compare.mjs`
- [Video export](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/export.mjs): `plugins/animate/skills/animate/tools/export.mjs`
- [GPU check](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/gpu.mjs): `plugins/animate/skills/animate/tools/gpu.mjs`
- [Video review](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/review.mjs): `plugins/animate/skills/animate/tools/review.mjs`
- [Text checks](https://github.com/cth9191/animate/blob/main/plugins/animate/skills/animate/tools/textcheck.mjs): `plugins/animate/skills/animate/tools/textcheck.mjs`

### Style systems

- [Style rules](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/styles): `plugins/animate/skills/animate/styles`
- [Style drawing kits](https://github.com/cth9191/animate/tree/main/plugins/animate/skills/animate/styles): `plugins/animate/skills/animate/styles`

### Other components

- **Creator**
- **ffmpeg**
- **Headless browser**

## Connections

- Creator → Animate skill: requests animation (evidence: `README.md`)
- Animate skill → Intake: starts with (evidence: `README.md`)
- Intake → Story grammar: shapes story (evidence: `README.md`)
- Intake → Style rules: selects look (evidence: `README.md`)
- Animate skill → Piece definition: creates piece (evidence: `README.md`)
- Piece definition → Scene and score: defines scenes (evidence: `README.md`)
- Scene and score → Storyboard: supplies beats (evidence: `README.md`)
- Scene and score → Procedural audio: defines score (evidence: `README.md`)
- Style rules → Style drawing kits: specifies look (evidence: `README.md`)
- Piece definition → HTML builder: builds from (evidence: `README.md`)
- HTML builder → Canvas renderer: assembles runtime (evidence: `README.md`)
- HTML builder → Morph transitions: includes transitions (evidence: `README.md`)
- HTML builder → Style drawing kits: includes drawing kit (evidence: `README.md`)
- Canvas renderer → Style drawing kits: draws through hooks (evidence: `README.md`)
- Creator → Music beat mapping: provides music (evidence: `README.md`)
- Creator → Voice-over: provides narration (evidence: `README.md`)
- Creator → Product capture: provides product (evidence: `README.md`)
- Creator → Reference measurement: provides references (evidence: `README.md`)
- Reference measurement → Style comparison: measures look (evidence: `README.md`)
- Style comparison → Creator: shows comparisons (evidence: `README.md`)
- Music beat mapping → Scene and score: guides cuts (evidence: `README.md`)
- Voice-over → Scene and score: times picture (evidence: `README.md`)
- Product capture → Piece definition: supplies screens (evidence: `README.md`)
- HTML builder → Video export: prepares for (evidence: `README.md`)
- Video export → Headless browser: renders frames (evidence: `plugins/animate/skills/animate/tools/export.mjs`)
- Video export → GPU check: checks GPU (evidence: `plugins/animate/skills/animate/tools/export.mjs`)
- Video export → ffmpeg: muxes video (evidence: `README.md`)
- Video export → Video review: hands off render (evidence: `README.md`)
- Video review → Text checks: runs text checks (evidence: `plugins/animate/skills/animate/tools/review.mjs`)
- Video review → Headless browser: inspects frames (evidence: `plugins/animate/skills/animate/tools/review.mjs`)
- Video review → ffmpeg: reads video frames (evidence: `plugins/animate/skills/animate/tools/review.mjs`)
- Video review → Creator: returns findings (evidence: `README.md`)
