One prompt to a 30-second explainer video: 4 rules that make code-drawing agents reliable

_haiderfarooq · reddit · 2026-10-28

The author built a skill where a coding agent (Claude Code; also runs in Codex and Gemini) draws a short explainer reel entirely in code—paper-cutout props, a mascot, word-popped captions; one prompt in, mp4 out, no video model or API keys, 1 minute laptop render. What made it reliable: voice is the clock (local kokoro TTS + whisper.cpp word timestamps cue every scene); the agent must look at its own output (dumps 3–4 stills at prop-landing moments before export, with seeded deterministic renders so fixes stay fixed); checks it can't argue with (a script flags overlaps and mandates moving props rather than shrinking captions, which the agent otherwise does to game the check); and the skill file encodes per-scene rules, not drawing code—style fingerprints beat example code. Caveat: first render is never right, 2–3 rounds of "move that" are normal; macOS only.

Original post →

More from coding & agent

coding & agent channel →