# whaleyxbt/claude-motion architecture

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

- Interactive diagram: https://gitdiagram.com/whaleyxbt/claude-motion
- Repository: https://github.com/whaleyxbt/claude-motion

## Overview

claude-motion is an agent-oriented toolkit for producing motion graphics and time-based web simulations, with sound generation and frame-based review. The main motion workflow runs from an idea through a shared timeline, animated scenes, sound, review, and a final video; the separate simulation workflow builds a deterministic web page and captures frames. README statements establish the documented workflows and capabilities; source excerpts and the index support the implementation links shown. Unsampled subsystems are represented only where the README documents them.

Main entry points: [`src/EffortVideo.tsx`](https://github.com/whaleyxbt/claude-motion/blob/main/src/EffortVideo.tsx) (Effort composition), [`sims/kit/runtime.js`](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/runtime.js) (Simulation runtime), [`sims/engine/main.js`](https://github.com/whaleyxbt/claude-motion/blob/main/sims/engine/main.js) (Engine simulation), [`sims/crawlers/main.js`](https://github.com/whaleyxbt/claude-motion/blob/main/sims/crawlers/main.js) (Crawler simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Agent guidance"]
  node_motion_skill["Motion rules<br/>[SKILL.md]"]
  node_review_skill["Review loop<br/>[SKILL.md]"]
  node_sound_skill["Sound guidance<br/>[SKILL.md]"]
  node_sim_skill["Sim guidance<br/>[SKILL.md]"]
end

subgraph group_motion["Motion graphics"]
  node_timeline["Shared timeline<br/>[timeline.json]"]
  node_video["Effort composition<br/>[EffortVideo.tsx]"]
  node_article["Article cover<br/>[ArticleCover.tsx]"]
  node_motion_lib["Motion primitives<br/>[lib.ts]"]
  node_background["Animated background<br/>[Background.tsx]"]
  node_components["Reusable visuals<br/>[primitives.tsx]"]
  node_config_mockup["Config mockup<br/>[ConfigMockup.tsx]"]
  node_effort_slider["Effort slider<br/>[EffortSlider.tsx]"]
  node_prompt_bar["Prompt bar<br/>[PromptBar.tsx]"]
  node_sanitizer["Sanitizer scene<br/>[Sanitizer.tsx]"]
  node_finale["Finale scene<br/>[Finale.tsx]"]
  node_fonts["Font readiness<br/>[useFonts.ts]"]
end

subgraph group_sound["Sound engine"]
  node_cue_sheet["Example cue sheet<br/>[effort.py]"]
  node_generators["Sound generators<br/>[synth.py]"]
  node_dsp["DSP building blocks<br/>[dsp.py]"]
  node_mixer["Timeline mixer<br/>[mix.py]"]
  node_mastering["Loudness mastering<br/>[loudness.py]"]
  node_beats["Beat analysis<br/>[beats.py]"]
end

subgraph group_sims["Web simulations"]
  node_crawler["Crawler simulation<br/>[main.js]"]
  node_crawler_sites["Crawler site data<br/>[sites.js]"]
  node_dossier["Dossier simulation<br/>[main.js]"]
  node_dossier_sites["Dossier site data<br/>[sites.js]"]
  node_engine["Engine simulation<br/>[main.js]"]
  node_engine_sound["Engine sound<br/>[sound.py]"]
  node_sim_runtime["Simulation runtime<br/>[runtime.js]"]
  node_director["Sim director<br/>[director.js]"]
  node_hud["Simulation HUD<br/>[hud.js]"]
  node_sim_utils["Simulation utilities<br/>[util.js]"]
  node_stage3d["3D stage<br/>[stage3d.js]"]
end

subgraph group_review["Review and capture"]
end

node_creator(("Video creator"))

node_creator -->|"uses guidance"| node_motion_skill
node_creator -->|"uses guidance"| node_review_skill
node_creator -->|"uses guidance"| node_sound_skill
node_creator -->|"uses guidance"| node_sim_skill
node_creator -->|"defines beats"| node_timeline
node_timeline -->|"times scenes"| node_video
node_video -->|"uses timing"| node_motion_lib
node_video -->|"renders"| node_background
node_video -->|"renders"| node_components
node_video -->|"renders"| node_config_mockup
node_video -->|"renders"| node_effort_slider
node_video -->|"renders"| node_prompt_bar
node_video -->|"renders"| node_sanitizer
node_video -->|"renders"| node_finale
node_video -->|"loads fonts"| node_fonts
node_creator -->|"creates cover"| node_article
node_creator -->|"writes cues"| node_cue_sheet
node_cue_sheet -->|"calls generators"| node_generators
node_cue_sheet -->|"places sounds"| node_mixer
node_generators -->|"uses DSP"| node_dsp
node_mixer -->|"uses generators"| node_generators
node_mixer -->|"masters mix"| node_mastering
node_timeline -->|"times sound"| node_cue_sheet
node_creator -->|"analyzes track"| node_beats
node_creator -->|"creates sim"| node_crawler
node_creator -->|"creates sim"| node_dossier
node_creator -->|"creates sim"| node_engine
node_crawler -->|"boots with"| node_sim_runtime
node_crawler -->|"uses site data"| node_crawler_sites
node_dossier -->|"boots with"| node_sim_runtime
node_dossier -->|"uses site data"| node_dossier_sites
node_engine -->|"boots with"| node_sim_runtime
node_engine -->|"creates stage"| node_stage3d
node_crawler -->|"uses helpers"| node_sim_utils
node_dossier -->|"uses helpers"| node_sim_utils
node_engine -->|"uses helpers"| node_sim_utils
node_sim_runtime -->|"creates director"| node_director
node_sim_runtime -->|"creates HUD"| node_hud
node_sim_runtime -->|"merges config"| node_sim_utils
node_engine -.->|"pairs with sound"| node_engine_sound
node_engine_sound -->|"uses DSP"| node_dsp
node_creator -->|"reviews frames"| node_review_skill
node_creator -.->|"requests capture"| node_timeline

click node_motion_skill "https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/motion-design/SKILL.md"
click node_review_skill "https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/review-loop/SKILL.md"
click node_sound_skill "https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/sound-design/SKILL.md"
click node_sim_skill "https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/web-sims/SKILL.md"
click node_timeline "https://github.com/whaleyxbt/claude-motion/blob/main/timeline.json"
click node_video "https://github.com/whaleyxbt/claude-motion/blob/main/src/EffortVideo.tsx"
click node_article "https://github.com/whaleyxbt/claude-motion/blob/main/src/ArticleCover.tsx"
click node_motion_lib "https://github.com/whaleyxbt/claude-motion/blob/main/src/lib.ts"
click node_background "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/Background.tsx"
click node_components "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/primitives.tsx"
click node_config_mockup "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/ConfigMockup.tsx"
click node_effort_slider "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/EffortSlider.tsx"
click node_prompt_bar "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/PromptBar.tsx"
click node_sanitizer "https://github.com/whaleyxbt/claude-motion/blob/main/src/scenes/Sanitizer.tsx"
click node_finale "https://github.com/whaleyxbt/claude-motion/blob/main/src/scenes/Finale.tsx"
click node_fonts "https://github.com/whaleyxbt/claude-motion/blob/main/src/components/useFonts.ts"
click node_cue_sheet "https://github.com/whaleyxbt/claude-motion/blob/main/sfx/cues/effort.py"
click node_generators "https://github.com/whaleyxbt/claude-motion/blob/main/sfx/synth.py"
click node_dsp "https://github.com/whaleyxbt/claude-motion/blob/main/sfx/dsp.py"
click node_mixer "https://github.com/whaleyxbt/claude-motion/blob/main/sfx/mix.py"
click node_mastering "https://github.com/whaleyxbt/claude-motion/blob/main/sfx/loudness.py"
click node_beats "https://github.com/whaleyxbt/claude-motion/blob/main/sims/beats.py"
click node_crawler "https://github.com/whaleyxbt/claude-motion/blob/main/sims/crawlers/main.js"
click node_crawler_sites "https://github.com/whaleyxbt/claude-motion/blob/main/sims/crawlers/sites.js"
click node_dossier "https://github.com/whaleyxbt/claude-motion/blob/main/sims/dossier/main.js"
click node_dossier_sites "https://github.com/whaleyxbt/claude-motion/blob/main/sims/dossier/sites.js"
click node_engine "https://github.com/whaleyxbt/claude-motion/blob/main/sims/engine/main.js"
click node_engine_sound "https://github.com/whaleyxbt/claude-motion/blob/main/sims/engine/sound.py"
click node_sim_runtime "https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/runtime.js"
click node_director "https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/director.js"
click node_hud "https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/hud.js"
click node_sim_utils "https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/util.js"
click node_stage3d "https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/stage3d.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_motion_skill,node_review_skill,node_sound_skill,node_sim_skill toneBlue
class node_timeline,node_video,node_article,node_motion_lib,node_background,node_components,node_config_mockup,node_effort_slider,node_prompt_bar,node_sanitizer,node_finale,node_fonts toneAmber
class node_cue_sheet,node_generators,node_dsp,node_mixer,node_mastering,node_beats toneMint
class node_crawler,node_crawler_sites,node_dossier,node_dossier_sites,node_engine,node_engine_sound,node_sim_runtime,node_director,node_hud,node_sim_utils,node_stage3d toneRose
class node_creator toneIndigo
```

## Components

### Agent guidance

- [Motion rules](https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/motion-design/SKILL.md): `.claude/skills/motion-design/SKILL.md`
- [Review loop](https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/review-loop/SKILL.md): `.claude/skills/review-loop/SKILL.md`
- [Sound guidance](https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/sound-design/SKILL.md): `.claude/skills/sound-design/SKILL.md`
- [Sim guidance](https://github.com/whaleyxbt/claude-motion/blob/main/.claude/skills/web-sims/SKILL.md): `.claude/skills/web-sims/SKILL.md`

### Motion graphics

- [Shared timeline](https://github.com/whaleyxbt/claude-motion/blob/main/timeline.json): `timeline.json`
- [Effort composition](https://github.com/whaleyxbt/claude-motion/blob/main/src/EffortVideo.tsx): `src/EffortVideo.tsx`
- [Article cover](https://github.com/whaleyxbt/claude-motion/blob/main/src/ArticleCover.tsx): `src/ArticleCover.tsx`
- [Motion primitives](https://github.com/whaleyxbt/claude-motion/blob/main/src/lib.ts): `src/lib.ts`
- [Animated background](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/Background.tsx): `src/components/Background.tsx`
- [Reusable visuals](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/primitives.tsx): `src/components/primitives.tsx`
- [Config mockup](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/ConfigMockup.tsx): `src/components/ConfigMockup.tsx`
- [Effort slider](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/EffortSlider.tsx): `src/components/EffortSlider.tsx`
- [Prompt bar](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/PromptBar.tsx): `src/components/PromptBar.tsx`
- [Sanitizer scene](https://github.com/whaleyxbt/claude-motion/blob/main/src/scenes/Sanitizer.tsx): `src/scenes/Sanitizer.tsx`
- [Finale scene](https://github.com/whaleyxbt/claude-motion/blob/main/src/scenes/Finale.tsx): `src/scenes/Finale.tsx`
- [Font readiness](https://github.com/whaleyxbt/claude-motion/blob/main/src/components/useFonts.ts): `src/components/useFonts.ts`

### Sound engine

- [Example cue sheet](https://github.com/whaleyxbt/claude-motion/blob/main/sfx/cues/effort.py): `sfx/cues/effort.py`
- [Sound generators](https://github.com/whaleyxbt/claude-motion/blob/main/sfx/synth.py): `sfx/synth.py`
- [DSP building blocks](https://github.com/whaleyxbt/claude-motion/blob/main/sfx/dsp.py): `sfx/dsp.py`
- [Timeline mixer](https://github.com/whaleyxbt/claude-motion/blob/main/sfx/mix.py): `sfx/mix.py`
- [Loudness mastering](https://github.com/whaleyxbt/claude-motion/blob/main/sfx/loudness.py): `sfx/loudness.py`
- [Beat analysis](https://github.com/whaleyxbt/claude-motion/blob/main/sims/beats.py): `sims/beats.py`

### Web simulations

- [Crawler simulation](https://github.com/whaleyxbt/claude-motion/blob/main/sims/crawlers/main.js): `sims/crawlers/main.js`
- [Crawler site data](https://github.com/whaleyxbt/claude-motion/blob/main/sims/crawlers/sites.js): `sims/crawlers/sites.js`
- [Dossier simulation](https://github.com/whaleyxbt/claude-motion/blob/main/sims/dossier/main.js): `sims/dossier/main.js`
- [Dossier site data](https://github.com/whaleyxbt/claude-motion/blob/main/sims/dossier/sites.js): `sims/dossier/sites.js`
- [Engine simulation](https://github.com/whaleyxbt/claude-motion/blob/main/sims/engine/main.js): `sims/engine/main.js`
- [Engine sound](https://github.com/whaleyxbt/claude-motion/blob/main/sims/engine/sound.py): `sims/engine/sound.py`
- [Simulation runtime](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/runtime.js): `sims/kit/runtime.js`
- [Sim director](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/director.js): `sims/kit/director.js`
- [Simulation HUD](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/hud.js): `sims/kit/hud.js`
- [Simulation utilities](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/util.js): `sims/kit/util.js`
- [3D stage](https://github.com/whaleyxbt/claude-motion/blob/main/sims/kit/stage3d.js): `sims/kit/stage3d.js`

### Other components

- **Video creator**

## Connections

- Video creator → Motion rules: uses guidance (evidence: `README.md`)
- Video creator → Review loop: uses guidance (evidence: `README.md`)
- Video creator → Sound guidance: uses guidance (evidence: `README.md`)
- Video creator → Sim guidance: uses guidance (evidence: `README.md`)
- Video creator → Shared timeline: defines beats (evidence: `README.md`)
- Shared timeline → Effort composition: times scenes (evidence: `README.md`)
- Effort composition → Motion primitives: uses timing (evidence: `src/EffortVideo.tsx`)
- Effort composition → Animated background: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Reusable visuals: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Config mockup: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Effort slider: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Prompt bar: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Sanitizer scene: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Finale scene: renders (evidence: `src/EffortVideo.tsx`)
- Effort composition → Font readiness: loads fonts (evidence: `src/EffortVideo.tsx`)
- Video creator → Article cover: creates cover (evidence: `README.md`)
- Video creator → Example cue sheet: writes cues (evidence: `README.md`)
- Example cue sheet → Sound generators: calls generators (evidence: `sfx/cues/effort.py`)
- Example cue sheet → Timeline mixer: places sounds (evidence: `README.md`)
- Sound generators → DSP building blocks: uses DSP (evidence: `sfx/synth.py`)
- Timeline mixer → Sound generators: uses generators (evidence: `sfx/mix.py`)
- Timeline mixer → Loudness mastering: masters mix (evidence: `sfx/mix.py`)
- Shared timeline → Example cue sheet: times sound (evidence: `README.md`)
- Video creator → Beat analysis: analyzes track (evidence: `README.md`)
- Video creator → Crawler simulation: creates sim (evidence: `README.md`)
- Video creator → Dossier simulation: creates sim (evidence: `README.md`)
- Video creator → Engine simulation: creates sim (evidence: `README.md`)
- Crawler simulation → Simulation runtime: boots with (evidence: `sims/crawlers/main.js`)
- Crawler simulation → Crawler site data: uses site data (evidence: `sims/crawlers/main.js`)
- Dossier simulation → Simulation runtime: boots with (evidence: `sims/dossier/main.js`)
- Dossier simulation → Dossier site data: uses site data (evidence: `sims/dossier/main.js`)
- Engine simulation → Simulation runtime: boots with (evidence: `sims/engine/main.js`)
- Engine simulation → 3D stage: creates stage (evidence: `sims/engine/main.js`)
- Crawler simulation → Simulation utilities: uses helpers (evidence: `sims/crawlers/main.js`)
- Dossier simulation → Simulation utilities: uses helpers (evidence: `sims/dossier/main.js`)
- Engine simulation → Simulation utilities: uses helpers (evidence: `sims/engine/main.js`)
- Simulation runtime → Sim director: creates director (evidence: `sims/kit/runtime.js`)
- Simulation runtime → Simulation HUD: creates HUD (evidence: `sims/kit/runtime.js`)
- Simulation runtime → Simulation utilities: merges config (evidence: `sims/kit/runtime.js`)
- Engine simulation → Engine sound: pairs with sound (evidence: `README.md`)
- Engine sound → DSP building blocks: uses DSP (evidence: `sims/engine/sound.py`)
- Video creator → Review loop: reviews frames (evidence: `README.md`)
- Video creator → Shared timeline: requests capture
