Skip to content

About

Agent skill + film engine for teardown-style educational videos: 3D replicas of real things, product-film camera moves, pinned labels, one-take narration, music and SFX. Storyboard first, built in HTML, GSAP and three.js, rendered frame by frame.

Topics

Resources

Stars

110 stars

Watchers

0 watching

Forks

Repository files navigation

Motion Educator, over a wall of frames rendered in its visual templates

An agent skill and the film engine behind it. Ask your agent for an explainer on any topic, in any of sixteen visual templates: it researches the facts, draws a storyboard, waits for your yes, then renders a 1080p60 film frame by frame, with narration, music and sound.


stars test node output skill license

Website · Quick start · Templates · Gallery · How it works · Docs


Moments from films made with the skill

Moments from films made with the skill, each by an agent following it from the brief to the mix. Every frame is code: no stock footage, no video model.


Highlights

Storyboard first. Nothing is rendered until a drawn storyboard passes a checker and you have approved it. The board is the film's clock: shot times, captions and the chapter rail are read from it. True, with sources. Every number on screen sits in a fact sheet with its source and its arithmetic. A bar that stands for 5.9× is 5.9 times as tall.
The real thing, a directed camera. Devices, organs and machines are rebuilt from references and teardowns, then filmed like a product: orbits, push-ins, macro close-ups, parts lifting apart. Sixteen looks, any topic. Photoreal 3D, motion graphics, claymation, chalk, blueprint, pixel art, watercolour and more. A template is a look, never a subject.
Explains itself on mute. Captions and pictures carry the lesson; one-take narration, a composed music bed and measured sound effects make it land. Graded by someone else. Stills while building, measurements on the render, then a critic who did not build it. Fixes re-render four seconds, not the film.

Quick start

Install it where your agent looks for skills:

git clone --depth 1 https://github.com/zeative/motion-educator ~/.claude/skills/motion-educator

Then ask for a film, or call the skill by name:

/motion-educator why a full trolley is harder to push, in the Stickman template, portrait, Indonesian

Make a 45-second explainer on why the Moon always shows us the same face. Portrait, English, with narration.

A prompt copied from the website works the same way. The skill scaffolds a workspace in your project, writes and draws the storyboard, and stops for your approval before it builds anything.

Other agents

It is a plain Agent Skills folder (SKILL.md, references/, a Node kit), so any agent that reads skills can use it. Clone it into the folder yours looks in:

Agent For you (all projects) For one project
Claude Code ~/.claude/skills/motion-educator .claude/skills/motion-educator
OpenAI Codex ~/.agents/skills/motion-educator .agents/skills/motion-educator
Gemini CLI ~/.gemini/skills/motion-educator .gemini/skills/motion-educator
GitHub Copilot ~/.copilot/skills/motion-educator .github/skills/motion-educator
Cursor reads ~/.claude/skills and ~/.codex/skills .cursor/skills/motion-educator

An agent without skill support can still follow it: clone it anywhere and tell it to read SKILL.md first. It needs a shell to run Node, FFmpeg and Python, and the ability to look at images, since it checks its own stills. Every film here was made with Claude Code; the other agents are untested.

By hand, without an agent
git clone --depth 1 https://github.com/zeative/motion-educator && cd motion-educator
npm install && bash kit/audio/fetch.sh
node kit/tools/doctor.mjs                                     # is this machine ready?

node kit/tools/new.mjs ~/films moon-face --portrait           # a workspace and films/moon-face
node kit/tools/new.mjs ~/films trolley --template stickman     # or a film in a visual template
cd ~/films && npm install && bash kit/audio/fetch.sh
node kit/tools/storyboard.mjs films/moon-face --png           # 1. check the storyboard and draw the board
node kit/audio/voice.mjs films/moon-face --generate           # 2. one take, and the film cut to it (ELEVENLABS_API_KEY)
node kit/tools/render.mjs films/moon-face --stills 1.5,4.2    # 3. build, looking at stills as you go
node kit/tools/make.mjs films/moon-face                       # 4. render, mix, measure, a share copy

Requirements: Node 20+, FFmpeg, Python 3 with numpy, and Playwright's Chromium (npm i -D playwright && npx playwright install chromium). Without a GPU on Linux it needs Mesa's software Vulkan (apt install mesa-vulkan-drivers). node kit/tools/doctor.mjs checks all of it.

Visual templates

