Agent demo video
Make a 45-100 second demo video in the calm style of a good product launch: one idea per clip, slow camera, the agent's real job shown as a picture, real numbers where they exist. Every clip is an HTML scene rendered frame by frame to MP4, so it is exact, repeatable and editable.
The rule that never bends: one clip at a time. Show it, wait for the user's approval, and only then start the next clip. If the user asks for changes, redo that clip (even a full redesign) and show it again. Never render clips ahead of approval.
Files in this skill
style.md- the visual rules and the list of looks the user rejected (read it before any scene).patterns.md- reusable scene patterns (page spill, evidence field, answer card, queue ending, numbers close) and engine gotchas.templates/examples/auto-approval/- the approved Auto-Approval Agent clips; copy patterns from here.templates/engine.js- the timeline engine. Every scene callsScene.*and the renderer callsseek(t).templates/base.css- tokens and shared parts: title card, browser window, agent panel, cursor.templates/title.html,templates/app.html,templates/end.html- chat-agent starting scenes (use only when the agent really is a chat agent).scripts/render.mjs- renders one scene to MP4 plus a contact sheet and a poster frame.scripts/assemble.mjs- joins approved clips with short cross-fades into the final video.
Render: node ~/.claude/skills/agent-demo-video/scripts/render.mjs <clip.html> <out.mp4> [--fps 30]
Assemble: node ~/.claude/skills/agent-demo-video/scripts/assemble.mjs <out.mp4> <clip1.mp4> <clip2.mp4> ...
Workflow
Work in a folder demo-video/<slug>/ in the user's project (or the scratchpad if there is no project).
Keep state.json there: { "clips": [{ "id", "file", "status": "draft|approved", "notes" }] }.
1. Brief and research (one short exchange)
Read the agent's code or docs first: how it is triggered, its stages, its inputs and outputs, and who
acts on its result. Find real, measured numbers (benchmarks, volumes, accuracy) and note their source.
Then ask only what you cannot infer: who watches the video, the 2-4 moments to show, and whether a
failing case should appear (it usually should). Default to 1280x720, 30 fps, no audio, the stone
palette and Newsreader + Inter from style.md.
2. Storyboard - gate
Write storyboard.md: a numbered list of clips. For each: purpose (one line), duration, the on-screen
text (professional wording, no slang), what the agent does step by step, and the camera beats. Shape
that worked:
- Opening: the problem as a picture (the input pile), one serif headline (6-9 s)
- Title: name + what it does in one line + 3-4 stage words (5-7 s)
- The agent working on one case: each stage visible, real stage timings (15-20 s)
- The decision: each question with its quote and reasoning; include a case that stops and hands over (25-40 s)
- Outcome: the human's work after the agent (e.g. the queue), then the real numbers held large, with a source line (15-22 s) For a chat agent the older shape (prompt -> steps -> result -> confirmation card) still applies.
Show the storyboard. Wait for approval.
3. Style frame - gate
Design the screen from how this agent really works, not from the reference video. riru is a chat agent,
so it has a prompt box; an agent that runs on its own (a pipeline, a batch reviewer) gets no chat box and
no fake prompts. Ask what the agent turns into what (pages into answers, tickets into replies, rows into a
report) and make that transformation the picture. Borrow only the calm: the pacing, the restraint, the
greys, the slow camera. Never copy a reference's layout element by element.
Build the app scene once with the real UI for this agent (the "generated frontend": a believable
workspace that makes the agent's job obvious at a glance) and render only its poster
(--poster-only). Show the image. Wait for approval. This fixes the look before any motion.
4. Clip loop - gate per clip
For clip N:
- Copy the right template to
clip_N.html, fill in the content and the timeline. - Render it. The renderer writes
clip_N.mp4,clip_N.sheet.png(frames every second) andclip_N.poster.png. - Look at the contact sheet yourself (Read the PNG) and fix anything off: clipped text, a camera move that hides the action, a step that flashes by too fast. Re-render once if needed.
- Show the user: the MP4 path, the contact sheet, and 2-3 lines on what happens and when.
- Stop and wait. On approval set the clip to
approvedinstate.jsonand go to clip N+1. On change requests, edit and re-render clip N, then show it again.
5. Assemble
When every clip is approved, run assemble.mjs (0.4 s cross-fades). Show the final path and its
contact sheet. Offer: a 9:16 cut, a GIF of one clip, or a version with captions.
Writing a scene
A scene is a 1280x720 HTML page. Put content in the DOM, then describe motion with the engine:
Scene.duration(14); // seconds
Scene.camera([{at:0, dur:0, x:640, y:360, s:1}, // focus point x,y in stage px, scale s
{at:1.2, dur:1.1, x:1080, y:560, s:1.9}, // ease in to the prompt box
{at:6.0, dur:1.2, x:640, y:360, s:1}]); // pull back
Scene.type('#prompt', 'Find the MacBook Air 13 on these four stores', {at:1.8, cps:24});
Scene.anim('#step1', {opacity:0, y:6}, [{at:4.2, dur:.5, to:{opacity:1, y:0}}]);
Scene.set('#price-amazon', [{at:7.4, html:'$1,099'}]);
Scene.cursor([{at:0, x:900, y:650}, {at:3.6, dur:.7, x:1188, y:676, click:true}]);
Scene.spin('#spinner', 4.2, 9.0);
Every call is pure in time: seek(t) must give the same frame for the same t, so never use CSS
animations, setTimeout, Math.random or Date in a scene. Use Scene.* for anything that moves.
Quality bar (check on every contact sheet)
- One action on screen at a time; hold 1.2-2 s after each result so it can be read.
- Camera moves are slow (0.9-1.4 s, ease in-out), at most one move per beat, and land on the thing that changes. Never zoom past 2.2x.
- Text the viewer must read stays on screen for at least 1.5 s per 8 words.
- Typing runs at 18-28 characters per second, with a caret.
- One serif and one sans across every clip (check fonts before assembling).
- Explain what each thing is, not how it is computed. Every answer shows quote + reasoning.
- Numbers on screen are real and sourced, or plainly labelled illustrative.
- Nothing from the "Rejected in review" list in
style.md. - Data looks real but is made up. No real patient, customer or employee data, ever. No real third-party brands unless the user owns them or asks for them; prefer neutral names.
- For chat agents only: any outward action shows a confirmation card the user clicks.
Learning from feedback
When the user rejects or corrects a clip, add the lesson to style.md (principle or "Rejected in
review") and any new reusable scene to patterns.md, so the next video starts from it.