# xianyu110/ecommerce-video-skills architecture

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

- Interactive diagram: https://gitdiagram.com/xianyu110/ecommerce-video-skills
- Repository: https://github.com/xianyu110/ecommerce-video-skills

## Overview

This repository packages 13 installable agent skills for creating and adapting ecommerce short videos, with local Python/ffmpeg rendering as its concrete runtime. The principal workflow turns product imagery and a storyboard into a voiced, captioned video, then optionally exports platform variants or creates cover tests. README describes several prompt-driven skills whose implementations are SKILL.md files; sampled excerpts show the renderer and its audio/caption helpers. Links for documented prompt workflows cite the README; unsampled skill behavior is not inferred beyond those descriptions.

Main entry points: [`scripts/assemble.py`](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/assemble.py) (Video assembler), [`skills/selling-point-storyboard/SKILL.md`](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/selling-point-storyboard/SKILL.md) (Storyboard design), [`skills/viral-remake/SKILL.md`](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/viral-remake/SKILL.md) (Viral remake), [`skills/multi-model-shot-prompts/SKILL.md`](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/multi-model-shot-prompts/SKILL.md) (Model prompts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Creative planning"]
  node_hooks["Hook writing<br/>[SKILL.md]"]
  node_remake["Viral remake<br/>[SKILL.md]"]
  node_storyboard["Storyboard design<br/>[SKILL.md]"]
  node_modelprompts["Model prompts<br/>[SKILL.md]"]
  node_shotprompts["Image-to-video shots<br/>[SKILL.md]"]
end

subgraph group_render["Local rendering"]
  node_assembler["Video assembler<br/>[assemble.py]"]
  node_voice["Voice synthesis<br/>[tts_edge.py]"]
  node_bgm["Music generation<br/>[make_bgm.py]"]
  node_captions["Subtitle rendering<br/>[make_subs.py]"]
  node_video["Rendered MP4 + SRT"]
end

subgraph group_adapt["Video adaptation"]
  node_platform["Platform export<br/>[export_platform.py]"]
  node_cover["Cover A/B<br/>[cover_ab.py]"]
  node_dubbing["Multilingual dubbing<br/>[SKILL.md]"]
  node_liveclips["Live stream clips<br/>[live_clip.py]"]
end

subgraph group_support["Companion skills"]
  node_voice_skill["Voiceover guidance<br/>[SKILL.md]"]
  node_subtitle_skill["Subtitle guidance<br/>[SKILL.md]"]
  node_review["Review templates<br/>[SKILL.md]"]
  node_cards["Product cards<br/>[make_cards.py]"]
end

node_creator(("Video creator"))
node_edge_tts{{"Edge TTS"}}
node_ffmpeg{{"FFmpeg rendering"}}

node_creator -->|"requests hooks"| node_hooks
node_creator -->|"requests remake"| node_remake
node_creator -->|"requests storyboard"| node_storyboard
node_remake -->|"outputs storyboard"| node_storyboard
node_storyboard -->|"provides storyboard"| node_assembler
node_creator -->|"requests prompts"| node_modelprompts
node_modelprompts -->|"adapts prompts"| node_shotprompts
node_shotprompts -->|"offers local fallback"| node_assembler
node_creator -->|"runs render"| node_assembler
node_assembler -->|"synthesizes lines"| node_voice
node_voice -->|"requests speech"| node_edge_tts
node_assembler -->|"uses music helper"| node_bgm
node_assembler -->|"builds subtitles"| node_captions
node_assembler -->|"renders media"| node_ffmpeg
node_assembler -->|"writes output"| node_video
node_video -->|"exports formats"| node_platform
node_video -->|"selects cover frames"| node_cover
node_creator -->|"requests localization"| node_dubbing
node_dubbing -->|"renders language variant"| node_assembler
node_creator -->|"requests highlights"| node_liveclips
node_creator -->|"requests voiceover"| node_voice_skill
node_creator -->|"requests text effects"| node_subtitle_skill
node_creator -->|"requests review template"| node_review
node_review -->|"provides card script"| node_cards
node_cards -.->|"creates visual assets"| node_ffmpeg

click node_hooks "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/hook-3s-script/SKILL.md"
click node_remake "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/viral-remake/SKILL.md"
click node_storyboard "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/selling-point-storyboard/SKILL.md"
click node_modelprompts "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/multi-model-shot-prompts/SKILL.md"
click node_shotprompts "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/image-to-video-shots/SKILL.md"
click node_assembler "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/assemble.py"
click node_voice "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/tts_edge.py"
click node_bgm "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_bgm.py"
click node_captions "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_subs.py"
click node_platform "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/export_platform.py"
click node_cover "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/cover_ab.py"
click node_dubbing "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/multilingual-dubbing/SKILL.md"
click node_liveclips "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/live_clip.py"
click node_voice_skill "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/ai-voiceover-edge-tts/SKILL.md"
click node_subtitle_skill "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/subtitles-and-text-effects/SKILL.md"
click node_review "https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/unboxing-comparison-review/SKILL.md"
click node_cards "https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_cards.py"

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_hooks,node_remake,node_storyboard,node_modelprompts,node_shotprompts toneBlue
class node_assembler,node_voice,node_bgm,node_captions,node_video toneAmber
class node_platform,node_cover,node_dubbing,node_liveclips toneMint
class node_voice_skill,node_subtitle_skill,node_review,node_cards toneRose
class node_creator,node_edge_tts,node_ffmpeg toneIndigo
```

## Components

### Creative planning

- [Hook writing](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/hook-3s-script/SKILL.md): `skills/hook-3s-script/SKILL.md`
- [Viral remake](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/viral-remake/SKILL.md): `skills/viral-remake/SKILL.md`
- [Storyboard design](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/selling-point-storyboard/SKILL.md): `skills/selling-point-storyboard/SKILL.md`
- [Model prompts](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/multi-model-shot-prompts/SKILL.md): `skills/multi-model-shot-prompts/SKILL.md`
- [Image-to-video shots](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/image-to-video-shots/SKILL.md): `skills/image-to-video-shots/SKILL.md`

### Local rendering

- [Video assembler](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/assemble.py): `scripts/assemble.py`
- [Voice synthesis](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/tts_edge.py): `scripts/tts_edge.py`
- [Music generation](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_bgm.py): `scripts/make_bgm.py`
- [Subtitle rendering](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_subs.py): `scripts/make_subs.py`
- **Rendered MP4 + SRT**

### Video adaptation

- [Platform export](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/export_platform.py): `scripts/export_platform.py`
- [Cover A/B](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/cover_ab.py): `scripts/cover_ab.py`
- [Multilingual dubbing](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/multilingual-dubbing/SKILL.md): `skills/multilingual-dubbing/SKILL.md`
- [Live stream clips](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/live_clip.py): `scripts/live_clip.py`

### Companion skills

- [Voiceover guidance](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/ai-voiceover-edge-tts/SKILL.md): `skills/ai-voiceover-edge-tts/SKILL.md`
- [Subtitle guidance](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/subtitles-and-text-effects/SKILL.md): `skills/subtitles-and-text-effects/SKILL.md`
- [Review templates](https://github.com/xianyu110/ecommerce-video-skills/blob/main/skills/unboxing-comparison-review/SKILL.md): `skills/unboxing-comparison-review/SKILL.md`
- [Product cards](https://github.com/xianyu110/ecommerce-video-skills/blob/main/scripts/make_cards.py): `scripts/make_cards.py`

### Other components

- **Video creator**
- **Edge TTS**
- **FFmpeg rendering**

## Connections

- Video creator → Hook writing: requests hooks (evidence: `README.md`)
- Video creator → Viral remake: requests remake (evidence: `README.md`)
- Video creator → Storyboard design: requests storyboard (evidence: `README.md`)
- Viral remake → Storyboard design: outputs storyboard (evidence: `README.md`)
- Storyboard design → Video assembler: provides storyboard (evidence: `README.md`)
- Video creator → Model prompts: requests prompts (evidence: `README.md`)
- Model prompts → Image-to-video shots: adapts prompts (evidence: `README.md`)
- Image-to-video shots → Video assembler: offers local fallback (evidence: `README.md`)
- Video creator → Video assembler: runs render (evidence: `README.md`)
- Video assembler → Voice synthesis: synthesizes lines (evidence: `scripts/assemble.py`)
- Voice synthesis → Edge TTS: requests speech (evidence: `scripts/tts_edge.py`)
- Video assembler → Music generation: uses music helper (evidence: `scripts/assemble.py`)
- Video assembler → Subtitle rendering: builds subtitles (evidence: `scripts/assemble.py`)
- Video assembler → FFmpeg rendering: renders media (evidence: `scripts/assemble.py`)
- Video assembler → Rendered MP4 + SRT: writes output (evidence: `README.md`)
- Rendered MP4 + SRT → Platform export: exports formats (evidence: `README.md`)
- Rendered MP4 + SRT → Cover A/B: selects cover frames (evidence: `README.md`)
- Video creator → Multilingual dubbing: requests localization (evidence: `README.md`)
- Multilingual dubbing → Video assembler: renders language variant (evidence: `README.md`)
- Video creator → Live stream clips: requests highlights (evidence: `README.md`)
- Video creator → Voiceover guidance: requests voiceover (evidence: `README.md`)
- Video creator → Subtitle guidance: requests text effects (evidence: `README.md`)
- Video creator → Review templates: requests review template (evidence: `README.md`)
- Review templates → Product cards: provides card script (evidence: `README.md`)
- Product cards → FFmpeg rendering: creates visual assets
