# jackywxsz/jacky-motion architecture

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

- Interactive diagram: https://gitdiagram.com/jackywxsz/jacky-motion
- Repository: https://github.com/jackywxsz/jacky-motion

## Overview

Jacky Motion is an Agent Skill that turns a Chinese voiceover script into a screen-recordable animated HTML artifact. The documented workflow reviews the script, storyboards its information, selects a visual style and beat contract, assembles HTML, then checks visuals and—when applicable—SRT synchronization. The graph preserves both output modes, portrait support, style resources, and validation tools. Workflow stages and capabilities are based on the README; unsampled skill and reference files are represented only at the subsystem level.

Main entry points: [`SKILL.md`](https://github.com/jackywxsz/jacky-motion/blob/main/SKILL.md) (Skill workflow), [`references`](https://github.com/jackywxsz/jacky-motion/tree/main/references) (Beat storyboard), [`styles`](https://github.com/jackywxsz/jacky-motion/tree/main/styles) (Style selection), [`assets/styles`](https://github.com/jackywxsz/jacky-motion/tree/main/assets/styles) (Style themes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Creation workflow"]
  node_skill["Skill workflow<br/>[SKILL.md]"]
  node_review["Script review"]
  node_storyboard["Beat storyboard"]
  node_beatcontract["Beat contract<br/>[beat-contract.md]"]
  node_srtplan["SRT timeline<br/>[srt-production.md]"]
end

subgraph group_design["Visual design"]
  node_styleguide["Style selection"]
  node_stylecss["Style themes"]
  node_sharedrules["Layout and motion rules"]
end

subgraph group_runtime["HTML runtime"]
  node_htmltemplate["Manual HTML template<br/>[base-template.html]"]
  node_portraittemplate["Portrait template"]
  node_srttemplate["Autoplay template"]
  node_htmloutput["Animated HTML"]
  node_srtparser["SRT parser<br/>[parse-srt.mjs]"]
end

subgraph group_qa["Validation"]
  node_htmlvalidator["HTML validator"]
  node_srtvalidator["SRT HTML validator"]
  node_browsercheck["Browser layout check"]
  node_srtbrowsercheck["SRT browser check"]
  node_accepted["Visually checked result"]
end

node_creator(("Script creator"))

node_creator -->|"provides script"| node_skill
node_skill -->|"starts with"| node_review
node_skill -->|"develops"| node_storyboard
node_skill -->|"selects style"| node_styleguide
node_skill -->|"locks beats"| node_beatcontract
node_skill -.->|"confirms timeline"| node_srtplan
node_storyboard -.->|"uses rules"| node_sharedrules
node_styleguide -.->|"chooses theme"| node_stylecss
node_skill -->|"assembles HTML"| node_htmltemplate
node_skill -->|"assembles portrait"| node_portraittemplate
node_skill -->|"assembles autoplay"| node_srttemplate
node_stylecss -.->|"styles"| node_htmloutput
node_htmltemplate -.->|"provides runtime"| node_htmloutput
node_portraittemplate -.->|"provides portrait frame"| node_htmloutput
node_srttemplate -.->|"provides autoplay runtime"| node_htmloutput
node_creator -->|"provides SRT"| node_srtparser
node_srtparser -->|"parses timing"| node_skill
node_htmloutput -->|"is statically checked"| node_htmlvalidator
node_htmloutput -->|"is SRT checked"| node_srtvalidator
node_htmloutput -->|"is layout checked"| node_browsercheck
node_htmloutput -->|"is SRT layout checked"| node_srtbrowsercheck
node_htmlvalidator -->|"reports validation"| node_accepted
node_srtvalidator -->|"reports validation"| node_accepted
node_browsercheck -->|"checks layout"| node_accepted
node_srtbrowsercheck -->|"checks layout"| node_accepted

click node_skill "https://github.com/jackywxsz/jacky-motion/blob/main/SKILL.md"
click node_review "https://github.com/jackywxsz/jacky-motion/tree/main/references"
click node_storyboard "https://github.com/jackywxsz/jacky-motion/tree/main/references"
click node_styleguide "https://github.com/jackywxsz/jacky-motion/tree/main/styles"
click node_beatcontract "https://github.com/jackywxsz/jacky-motion/blob/main/references/beat-contract.md"
click node_srtplan "https://github.com/jackywxsz/jacky-motion/blob/main/references/srt-production.md"
click node_stylecss "https://github.com/jackywxsz/jacky-motion/tree/main/assets/styles"
click node_sharedrules "https://github.com/jackywxsz/jacky-motion/tree/main/references"
click node_htmltemplate "https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template.html"
click node_portraittemplate "https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template-portrait.html"
click node_srttemplate "https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template-srt.html"
click node_srtparser "https://github.com/jackywxsz/jacky-motion/blob/main/scripts/parse-srt.mjs"
click node_htmlvalidator "https://github.com/jackywxsz/jacky-motion/blob/main/scripts/validate-motion-html.mjs"
click node_srtvalidator "https://github.com/jackywxsz/jacky-motion/blob/main/scripts/validate-motion-html-srt.mjs"
click node_browsercheck "https://github.com/jackywxsz/jacky-motion/blob/main/scripts/check-layout-browser.mjs"
click node_srtbrowsercheck "https://github.com/jackywxsz/jacky-motion/blob/main/scripts/check-layout-browser-srt.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_review,node_storyboard,node_beatcontract,node_srtplan toneBlue
class node_styleguide,node_stylecss,node_sharedrules toneAmber
class node_htmltemplate,node_portraittemplate,node_srttemplate,node_htmloutput,node_srtparser toneMint
class node_htmlvalidator,node_srtvalidator,node_browsercheck,node_srtbrowsercheck,node_accepted toneRose
class node_creator toneIndigo
```

## Components

### Creation workflow

- [Skill workflow](https://github.com/jackywxsz/jacky-motion/blob/main/SKILL.md): `SKILL.md`
- [Script review](https://github.com/jackywxsz/jacky-motion/tree/main/references): `references`
- [Beat storyboard](https://github.com/jackywxsz/jacky-motion/tree/main/references): `references`
- [Beat contract](https://github.com/jackywxsz/jacky-motion/blob/main/references/beat-contract.md): `references/beat-contract.md`
- [SRT timeline](https://github.com/jackywxsz/jacky-motion/blob/main/references/srt-production.md): `references/srt-production.md`

### Visual design

- [Style selection](https://github.com/jackywxsz/jacky-motion/tree/main/styles): `styles`
- [Style themes](https://github.com/jackywxsz/jacky-motion/tree/main/assets/styles): `assets/styles`
- [Layout and motion rules](https://github.com/jackywxsz/jacky-motion/tree/main/references): `references`

### HTML runtime

- [Manual HTML template](https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template.html): `assets/base-template.html`
- [Portrait template](https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template-portrait.html): `assets/base-template-portrait.html`
- [Autoplay template](https://github.com/jackywxsz/jacky-motion/blob/main/assets/base-template-srt.html): `assets/base-template-srt.html`
- **Animated HTML**
- [SRT parser](https://github.com/jackywxsz/jacky-motion/blob/main/scripts/parse-srt.mjs): `scripts/parse-srt.mjs`

### Validation

- [HTML validator](https://github.com/jackywxsz/jacky-motion/blob/main/scripts/validate-motion-html.mjs): `scripts/validate-motion-html.mjs`
- [SRT HTML validator](https://github.com/jackywxsz/jacky-motion/blob/main/scripts/validate-motion-html-srt.mjs): `scripts/validate-motion-html-srt.mjs`
- [Browser layout check](https://github.com/jackywxsz/jacky-motion/blob/main/scripts/check-layout-browser.mjs): `scripts/check-layout-browser.mjs`
- [SRT browser check](https://github.com/jackywxsz/jacky-motion/blob/main/scripts/check-layout-browser-srt.mjs): `scripts/check-layout-browser-srt.mjs`
- **Visually checked result**

### Other components

- **Script creator**

## Connections

- Script creator → Skill workflow: provides script (evidence: `README.md`)
- Skill workflow → Script review: starts with (evidence: `README.md`)
- Skill workflow → Beat storyboard: develops (evidence: `README.md`)
- Skill workflow → Style selection: selects style (evidence: `README.md`)
- Skill workflow → Beat contract: locks beats (evidence: `README.md`)
- Skill workflow → SRT timeline: confirms timeline (evidence: `README.md`)
- Beat storyboard → Layout and motion rules: uses rules
- Style selection → Style themes: chooses theme
- Skill workflow → Manual HTML template: assembles HTML (evidence: `README.md`)
- Skill workflow → Portrait template: assembles portrait (evidence: `README.md`)
- Skill workflow → Autoplay template: assembles autoplay (evidence: `README.md`)
- Style themes → Animated HTML: styles
- Manual HTML template → Animated HTML: provides runtime
- Portrait template → Animated HTML: provides portrait frame
- Autoplay template → Animated HTML: provides autoplay runtime
- Script creator → SRT parser: provides SRT (evidence: `README.md`)
- SRT parser → Skill workflow: parses timing (evidence: `README.md`)
- Animated HTML → HTML validator: is statically checked (evidence: `README.md`)
- Animated HTML → SRT HTML validator: is SRT checked (evidence: `README.md`)
- Animated HTML → Browser layout check: is layout checked (evidence: `README.md`)
- Animated HTML → SRT browser check: is SRT layout checked (evidence: `README.md`)
- HTML validator → Visually checked result: reports validation (evidence: `scripts/validate-motion-html.mjs`)
- SRT HTML validator → Visually checked result: reports validation (evidence: `scripts/validate-motion-html-srt.mjs`)
- Browser layout check → Visually checked result: checks layout (evidence: `scripts/check-layout-browser.mjs`)
- SRT browser check → Visually checked result: checks layout (evidence: `scripts/check-layout-browser-srt.mjs`)