A template is a look, never a topic: any subject can be made in any of them. The prompt names one, the storyboard records it, and the engine applies it before the first frame: the stage, the type, the caption skin, the palette, and for stop motion and drawings on twos, the rate the picture advances at.

Studio Cutaway: frames it rendered
Studio Cutaway
Photoreal 3D · 3 sample films
Graphite Glass: frames it rendered
Graphite Glass
Motion graphics · 4 sample films
Cosmos: frames it rendered
Cosmos
3D and light · 4 sample films
Micro: frames it rendered
Micro
Illustrated 3D · 2 sample films
Stickman: frames it rendered
Stickman
Hand-drawn 2D · 1 sample film
Clay: frames it rendered
Clay
Claymation · 1 sample film
Paper Cut-out: frames it rendered
Paper Cut-out
Layered paper · engine proof
Chalkboard: frames it rendered
Chalkboard
Chalk on board · engine proof
Blueprint: frames it rendered
Blueprint
Technical drawing · engine proof
Isometric: frames it rendered
Isometric
Isometric diorama · engine proof
Pixel: frames it rendered
Pixel
Pixel art · engine proof
Whiteboard: frames it rendered
Whiteboard
Marker sketch · engine proof
Watercolour: frames it rendered
Watercolour
Painted · engine proof
Neon Line: frames it rendered
Neon Line
Glowing lines · engine proof
Comic: frames it rendered
Comic
Ink and halftone · engine proof
Low Poly: frames it rendered
Low Poly
Faceted 3D · engine proof

Every card is real output: frames of the template's sample films, or of its engine proof (a few seconds made with the kit and matched to the template on every lookmatch.mjs measure) until its first sample film is done. 6 of 16 have sample films.

Each lives in templates/<key>/: its lines (template.md), engine settings (template.json), type and colours (look.css), and the golden stills a film is measured against by kit/tools/lookmatch.mjs (background, ink, palette, lightness, colour, line, grain and drawing rate). New templates are made from a reference video with reanimate's loop: references/templates.md.

Gallery

Explainers (16:9)

Kenapa langit berwarna biru?
Kenapa langit berwarna biru?
Bahasa Indonesia · 67 s · captions · ▶ watch · board
How does your phone know where you are?
How does your phone know where you are?
English · 60 s · captions · ▶ watch · board
Why do we have seasons?
Why do we have seasons?
English · 57 s · captions · ▶ watch · board
Kok uang bisa beranak? Gimana bunga majemuk bekerja?
Kok uang bisa beranak? Gimana bunga majemuk bekerja?
Bahasa Indonesia · 52 s · captions · ▶ watch · board

Shorts (9:16)

How do noise-cancelling headphones erase sound?
How do noise-cancelling headphones erase sound?
English · 74 s · voice: Craig - Warm, Articulate, Conversational · ▶ watch · board
Kenapa ada musim?
Kenapa ada musim?
Bahasa Indonesia · 65 s · voice: Livna · ▶ watch · board
Gimana sih luka bisa nutup sendiri?
Gimana sih luka bisa nutup sendiri?
Bahasa Indonesia · 53 s · voice: Livna · ▶ watch · board
Kenapa hoaks yang diulang-ulang lama-lama terasa benar?
Kenapa hoaks yang diulang-ulang lama-lama terasa benar?
Bahasa Indonesia · 50 s · voice: Jefri · ▶ watch · board
Kenapa HP makin lemot pas memorinya hampir penuh?
Kenapa HP makin lemot pas memorinya hampir penuh?
Bahasa Indonesia · 45 s · voice: Rafiq · ▶ watch · board
Kenapa troli penuh susah didorong?
Kenapa troli penuh susah didorong?
Bahasa Indonesia · 41 s · voice: Rafiq · ▶ watch · board
Kenapa petir terlihat dulu, baru guntur terdengar?
Kenapa petir terlihat dulu, baru guntur terdengar?
Bahasa Indonesia · 40 s · voice: Rafiq · ▶ watch · board
Why does 0.1 + 0.2 not equal 0.3?
Why does 0.1 + 0.2 not equal 0.3?
English · 35 s · captions · ▶ watch · board
Kenapa es malah ngapung di air?
Kenapa es malah ngapung di air?
Bahasa Indonesia · 32 s · captions · ▶ watch · board

Every preview is a few seconds of the finished film, looping. Click one for the whole film (720p, sound on). 13 films, each made by an agent following this skill from the brief to the mix.

