Skill Document

script-to-motion

An agent skill that turns a script, or just a topic, into a narrated motion-graphics video: the agent writes it, generates the voice with Fish Audio, designs the scenes, times the motion to the spoken words from the audio itself, and renders a gapless MP4.

  • 34 GitHub stars
  • ⚖️ MIT

Last verified: write-up checked

git clone https://github.com/kstost/script-to-motion.git <skills folder>/script-to-motion
script-to-motion — skill preview

What it is

Most "AI makes a video" skills stop at generating clips. This one is built around a harder problem: making the picture agree with the voice. The agent generates the narration first, then reads that recording as audio measurements and decides itself when each word is heard, so a number rises exactly as it is spoken and a keyword appears on that keyword. The README is careful here: the code does not judge where words or pauses are; the agent does that reading, and only where it must be exact. The same measuring runs over the finished mix, every 50 ms, to find silences longer than 0.4 seconds and shorten them. Gaps between sentences are tightened and long pauses inside a single recording are cut out, while pauses inside a generated video clip shown in full, and the hold on the last frame, are left alone. That is the difference between a timeline that feels edited and one that drags. What appears on screen is a catalogue rather than a template: typography that shatters like glass, melts, ripples, bounces like jelly, flies together from Hangul letters, scatters as dust, switches on like neon or takes on thickness; illustrations of people, animals, vehicles and maps; camera moves, light and particles, and 3D when needed; graphs that draw themselves and numbers that roll upward. Your own screen recordings are handled with their own rule: show the full page without zooming, dim everything except the part being explained, attach a hand-stuck annotation card, blur personal data, and play generated results to the end next to the plan they were meant to match. Output covers 16:9, 9:16, 4:5, 1:1 and 21:9, each laid out again for the ratio, with vertical video keeping the app's title and button areas clear. render.py bakes it one frame at a time with captions, narration and clip audio mixed in. One nice safeguard: a hook called look_guard.py stops the agent from "watching" the video any way other than through render.py --screenshot contact sheets, and it is written into the project's .claude/settings.local.json so helper agents obey it too. It is MIT-licensed. We read the README and did not install or render anything.

Who it's for

  • YouTube and Shorts creators who want explainer video from a script without opening an editor
  • Teachers and presenters who need a lesson opening or a data briefing as video
  • Anyone reviewing an AI tool who wants their own screen recording cut into a narrated piece

Requirements

Requirements

  • macOS or Linux (the skill is built for those two)
  • Node.js and Chrome for playback and recording; ffmpeg for mp3
  • Python 3 and ffmpeg to render the MP4; Playwright and Chromium are set up by render.py on first run
  • A Fish Audio API key and voice ID only if you want narration
  • One internet-connected first run to download fonts, animation libraries and the cokacmotion technique collection

Setup

  1. Step 1

    bash
    git clone https://github.com/kstost/script-to-motion.git <skills folder>/script-to-motion
  2. Step 2

    bash
    cd <skills folder>/script-to-motion/scripts && npm install
  3. Step 3

    bash
    For Claude Code the skills folder is ~/.claude/skills
  4. Step 4

    bash
    Put the key in the skill folder's .env as FISH_API_KEY=...

مهارة للوكيل تحوّل نصا، أو مجرد موضوع، إلى فيديو موشن جرافيك بتعليق صوتي: يكتب الوكيل النص، ويولّد الصوت عبر Fish Audio، ويصمم المشاهد، ويضبط الحركة على الكلمات اعتمادا على قياس الصوت نفسه، ثم يصدّر ملف MP4 بلا تقطيع.

Examples

A calm YouTube explainer from a script

Prompt
prompt
아래 대본으로 유튜브 설명 영상 만들어줘. 차분하고 깔끔한 느낌으로.

Expected output: Make a YouTube explainer from the script below, calm and clean. The README's own phrasing: ordinary speech is enough, and you need not name the skill.

From a topic, with research

Prompt
prompt
"세상에서 제일 깊은 바다는 어디일까?"를 주제로 흥미롭게 기획해서 영상으로 만들어줘. 자료조사도 충분히 해줘.

Expected output: No script at all: plan an interesting video on the topic of the world's deepest sea, and research it properly.

Same material as a vertical Short

Prompt
prompt
이 글을 세로 쇼츠로 만들어줘. 빠르고 경쾌하게.

Expected output: Turn this text into a vertical Short, fast and upbeat; the layout is rebuilt for the ratio rather than cropped.

Hand over the narration voice

Prompt
prompt
아래 대본으로 영상 만들어줘. Fish Audio 음성 ID는 0a1b2c…, API 키는 .env에 넣어 뒀어.

Expected output: The README's example of passing the voice ID in the request with the key already in .env.

Render the MP4

bash
bash
python3 render.py

What it does: Run in the finished project folder; it writes movie_<date-time>_<resolution>.mp4 at 480p, 720p, 1080p or 4K, frame by frame so nothing drops.

Pros & cons

Pros

  • Pro:Timing comes from measuring the recorded audio, so counters and highlights land on the spoken word
  • Pro:It finds silences over 0.4 seconds in the mixed audio and shortens them, leaving generated clips and the final hold alone
  • Pro:Five aspect ratios, each re-laid-out rather than cropped, with safe areas kept clear on vertical video
  • Pro:render.py draws frame by frame, so a slow machine does not drop frames; macOS uses GPU and hardware encoding
  • Pro:A guard hook limits the agent to viewing the film through screenshot contact sheets, and installs itself for sub-agents too

Cons

  • Con:Narration needs a paid Fish Audio key and a voice ID; without them you get a silent film
  • Con:Built for macOS and Linux only
  • Con:README, SKILL.md and the references are in Korean
  • Con:First run needs internet to fetch fonts, animation libraries and the technique collection
  • Con:33 stars and created 2026-11-10: new, and the quality claims are the author's own