Communitygithub.com

Isometric Explainers

Turn one topic into two isometric explainer films: a chaptered 16:9 cut and a tighter 9:16 cut, with sourced captions, synthesized sound, and a frame-by-frame QA gate.

What is Isometric Explainers?

Builds one isometric world in TypeScript and renders a long YouTube cut plus a short vertical cut from the same beats. Chromium and ffmpeg encode the films, and nothing ships until pacing, layout, contrast, safe areas, and loudness pass on every frame.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vn-envy/isometric-explainers/tree/HEAD

Ask in your favorite AI

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

Documentation

What does Isometric Explainers do?

You turn one topic into two videos: a long cut (16:9, 4:40-5:20, slower, chapters and a recap) and a short cut (9:16, 2:00-2:50, tighter). Both come from ONE isometric world you write in TypeScript with this kit: a scene that opens in place and runs, one idea per beat, with captions, labels and leaders. The tools render it deterministically in Chromium, mix synthesized sound, encode platform-ready MP4s and run strict QA (pacing, layout, contrast, safe areas, loudness) on every frame. Nothing ships unless QA is green.

Everything happens in this skill's folder (the folder holding this file). Run commands from there. explainer <cmd> means node bin/explainer.mjs <cmd> (or npx explainer <cmd> after npm install).

A typical topic takes an agent 1.5-2.5 hours: about 45 minutes of research and script, 45 of building the world, 20 of rendering, and fixes.

0 · Set up (once per machine, 2 minutes)

npm install
explainer doctor          # Node 20+, packages, Chromium or Chrome, ffmpeg with libx264, fonts, one test render

If doctor fails it prints the fix (most often npx playwright install chromium, or installing ffmpeg). Do not go on until it passes. Optional: put your brand in brand.json (end-card name and tagline, title eyebrow, post sign-off, mark SVGs); the default is neutral.

Read before your first topic: docs/building-a-world.md (the kit and the explainer grammar), then the two examples (examples/wind-turbine/, examples/satellite-comms/: world.ts, long.ts, short.ts, script.md). Six more finished topics from the published daily series sit in examples/ (booster-landing, flyby-boost, smog-lid, monarch-compass, octopus-squeeze, cold-atoms): read the one closest to your subject. docs/api.md lists every kit function.

Topics go in topics/<slug>/ and runs in out/. To keep them outside the skill folder, set EXPLAINER_HOME=/path/to/workspace (commands still run from the skill folder).

1 · Pick the topic (15 minutes)

If the user gave a topic, use it. If they asked for something trending, search the last 7 days (news, YouTube, Reddit, X, TikTok, Google Trends) and turn a story into a mechanism: a machine or process with parts that act on each other, that lives in one isometric world (how a heat pump moves heat, how a booster lands upright, how smog gets trapped). Keep the trend's coverage (titles, outlets, dates): it goes in topic.json trend, which is required only for a day of a series ("kind": "daily", step 8) and optional otherwise.

Safe defaults (change them only if the user asks): no tragedies or victims, crime, politics, war or weapons, medical or financial advice, real people as subjects, brands or products shown or named, or facts still disputed or unfolding. A story touching these can still lead to a neutral mechanism (a storm in the news -> how hurricanes form). Details: docs/research-and-script.md.

2 · Sources and script (30 minutes)

At least three primary or authoritative sources (agencies, universities, standards, peer-reviewed papers; Wikipedia only as a pointer). Read them; keep exact quotes. Write script.md: the long cut chapter by chapter, beat by beat. Each beat has a caption of at most 22 plain words, what is on screen, and the source of every claim and number. Round honestly. Then pick the short cut's beats from the long cut (no new claims).

Plan the length now, because the words set it. The long cut needs about 10-12 story beats in 4-6 chapters, plus a Recap chapter of 3-4 beats, to reach 4:40; the short needs about 8-10 beats to reach 2:00. Fewer fail the duration check: the kit pads each beat by at most 2 s to reach the floor. Format and examples: docs/research-and-script.md.

3 · Build the world and both cuts (45 minutes)

explainer new <slug> "How a heat pump moves *heat*"     # topics/<slug>/ : a skeleton that already renders
explainer timeline <slug>                               # lengths, chapters, beat timings from your words
explainer stills <slug> --cut long --palette colour-light --beats      # PNGs of every beat: LOOK at them
explainer stills <slug> --cut short --palette mono-dark --beats --grid # with a pixel grid, the safe area, the UI zones
explainer qa --static <slug>                            # pacing, layout and paperwork QA of both cuts, in seconds
explainer qa --static <slug> --palette all              # the same in all eight palettes, one line each
explainer qa --static <slug> --every-frame --palette <a>,<b> # before make, in make's two palettes: every frame