How it works

flowchart LR
    A([Brief]) --> B[Fact sheet]
    B --> S[Script<br/>written as talk]
    S --> C[Storyboard<br/>drawn frames]
    C --> D{Check<br/>+ your yes}
    D -- no --> C
    D -- yes --> V[One take<br/>the cut follows the voice]
    V --> E[Build<br/>one shot at a time]
    E --> F[Render<br/>4 s segments]
    F --> G[Mix<br/>voice · music · SFX]
    G --> H[Measure]
    H --> I{Independent<br/>review}
    I -- fixes --> E
    I -- ship --> J([MP4])
Loading

The storyboard is the film's clock. Shot starts and ends, captions and the chapter rail are read from it, and its frames are drawn in the real frame's coordinates, so the build can be cut straight from them. The checker refuses a board with too few pictures (one about every 3.2 s), a caption nobody could finish reading, a number with no fact behind it, a line that will not fit its shot, a 3D object with no model sheet, or a short whose ending does not loop. Full standard: references/storyboard.md.

Storyboard frames above, the rendered frames below

Top: frames from the storyboard. Bottom: the same moments in the render.

A film is a web page with one paused GSAP timeline. The renderer opens it in headless Chromium, seeks the timeline to every frame in turn, captures it and pipes the frames to FFmpeg, which adds bloom and grain. Nothing reads the wall clock, so every frame is reproducible; anything GSAP cannot hold exactly (a canvas, a shader, typed text) keeps its state in a plain object the timeline tweens. The picture is rendered in four-second segments, so a fix re-renders only the seconds it touches.

Narration is one take. A film can explain with captions alone, or speak. When it speaks, the script is written as talk, performed as one continuous take with ElevenLabs, and the picture is cut to the voice; its word times light the captions as each word is said. A short loops: its last line runs into its first, and the music runs on across the seam. How to write it: references/narration.md; how to perform and cut it: references/voice.md.

Sound is set by measurement. A music bed composed to the film's length, effects on real events, each one's lift over what plays before it measured in the finished mix, mastered to −14 LUFS with true peak under −1 dBFS.

Rendering

There is one renderer and it takes the fastest drawing the machine has, with nothing to configure: the GPU when there is one, otherwise Mesa's lavapipe, software Vulkan that spreads each frame over every CPU core.

One heavy portrait frame (1080x1920, PBR, soft shadows, depth of field), on a CPU Time per frame Quality
Chromium's own software renderer, page.screenshot 7.1 s the reference
Mesa lavapipe, frames captured through the DevTools protocol 1.1 s PSNR 44.7 dB, SSIM 0.995
Depth of field that skips in-focus pixels and sizes its blur the pass 245 → 125 ms PSNR 45.4 dB, SSIM 0.997

On a CPU, heavy 3D draws at about a frame a second per four cores, so the kit can also render on a bigger machine: a worker in Docker (a VPS, a home server, a Dokploy or Coolify host), capped in CPUs and memory so the host's other services keep theirs. A 4 s, 1080x1920, 60 fps 3D test took 91 s on a 10-core worker against 320 s on a busy 4-core machine.

# on the bigger machine: run kit/farm/compose.yml (set FARM_TOKEN; FARM_CPUS caps the cores), expose port 8080
FARM_URL=https://your-host/farm FARM_TOKEN=... node kit/tools/farm.mjs films/moon-face --segment 1

The kit

