Skip to content

Write HTML. Render video. Built for agents.

chore: merge main into fix/prompt-guide-validation-bugs, resolve conflicts

Vance Ingalls559dd0e659f5
diff --cc docs/prompting/examples.mdx
index 4f2a3c9a15,0000000000..73aaa7a671
mode 100644,000000..100644
--- a/docs/prompting/examples.mdx
+++ b/docs/prompting/examples.mdx
@@@ -1,108 -1,0 +1,108 @@@
+---
+title: Verified example prompts
- description: "18 copy-paste prompts, every one run end-to-end to a finished video that passes lint and validate."
++description: "18 copy-paste prompts, every one run end-to-end to a finished video that passes check."
+---
+
- Every prompt below has been run end-to-end and one-shots a finished video that passes `lint` and `validate`. Swap the copy, colors, and inputs for your own.
++Every prompt below has been run end-to-end and one-shots a finished video that passes `check`. Swap the copy, colors, and inputs for your own.
+
+### With registry blocks and workflows
+
+<AccordionGroup>
+ <Accordion title="Stat count-up">
+ > /motion-graphics 6-second 1920x1080 video, dark navy background. Beat 1 (0-1s): label "ARR" fades up small, top-center. Beat 2 (1-4s): a giant number counts up to $4.2M with an odometer roll, easing out as it lands. Beat 3 (4-6s): "+312% YoY" stamps in below in green, then everything settles into a gentle ambient idle (subtle breathing scale, slow particle drift). Use the `apple-money-count` registry block as base. No narration.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-stat-countup.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Animated social post">
+ > /motion-graphics 7-second 1080x1350 vertical video. A real tweet card (handle @hyperframes, text "we render video from HTML now. no timeline UI. just code.") slides up over a soft animated gradient, likes counter ticks 0→1.2K, then the card tilts in 3D and a highlight sweeps the second sentence. Hold on the card at the end. Use the `x-post` and `vfx-liquid-background` registry blocks. No narration, no image or media files.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-tweet.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Map route">
+ > /motion-graphics 8-second 1920x1080 video. Dark world map, a glowing arc animates from San Francisco to Tokyo over 3s, destination pin drops with a pulse, then camera zooms into Tokyo and the label "LATENCY: 89ms" types on. Use the `nyc-paris-flight` registry block as the base pattern, restyle to teal on charcoal. No narration.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-map-route.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Logo sting with shader transition">
+ > /motion-graphics 5-second 1920x1080 logo sting. Beat 1 (0-2s): the word "ACME" assembles from scattered particles. Beat 2 (2-3s): full-frame `swirl-vortex` shader transition. Beat 3 (3-5s): logo lockup + tagline "Ship faster." settles on white, holds. Use `code-particle-assemble` for the assembly.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-logo-sting.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Product launch from a URL">
+ > /product-launch-video Make a 45-second 1920x1080 launch video for https://linear.app. Energetic but minimal, use the site's own palette and screenshots. Structure: hook stating the problem, 3 feature beats with UI captures and one-line captions, end card with logo + "Try it free". Female TTS voice, confident tone, subtle electronic BGM under -18dB.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-product-launch.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Explainer from pasted text">
+ > /faceless-explainer Turn this into a ~60-second 1080x1920 vertical explainer: [paste your text]. One idea per scene, big typography, diagrams over stock footage, brand color #FF5533 on off-black. Male TTS voice, calm. Embedded captions, keywords highlighted in the brand color.
+
+ With a verbatim script, final duration follows the narration — ask for "~60 seconds", not exactly 60.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-explainer.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="GitHub PR reveal">
+ > /pr-to-video Make a 30-second 1920x1080 feature-reveal video from [PR URL]. Lead with what users get, not the diff; show the key code change with the `code-diff` block for one beat only; end on version number + repo URL. No narration, kinetic captions instead.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-pr-video.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Beat-synced slideshow">
+ > /music-to-video 20-second 1080x1080 video from ./track.mp3 (pick the best 20 seconds of the track) and the 8 photos in ./shots/. Cut on the beat grid, one photo per bar, punch-in on downbeats, `whip-pan` transitions on phrase changes. End on the last photo with "SUMMER '26" in condensed caps. No TTS.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-music-slideshow.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+</AccordionGroup>
+
+### Freeform — no blocks, hand-built HTML/CSS/SVG/GSAP
+
+<AccordionGroup>
+ <Accordion title="Kinetic quote">
+ > 12-second 1920x1080 video, off-white background. The quote "Simplicity is the ultimate sophistication" builds word by word in massive black serif type, each word snapping in with a slight overshoot; "sophistication" lands last in italic with a hand-drawn underline drawing on. Attribution "— Leonardo da Vinci" fades in small, bottom-right, at 9s. Settle into a barely-visible ambient idle to the end. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-kinetic-quote.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Countdown title card">
+ > 6-second 1920x1080 video. Numbers 3, 2, 1 each fill the frame for one second — each number wipes in with a diagonal mask and its background alternates black/white with inverted text. At 3s the frame slams to "LAUNCH DAY" in condensed caps with a screen-shake, holds with a subtle grain flicker. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-countdown.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Bar chart race">
+ > 10-second 1920x1080 video, dark slate background. Title "Top languages 2026" top-left. Five horizontal bars (Python, TypeScript, Rust, Go, Java) grow from zero with staggered starts, overtaking each other twice mid-animation; each bar has a right-edge value label counting up to its final %. End state holds 2s with the leader pulsing once. Hand-draw everything — no chart library. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-bar-race.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Before / after split">
+ > 8-second 1920x1080 video. Vertical split: left half labeled "BEFORE" shows a cluttered mock UI (grey, 12 overlapping windows drawn in CSS), right half "AFTER" shows one clean card. Both halves settle within the first second. A vertical divider line sweeps left to right at 4s, wiping the clutter into the clean state across the full frame. End on "One tool." centered. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-before-after.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Loader → reveal">
+ > 7-second 1920x1080 video, black background. A thin white progress ring draws from 0° to 360° over 4s while a percentage counter (0→100) ticks in the center in mono type, matching the arc exactly. Ring and counter fade out fully by 4.2s; at 4.2s the ring bursts outward into short radial dashes and "READY." stamps into the center, then holds. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-loader-ready.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="3D cards (Three.js)">
+ > 9-second 1920x1080 video, light warm cream background. Build the scene in Three.js via the adapter: three rounded card meshes labeled "Design", "Build", "Ship" lie flat on the ground plane, camera at a fixed 3/4 isometric angle, soft directional light + ambient so the cards cast soft shadows. One at a time each card lifts and straightens upright to face the viewer center-frame while the other two slide apart and dim; then it returns. Finish with all three standing upright in a row by 8.5s, hold. All easing power3.inOut. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-3d-cards.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="SVG line-draw logo reveal">
+ > 6-second 1920x1080 video, deep green background. A minimal mountain-range logo draws on as an SVG stroke over 2.5s, then the stroke fills with cream, the wordmark "NORTHTRAIL" letterspaces in beneath it, and a thin rule expands from center. Hold the last 1.5s. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-svg-logo.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Word-swap headline">
+ > 8-second 1920x1080 video, white background. Static sentence "Make it ___." in huge black type stays centered while the blank cycles through "faster", "simpler", "yours" — each swap flips vertically like a split-flap board, 1.5s apart, with a slight blur on motion. Final word "yours." lands in orange and the period pops. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-word-swap.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Stat tile dashboard">
+ > 10-second 1920x1080 video, near-black background. Four stat tiles slide up in a 2x2 grid, staggered: "99.99% uptime", "42ms p50", "18M req/day", "0 incidents". Each tile's number counts or decrements to its value with its own easing; sparklines draw underneath in teal. At 8s the grid scales back and "Built to hold." fades in above. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-data-ticker.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+ <Accordion title="Vertical social hook">
+ > 9-second 1080x1920 vertical video, charcoal background. Social-style hook: "nobody talks about this" types on center in bold white, then each following phrase replaces it on a hard cut every 1.5s — "it's not your code", "it's your prompts", "here's the fix" — with yellow highlight bars behind key words, alternating tilt. Last phrase holds with an arrow-down bounce. No audio.
+ <video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/example-vertical-hook.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+ *Rendered from the prompt above, unedited.*
+ </Accordion>
+</AccordionGroup>
diff --cc docs/prompting/rules-and-anti-patterns.mdx
index d68d802e77,0000000000..347dbe80a5
mode 100644,000000..100644
--- a/docs/prompting/rules-and-anti-patterns.mdx
+++ b/docs/prompting/rules-and-anti-patterns.mdx
@@@ -1,54 -1,0 +1,54 @@@
+---
+title: Rules and anti-patterns
+description: "The technical rules that keep renders correct, and the prompt patterns that cause friction."
+---
+
+## Rules to know
+
+The skills enforce these automatically, but if you hand-edit compositions or debug issues, these are the rules that matter:
+
+1. **Register all timelines** on `window.__timelines` — the renderer can't seek animations it doesn't know about.
+2. **Video elements must be `muted`** — audio goes in separate `<audio>` elements so the renderer can mix it.
+3. **No `Math.random()`** — random values produce different frames on each render, breaking determinism. Use a seeded PRNG (e.g. mulberry32) if you need pseudo-random values.
+4. **Synchronous timeline construction** — no `async`/`await` or `fetch()` during GSAP timeline setup.
+5. **Timed elements need `class="clip"`** — plus `data-start`, `data-duration`, and `data-track-index`.
+6. **Add entrance animations to every scene** — elements appearing without animation feel broken on video.
+7. **Add transitions between scenes** — jump cuts between scenes are almost always unintentional in composed video.
+
+<Warning>
+ Rules 1–5 are technical requirements — breaking them produces incorrect renders. Rules 6–7 are best practices that the skills apply by default. You can override them when you have a reason to.
+</Warning>
+
+
+
+## Anti-patterns
+
+Each one causes friction or wrong output for a specific engine reason — with the fix.
+
+**Don't ask for React / Vue components.** Compositions are plain HTML with `data-*` attributes and a GSAP timeline; framework components force a translation step.
+- ❌ `build a React component for the intro`
+- ✅ `build the intro scene` (the agent writes composition HTML directly)
+
+**Don't over-spec resolution or framerate.** Defaults (1920×1080, 30fps) render fast and look great; higher specs slow rendering meaningfully.
+- ❌ `render in 4K 60fps` (for a social clip)
+- ✅ say nothing — or `4K` only when the delivery target actually needs it
+
+**Don't skip the slash command.** Without `/hyperframes`, the agent guesses at HTML video conventions instead of loading the framework's actual rules.
+- ❌ `make me a video of...`
+- ✅ `/hyperframes make me a video of...`
+
- **Don't paste raw error logs.** Lint and validate localize the problem first; a bare log makes the agent re-derive what the tools already know.
++**Don't paste raw error logs.** `check` localizes the problem first (lint, then a browser gate); a bare log makes the agent re-derive what the tool already knows.
+- ❌ pasting 200 lines of console output
- - ✅ `lint passes but validate reports a missing asset in scene 2 — fix it`
++- ✅ `check reports a missing asset in scene 2 — fix it`
+
+**Don't assume the agent knows your assets.** It will look, but a path skips the search.
+- ❌ `use my logo`
+- ✅ `use assets/logo.svg`
+
+**Don't override a workflow's designed style.** Each workflow skill carries an art-directed preset; fighting it produces a compromise, not your theme.
+- ❌ `/pr-to-video ... dark theme`
+- ✅ let the preset carry the look, or use a freeform build when you need full style control
+
+**Don't hard-time a verbatim script.** With supplied narration text, duration follows the spoken words.
+- ❌ `a 60-second explainer from this script: ...`
+- ✅ `a ~60-second explainer from this script: ...`
diff --cc skills-manifest.json
index c2cb8b913f,973306591c..d7decb4eb9
--- a/skills-manifest.json
+++ b/skills-manifest.json
@@@ -22,7 -22,7 +22,7 @@@
"files": 1
},
"hyperframes-animation": {
- "hash": "1c58fa2ea614e477",
- "hash": "b982a1af9821e326",
++ "hash": "cb99a192b1800400",
"files": 99
},
"hyperframes-cli": {
@@@ -30,7 -30,7 +30,7 @@@
"files": 7
},
"hyperframes-core": {
- "hash": "73e6f4cad4701e6d",
- "hash": "690ebb3ba5420b90",
++ "hash": "61c9e92111f32233",
"files": 14
},
"hyperframes-creative": {