Fill topic.json first (sources with real URLs, the post block, and the trend for a series day) and write world.ts, long.ts, short.ts. The grammar, the API, coordinates and draw order, and the layout rules (16:9 caption beside the subject; 9:16 caption band, subject clear of the platform UI) are in docs/building-a-world.md.

  • Length first. Run explainer timeline <slug> as soon as the beats exist. The long cut needs about 10-12 story beats plus chapters and a recap to reach 4:40, the short about 8-10 beats to reach 2:00. A line ! added ... s of reading room means the kit padded the cut (by at most 2 s a beat). A line ! duration ... is outside the target means the cut is still outside its window, and QA will fail; the line ends with the fix. Too short even after the padding: add a beat or chapter. Too long: drop a beat or tighten captions (the kit never speeds a cut up). If the person you work for decides that this topic needs another length, record it in topic.json windows with who decided, when and why (docs/building-a-world.md).
  • Look, with a grid. While you place labels and captions, add --grid to stills: a 100 px grid with pixel coordinates, the safe area and, in 9:16, the platform UI zones shaded. Each stills run replaces the older stills of that cut and palette (--keep keeps them).
  • Every palette. qa --static <slug> checks colour-light; --palette all runs it in all eight palettes, so mono and dark problems show before you render.
  • Every frame, before make. The default static QA samples a few moments per text; --every-frame runs the same frame checks on every frame at the render frame rate, and catches problems that last a fraction of a second. Run it in the two palettes you will give make (step 4): --palette <a>,<b> checks every cut in both. Without --palette it checks colour-light only, so a contrast problem in make's palettes would first show in make. make runs it too before rendering, each cut in its own palette, and stops on a failure unless --force.

Iterate stills -> fix -> static QA until it is green in every palette and the stills read well in BOTH aspects and in a mono palette. docs/troubleshooting.md maps every QA failure to its usual fix.

4 · Palettes (1 minute)

explainer palettes --list        # the eight palettes and the colour ramp each role takes in each
explainer palettes <slug>        # series mode: picks two that differ from yesterday's (ledger rules)

Any palette works for any topic. If captions name colours ("the green aurora"), set "palette": {"needsColour": true, "why": "..."} in topic.json: only colour palettes are then allowed.

5 · Make both cuts (about 10-20 minutes of machine time)

explainer make <slug> --palette-16x9 <a> --palette-9x16 <b>

Builds, checks the paperwork, runs the static QA and the every-frame check of each cut in its palette (it stops there on a failure unless --force), renders every frame, mixes sound (-14 LUFS), encodes, writes contact sheets, chapters and post copy, and runs the full QA. Output: out/<date>-<slug>/. It ends with READY or NOT READY. Run it in the background. After changing only copy or sound, add --reuse --keep to skip unchanged renders.

6 · QA gates: never ship a video that fails them

  1. make must end QA GREEN and READY (out/<date>-<slug>/qa.txt lists every check).
  2. Look at both contact sheets and at least six full-size frames per aspect (out/<date>-<slug>/<cut>/stills/).
  3. Recommended: an adversarial review by a second agent (or a person) that did not build it: one checks every caption, number and post line against the sources; one looks at frames of both cuts for anything clipped, overlapping, off-pace or misleading. Fix every blocking item and re-make. Prompts that work: docs/qa.md.

7 · Deliver (1 minute)

explainer deliver out/<date>-<slug>          # copies the finished files to out/deliver/<date>-<slug>/

Both MP4s (plus <slug>-x-9x16.mp4 when the short is over 2:20 and an X trim was made), both contact sheets, post-copy.md (copy per channel: YouTube, Shorts, Reels, TikTok, X, LinkedIn) and chapters.txt. It refuses a run that is not QA green. To change the copy, edit topic.json post and run explainer post out/<date>-<slug>. Publishing rules: docs/publishing.md.

8 · Series mode (optional)

For a recurring series (a daily explainer), set "kind": "daily" in each day's topic.json (the paperwork then also requires the trend block and no episode number in world.ts), and record each published day so topics never repeat and palettes rotate: explainer ledger add --run out/<date>-<slug>, explainer ledger seen "<topic words>" before choosing a topic, and explainer palettes <slug>. Scheduling, git workflow and sync across branches: docs/series-mode.md.

9 · Hand over

Give the user the paths deliver printed, the post copy per channel (the sections above the "NEVER PASTE" line in post-copy.md), and anything they should know: what the video simplifies, any beat you dropped and why.

10 · When something fails

Never hand over a broken video. Say what was made, what failed (the QA lines or the error) and what you would change. If one cut passes and the other cannot be fixed, deliver the passing one (explainer deliver <run> --cut long or --cut short) and say why. If explainer doctor or explainer selftest --quick fails, report the failing check and stop.

Rules that keep videos good

  • Every claim and number on screen or in the copy comes from a cited source; the hook is held to the same standard.
  • One world per topic, opened in place; one idea and one live phenomenon per beat; labels arrive after the caption types, one at a time; the camera is still whenever text appears. The kit enforces pacing; never speed a cut up: drop a beat or tighten words instead.
  • No hex colours in a topic: name roles (structure, ground, water, air, power, signal) so every palette works. Mark drawings of invisible things (arrows, particles) with K.mark so QA can check their contrast.
  • Things drawn out of scale keep a SCHEMATIC · NOT TO SCALE tag on screen.
  • No URL, web address or handle on screen or in the copy (QA and post enforce it); sources are named by publisher.

Related Skills