What is in kit/
File What it is
kit/engine/motion.js the film engine: one timeline, scenes, type, captions, chapters, whips, hits
kit/engine/stage.js the stage: one fragment shader of flowing light, a floor, dust, shock rings
kit/engine/stage3d.js the 3D layer: a directed camera, depth of field, soft shadows, pinned labels, exploded views, cutaways
kit/engine/parts3d.js materials with real surface and ready-made parts: boards, chips, drivers, mics, screws, a desk set
kit/tools/anatomy.mjs, kit/engine/body3d.js real human anatomy (BodyParts3D): bones, muscles, skin; joints that bend, muscles that flex, skin that turns to glass
kit/engine/tissue3d.js skeletal muscle from the whole muscle down to its molecules, at measured sizes
kit/engine/look.js, backdrops.js the visual template applied before the first frame, held time for stepped looks, and the non-graphite stages
kit/engine/ink.js drawn looks: lines drawn on stroke by stroke, boiling, lettering written on, marker, chalk, wash, halftone, neon, cut paper
kit/engine/clay.js claymation: a tabletop set, plasticine with fingerprints, the stop-motion boil, rolled ropes, paper flags
kit/engine/clock.js the page clock from reanimate: seeded randomness and a virtual clock for timers, CSS animations and video
kit/css/film.css the look: tokens, glass, metal type, captions, panels, safe areas
kit/tools/storyboard.mjs, sketch.mjs the storyboard check and the pencil board
kit/tools/render.mjs frame-by-frame render in segments, stills, live preview
kit/tools/farm.mjs, kit/farm/ render on a bigger machine: the client, and the worker with its Docker Compose file
kit/audio/voice.mjs narration: one take, matched to the script word by word, and the film cut to it
kit/audio/music.mjs a music bed composed for the film's length with ElevenLabs Music
kit/audio/mix.py the mixer: voice, music, effects, ducking, mastering, the loop seam, each effect's lift
kit/tools/check.mjs, lookmatch.mjs contact sheets, frozen time, loudness, the loop seam, and the look against its template
kit/tools/reference.mjs, analysis.mjs studying a reference for a new template, and comparing what you built against it
kit/tools/make.mjs, doctor.mjs, test.mjs the whole pipeline in one command, the environment check, and a smoke test
motion-educator/
├── SKILL.md       the skill: what never bends, and the workflow
├── references/    teaching, storyboard, look, detail and camera, engine, motion, narration, voice, sound, review
├── kit/           the engine and its tools (copied into each workspace); kit/scaffold/ starts a new film
├── templates/     the visual templates: their lines, settings, type and golden stills
└── examples/      finished films with their storyboards, source and cue sheets

Docs

When you are… Read
deciding what to teach and in what order references/pedagogy.md
writing and drawing the storyboard references/storyboard.md
choosing the look, or making a portrait short references/look.md
making a film in a visual template, or a new template references/templates.md
building a film with the kit, and rendering it fast references/engine.md, references/motion.md
building real objects in 3D and directing the camera references/detail.md
writing narration that sounds like talk references/narration.md
choosing a voice, performing the take, cutting to it references/voice.md
choosing music and placing sounds references/sound.md
checking a render and briefing a reviewer references/review.md

Limitations

  • Nobody has heard the films. The agent that makes them cannot listen: sound is chosen by description and set by measurement, and each delivery says what a person should listen for.
  • Rendering is slow without a GPU. A minute of 1080p60 3D takes the better part of an hour on a small CPU-only machine; a GPU or a render worker brings it to minutes.
  • The sound library is not in the repository. Library music and effects come from Mixkit, whose licence allows them inside a video but not passed on as files; kit/audio/fetch.sh downloads them.
  • Narration and composed music use credits on your ElevenLabs account. Without a key, films use captions and a library track.
  • A replica is only as good as its references. When good photographs of the real object cannot be found, the agent asks you for some; without them, it says what it could not match.

Licence

MIT. The films you make with it are yours: the licence covers this repository's code, documents and examples, not what you render.

Third-party terms and credits
Thing Its terms In this repository
GSAP GSAP's own no-charge licence (not MIT) a dependency installed from npm, not redistributed
three.js MIT a dependency installed from npm
Sora, Inter, JetBrains Mono, Instrument Serif, Patrick Hand and the templates' faces SIL Open Font License installed from npm
Music and sound effects Mixkit's licences: free inside a video, not to be passed on as files not included; kit/audio/fetch.sh downloads them
Narration and composed music in the example films generated with ElevenLabs; your rights depend on your own plan included, so the examples can be re-mixed
Earth maps in the examples NASA imagery, not copyrighted included, with sources
  • GSAP and three.js do the animating and the 3D.
  • The composition shape (a fixed-size root and one paused timeline at window.__timelines.root) follows Null Motion's HyperFrames convention.
  • The page clock (kit/engine/clock.js) and the tools for making new templates (kit/tools/reference.mjs) come from reanimate by Niaz Morshed, MIT (licence).

Built storyboard first · motionedu.kejaa.id

About

Agent skill + film engine for teardown-style educational videos: 3D replicas of real things, product-film camera moves, pinned labels, one-take narration, music and SFX. Storyboard first, built in HTML, GSAP and three.js, rendered frame by frame.

Topics

Resources

Stars

110 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages