Communitygithub.com

dats-motion

Make short motion-graphic videos (Reels/TikTok/Shorts 9:16, or 16:9) entirely in code in one of 48 datskillmotion styles — kinetic type, paper collage, sunburst pop, true-crime case files, SaaS launches, screencasts, history docs and more — with a royalty-free backsound and a voiceover synced to the visuals. Use when someone asks for a video "in the X style", "gaya ini", a promo/explainer/story video like a reference, or names a datskillmotion style.

What is dats-motion?

dats-motion is a Claude Code agent skill that make short motion-graphic videos (Reels/TikTok/Shorts 9:16, or 16:9) entirely in code in one of 48 datskillmotion styles — kinetic type, paper collage, sunburst pop, true-crime case files, SaaS launches, screencasts, history docs and more — with a royalty-free backsound and a voiceover synced to the visuals. Use when someone asks for a video "in the X style", "gaya ini", a promo/explainer/story video like a reference, or names a datskillmotion style.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/storyquotes15-blip/datsmotionskill/tree/HEAD/plugins/dats-motion/skills/dats-motion

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does dats-motion do?

Every film is built from code: an HTML page draws each frame as a function of time, headless Chrome screenshots it, ffmpeg encodes. No video-generation credits, no stock footage. Reply in the user's language (Indonesian by default if they write Indonesian).

Library files (paths relative to this skill folder):

FileRead it for
DIRECTOR.mdstory, hook, pacing, on-screen text, voiceover script, self-checks
TECHNIQUE.mdthe engine, the CSS kit, rendering, clips, voice sync, music, mixing
styles/README.mdthe 48 styles by category — find the folder the user means
styles/<folder>/STYLE.mdwhat that style looks, moves and sounds like
styles/<folder>/demo/index.htmla working 8-second page in that style (when it exists)

Requirements: Python 3 with numpy, scipy, playwright; ffmpeg; Chrome/Chromium (or playwright install chromium).

When the user only invokes the skill

Ask, in one message: which language; then what they want — a film in a library style (show the categories from styles/README.md), or "match this reference" (they send a video: make a contact sheet with scripts/contact_sheet.sh, pick the closest style and say why).

Ask once, up front

Only what you cannot decide yourself, in one message:

  1. Style (if not named) — offer 2-3 fitting styles with one line each.
  2. Topic and goal — what the film is about, who it is for, the call to action.
  3. Length and ratio — default 30-45 s, 9:16 1080×1920 30 fps.
  4. Voice — they record it from your script (recommended), no voice (text only), or a TTS they have.
  5. Material — their logo, photos, screen recordings, clips. Never invent a logo or a real person's face.
  6. Storyboard first? — if yes, render 3-4 key stills and stop once for approval.

Make the film

  1. Read DIRECTOR.md, TECHNIQUE.md and the style's STYLE.md.
  2. Write the plan: hook, beats, a shot list with times, on-screen text per shot, and (if voiced) the voiceover script per shot with its time range (~2.3 words/second).
  3. Scaffold: python3 scripts/new_film.py <style-folder> films/<name> [--ratio 9:16|16:9] (copies the style demo or the template, the kit and the fonts into a self-contained folder).
  4. Build the scenes in films/<name>/index.html with the kit. Keep the style's palette, fonts, pacing and signature shots; the story and words are the user's.
  5. Check stills before rendering: python3 scripts/render.py --html films/<name>/index.html --stills 1 4 9 15 --outdir films/<name>/frames and look at them (text inside safe zones, nothing overlapping, the style reads at a glance).
  6. Render: python3 scripts/render.py --html films/<name>/index.html --start 0 --end <len> --out films/<name>/out/video.mp4 --jobs 4, then a contact sheet, and look at it.
  7. Sound: scripts/music.py for the backsound; when the voice arrives, sync the video to it (TECHNIQUE.md → Voice sync) and mix with scripts/mix.py.
  8. Deliver the MP4 (and the voiceover script / music stem if useful) with one line on what to tweak.

Rules

  • Only the user's own material goes into a film. Styles describe looks; they never carry anyone's footage, characters or logos.
  • No third-party logos, brands or characters drawn in code. Use names as text, or files the user owns.
  • Music is synthesized by scripts/music.py (royalty-free) unless the user supplies their own.
  • Real numbers and claims come from the user or a source you checked; round down when unsure.
  • Keep text inside the 9:16 safe zone: 220 px from the top, 380 px from the bottom, 140 px from the right.

Related Skills