Communitygithub.com

leo-guinan/create-explainer

Create, render, and visually verify a 3D pixel-art visual explainer video (9:16 vertical MP4 with beat-synced audio) for any technical, mechanical, scientific, or economic topic using the Explainer Engine.

create-explainer 是什么?

create-explainer is a Claude Code agent skill that create, render, and visually verify a 3D pixel-art visual explainer video (9:16 vertical MP4 with beat-synced audio) for any technical, mechanical, scientific, or economic topic using the Explainer Engine.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/leo-guinan/explainer-engine/tree/HEAD/skills/create-explainer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Create a 3D Pixel-Art Explainer Video

Use this skill whenever the user asks to explain how something works, turn an article/whitepaper/image/transcript into a short visual explainer video, or add a new scene to explainer-engine.

1. Distill the Topic into the 8-Beat Storyboard

Every high-retention zero-voiceover explainer follows the same causal rhythm (typically 28 seconds @ 30fps, or 16 seconds for compact topics):

  1. Hook (0.0–3.0s): Open in media res on the full system in motion at real speed/scale. Question banner: "HOW DOES <X> WORK?" + punchy 4–5 word benchmark takeaway.
  2. Frame Shift / Problem (3.0–5.5s): Justify going inside — slow down time (64x SLOW), peel back armor (X-RAY), or show the bottleneck (WHY DO CHAINS CHOKE?).
  3. Beats 1–4 (5.5–20.5s, numbered badgeNumber: 1..4): Walk sequentially down the causal chain (input → transformation → control → output).
    • Include at least one Edge Case / Failure Mode beat (e.g., "WHAT IF A LOOP FAILS?" → "VERIFY, ABSTAIN, OR PAUSE" or "WHAT IF 2 BLOCKS TIE?"). Edge cases create the strongest "aha!" moments.
    • Each beat has: a short question banner, isolated 3D motion, 1–2 callout labels max, and a ≤ 5-word takeaway pill that drops in after 0.75–0.85s.
  4. Synthesis (20.5–24.5s, "ALL TOGETHER"): Pull back to show every subsystem operating together at full speed.
  5. Finale & Seamless Loop (24.5–28.0s): Match the exact camera.pos, camera.target, and camera.fov of Beat 0 so the video loops invisibly back to 0:00.

Cognitive & HUD Rules

  • Live Telemetry Metric (meta.telemetryLabel): Choose 1 concrete number that changes meaningfully across the story (e.g., MOTOR RPM, COST / TASK, NETWORK TPS, TOKENS / SEC).
  • Thematic Progress Bar (meta.progressIcon): Pick from 'screw' | 'gear' | 'packet' | 'bolt' | 'block'.
  • Zero clutter: Never put more than 2 callouts on screen at once. Keep callout labels to 1–3 words.

2. Scaffold & Author the 3D Scene

  1. Run the scaffolder:
    npm run new-scene -- <scene-id> "How Does <Topic> Work?"
    
  2. Read references/scene-spec.md for the exact ExplainerScene API, ProceduralParts.ts helpers, and vertical 9:16 camera framing formulas.
  3. Build clear, unmistakable 3D silhouettes using makeToonMaterial, createGearMesh, createRingGearMesh, createSpringMesh, createGhostShell, and EnergyStream.
    • Call ctx.markNoOutline(obj) on ghost wireframes and glowing EnergyStream groups so they don't generate dark Sobel outlines.
    • Register an anchor with ctx.registerAnchor('id', obj) for every callout target.

3. Typecheck, Build, and Render

  1. Verify TypeScript and Vite bundle:
    npm run check
    
  2. Render the MP4 video:
    npm run render -- --scene=<scene-id> --out=out/<scene-id>.mp4
    
    (Pass --audio=path/to/track.mp3 to override the built-in procedural beat-synced synth.)

4. Visual QA & Polish Loop (Mandatory)

Never ship a rendered video without visually inspecting it. Read out/<scene-id>.mp4 (or extract key frames with ffmpeg) and verify all 5 checks:

  1. Top Banner Clearance: Does the hero 3D subject sit cleanly below the hazard-stripe question banner and takeaway pill (top ~25% of frame)?
  2. Callout Margins: Do all callout boxes stay completely inside the 720×1280 frame with zero clipping and zero overlap against the banner or each other?
  3. Full Silhouette Visibility: In wide shots (hook, ALL TOGETHER, loop), is the entire mechanism framed cleanly with navy void breathing room on left and right?
  4. Motion & Causal Clarity: Does each beat's 3D animation visibly demonstrate its takeaway without needing voiceover?
  5. Seamless Loop: Does the final second match the opening camera & visual state?

If any check fails, adjust the beat's camera or callouts[].offset, re-render, and inspect once more before reporting completion.

相关技能