Skip to content

Write HTML. Render video. Built for agents.

docs(prompting): capstone v3 — The Timeline, one continuous camera journey

Vance Ingallsa90e343e8e4f
diff --git a/docs/prompting/capstone.mdx b/docs/prompting/capstone.mdx
index 8e364251e7..a9768cd9af 100644
--- a/docs/prompting/capstone.mdx
+++ b/docs/prompting/capstone.mdx
@@ -1,119 +1,117 @@
---
-title: Capstone — every technique, one template
-description: "One prompt, one reusable composition, every technique in this guide — rendered twice with different variables, dissected frame by frame."
+title: Capstone — every technique, one journey
+description: "One prompt, one continuous camera move, every technique in this guide — the viewer rides the timeline itself from typed markup to rendered MP4."
---
-<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-wrapped-nimbus.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
-*"OSS Wrapped" for the fictional project Nimbus — 1920x1080, ~66 seconds, one prompt, unedited.*
+<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-timeline-default.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+*"The Timeline" — 1920x1080, ~62 seconds, one prompt, one unbroken camera move, unedited.*
Every technique in this film has a chapter in this guide.
-The film is an **OSS Wrapped** — the year-in-review any open-source project could render for itself. The topic is doing real work: a year in review *naturally* needs a chart, a map, a code diff, real footage of a maintainer, a release montage, and a celebration — so every capability chapter shows up because the story calls for it, not as a demo reel. And because a Wrapped is a template by nature, the demo of [variables and templating](/prompting/variables-and-templating) is the film itself: the same composition rendered twice, for two different fictional projects, further down this page.
+The concept is the product: the viewer travels along one literal timeline — the thing HyperFrames is built on — from the first typed character to the finished MP4. Everything in it is true: real catalog counts, real cloud regions, real product surfaces, footage staged as the material the tool processes. And the film has no scenes in the slideshow sense — it is one continuous camera journey through one wide world, which is the chapter's biggest lesson.
+
+## The cinematography contract
+
+Two earlier builds of this capstone passed every gate and still failed review — first as sparse frames floating in space, then as a well-dressed slideshow: discrete scenes, hard cuts, motion confined inside each frame. What fixed it wasn't more animation; it was a **cinematography contract** written into the prompt:
+
+- **One continuous camera.** The whole film is a single wide world the camera dollies across in one unbroken move — easing through regions, accelerating between them, never fully stopping until the final breath. Scene changes happen by *arriving*: the next region is already visible at the frame edge before the camera reaches it, and the previous one exits by parallax, not by fade.
+- **Persistent elements that tell the story.** Three things never leave frame: the **wire** (a single continuous line that is the timeline itself — it becomes the chart baseline, the map arc, the waveform, the 3D coil), the **ruler** (a frame-ruler chrome strip whose playhead tracks the film's real playback time), and the **protagonist** — the `<div class="clip">` typed in the opening, which rides the wire through every region and is the thing that finally renders at the end.
+- **Anti-slideshow negatives.** No element cluster that fades in centered, sits, and fades out; no region that reads as a static slide the camera happens to pass; no motion that is just idling in place.
+
+Like every rule in this film, it only exists because it was demanded in writing — the linter can verify a timeline, but only the prompt can demand cinematography.
## The full prompt, verbatim
This is the exact prompt that produced both renders — nothing paraphrased, nothing trimmed:
-> /general-video Make a ~66-second 1920x1080 "year in review" film — an **OSS Wrapped**: the annual recap any open-source project could render for itself. The composition is a reusable template; it will be rendered twice with different variables (two fictional projects), so nothing project-specific may be hardcoded. Build it as a 10-frame storyboard.
+> /general-video Make a ~60-second 1920x1080 promo film for HyperFrames — the open-source framework that turns hand-authored HTML and GSAP animation into deterministic, frame-accurate video. The film's concept IS the product: the viewer travels along one literal timeline — the thing HyperFrames is built on — from the first typed character to the finished MP4. Everything true, nothing invented: real catalog counts, real cloud regions, real product surfaces.
>
-> **Architecture constraint (important, technical):** author this as a SINGLE composition file — one `index.html` containing all frames as sibling `class="clip"` sections on the timeline. Do NOT split frames into separate files referenced via `data-composition-src`. HyperFrames scopes `data-composition-variables` per composition file — keeping one file and one variable scope is what lets one `--variables` render call re-skin every frame at once.
+> **Cinematography contract (the most important section — this is what the film lives or dies on):**
+> - ONE continuous camera journey. The whole film is a single wide world (one large scene space) that the camera dollies across — left to right, with occasional push-ins and one descent — in one unbroken move. The camera is ALWAYS traveling: it eases through regions of interest (slowing to let a beat land, never fully stopping for more than a breath) and accelerates between them. There are NO hard cuts anywhere in the film except inside the two sanctioned seam moments named below.
+> - Scene changes happen by ARRIVING, not cutting. The next region is already visible at the edge of frame before the camera reaches it; the previous region exits by parallax, not by fade-out.
+> - NO slideshow tells: no element cluster that fades in centered, sits, and fades out; no region that reads as a static slide while the camera happens to pass; no motion that is just shaking or idling in place. Motion = the camera's travel + elements entering along the direction of travel + elements the camera hands off between regions.
+> - Three persistent elements thread the ENTIRE film and are never absent:
+> 1. **The wire** — a 3px ink-colored horizontal line, the literal timeline. It is the film's spine: every region hangs off it, the camera follows it, and it visibly continues into the next region at all times. It may bend, split into tracks, become a waveform, arc across a map, spiral into 3D — but it is always the same continuous line.
+> 2. **The ruler** — a thin frame-ruler chrome strip across the top: tick marks, a running timecode, and a playhead marker that advances in sync with the film's actual playback time (at t=30s the playhead is at 30s). The ruler is the product's own UI language and it never leaves.
+> 3. **The clip card** — the `<div class="clip">` typed in the opening travels the whole journey: it slides onto the wire as a clip chip after being typed, rides ahead of the camera between regions (handing itself off — visible leaving one region and arriving in the next), and is the thing that finally renders at the end. It is the protagonist.
>
-> **Variables (declare once on the root):** `projectName` (string, default "Nimbus"), `tagline` (string, default "Weather data, piped."), `ground` (color, default `#0e1526` deep storm navy), `ink` (color, default `#4fd8eb` bright cyan-teal), `heroStat` (number, default 42), `heroStatLabel` (string, default "RELEASES SHIPPED"). Every appearance of the project name, tagline, palette, and hero stat must resolve from these variables — bind text with `data-var-text` or script, colors with the CSS custom properties. The film must read perfectly under a completely different set (it will be re-rendered as "Forge / Builds that don't break. / coal `#1a120b` / ember `#ff9a3d` / 63 / RELEASES SHIPPED").
+> **Message, stated once:** "Write HTML. Render video." — opening hook and closing lockup. Arc: Type → Mount → Measure → Everywhere → Material → Surface → Rhythm → Depth → Render. Audience: developers evaluating a programmable video tool. Mood: focused build-up that keeps accelerating, resolving confident and warm at the render.
>
-> **Storyboard shape, stated once:**
-> - Message: "A year of shipping, rendered." — any project's year, turned into a film by one template.
-> - Arc: Hook → Mark → Change → Numbers → World → Voice → Surface → Rhythm → Celebration → Landing.
-> - Audience: open-source maintainers and the developers who follow them.
-> - Mood: proud, kinetic, end-of-year energy — a driving beat that earns a confetti drop and settles warm.
+> **Direction (every region obeys it):**
+> - Two-color discipline: `ground` deep charcoal `#141210`, `ink` vivid amber-orange `#ff7a33` — the only hue; neutral warm off-white for reading text is non-chromatic. Emphasis via inversion, weight, scale, density — never a third color.
+> - VO-paced reveals: each region's elements land on their spoken cues as the camera arrives; secondary elements keep resolving while the camera is present; the region is complete just as the camera accelerates away.
+> - Permanent chrome: the ruler (persistent element 2) plus a faint ink grid at ~8% opacity over the ground, everywhere in the world.
+> - Density: every region fills three roles — one focal element at display scale, at least two supporting elements on their own cues, and the chrome/wire. Asymmetric compositions; display type ~a tenth of frame width; three depth layers with parallax between them (foreground elements slide past faster than the wire plane, backdrop slower — the parallax is what sells the continuous travel).
+> - Negative list: no purple-blue AI gradients, no bokeh, no real browser/OS chrome screenshots, no stock photography, no third hue, no unseeded randomness, no static holds mid-film (the only near-still moment is the final lockup breath).
+> - SFX from the media pipeline's library on the visual hits: keystrokes at the opening, a soft whoosh at each region handoff, ticks on counters and beat cuts, one riser into the render moment, one stamp on the lockup. All under the VO.
>
-> **Direction for every frame (state once, every frame obeys it):**
-> - Two-color discipline: `ground` is the only ground, `ink` the only hue — emphasis via inversion, weight, scale, density, never a third color. Neutral warm off-white for reading text is permitted as non-chromatic.
-> - VO-paced reveals: at each frame's t=0 only what the narrator is saying is on screen; every other element lands on its own spoken cue, reveals spreading across the back half.
-> - Holds stay fully still or carry only a subtle idle — never drift or breathing.
-> - Negative list, checked per frame: no purple-blue AI gradients, no bokeh, no real browser chrome or cursor screenshots, no stock photography, no third hue. (Frosted-glass panels are explicitly sanctioned on Frame 7 only — that frame's technique IS translucency; keep glass off every other frame.)
-> - Callback: Frame 1 plants a thin accent tick-mark motif (a short angled ink stroke, like a checkmark being started); Frame 9 completes it into a full oversized check at the confetti moment; Frame 10 carries it, calm and resolved, in the lockup.
-> - Exactly one breather: Frame 10. Every other frame develops continuously.
-> - SFX cues per frame, resolved from the media pipeline's SFX library and placed exactly on their visual hits: stamp-thuds on type slams, soft whooshes on panel entrances, ticks on counter/beat moments, one riser into the confetti drop. Keep them under the VO.
+> **The journey (regions along the wire, ~timings; the camera flows through these, they are NOT cuts):**
>
-> **Density and composition (state once, every frame obeys it):**
-> - Permanent chrome rides every frame: a faint ink-colored grid (hairlines at ~8% opacity), a thin mono meta strip across the top (the project name left — variable-bound — "WRAPPED · &lt;year&gt;" center, frame index + running timecode right, low weight), and a 1px ink hairline rule near the bottom edge. Chrome persists across every cut.
-> - Every frame fills three roles: one focal element at display scale, at least two supporting elements landing on later spoken cues, and the chrome. No element floating alone in empty space.
-> - Display type runs huge (roughly a tenth of frame width per line); focal + supporting cluster commands two-thirds of the frame; compose asymmetrically (60/40 splits), never one centered element in emptiness.
-> - Secondary motion fills every back half: counters tick, hairlines draw, labels stamp, underlines sweep.
-> - Three depth layers minimum per frame.
+> **Type (0–7s).** Black-on-charcoal close-up: a cursor types real HyperFrames markup character by character — `<div class="clip" data-start="0" data-duration="4">` and a `gsap.timeline({ paused: true })` line. As the typed line completes, the text's baseline extends and becomes **the wire** — the underline literally grows into the timeline and the camera begins its dolly along it. The typed div folds into a compact clip chip (persistent element 3) that drops onto the wire. Kinetic display type states "WRITE HTML." as the travel begins.
>
-> **Frame 1 — Hook (0–5s).** Kinetic type, word by word with staggered spring-pop overshoot: "A YEAR" / "OF SHIPPING." — then the project name chip stamps in beneath (variable-bound), with the tagline in mono under it. The accent tick-mark motif fades in beside the name at low weight — planted quietly. Supporting: a mono "WRAPPED" kicker and a year chip.
+> **Mount (7–14s).** Traveling along the wire: it splits into three parallel track lanes; clip chips slide in along the direction of travel and seat onto the lanes on their spoken cues (audio track chip, video track chip, our protagonist chip among them). Small mono labels (`data-start`, `data-track-index`) tag themselves onto chips as the camera passes. The lanes merge back to one wire as the camera accelerates out.
>
-> **Frame 2 — Mark in 3D (5–11s).** The project's mark as real 3D — build an abstract geometric emblem (an extruded angular monogram or faceted polyhedron, ink-colored material on the ground, rim-lit) in **Three.js via the frame adapter** (never CSS fake-3D). It rotates in with momentum, overshoots, settles to a three-quarter pose with a slow specular sweep. Supporting: mono axis-tick readouts and a "RENDERED IN 3D" kicker landing on their cues.
+> **Measure (14–21s).** The wire becomes a chart baseline (same line, same thickness — no cut): adapt the **`data-chart` registry block** — six labeled bars rise from the wire itself on spoken cues while a hero numeral counts up beside them in huge tabular mono: **50+ CATALOG BLOCKS** (the real registry count; supporting chips: 19 AGENT SKILLS · 7 RUNTIME ADAPTERS — also real). The bars recede by parallax as the camera moves on; the tallest bar's top edge hands off into the next region's horizon.
>
-> **Frame 3 — The change (11–18s).** The year's biggest change as code: adapt the **`code-diff` registry block** — a diff card where removed/added lines slide in per-line with syntax-real content (invent a plausible API rename for a data-pipeline library), then the key added line gets an ink underline sweep. Supporting: a file-path chip and a "+412 −118" stat chip.
+> **Everywhere (21–28s).** The wire arcs and the ground falls away: adapt the **`world-map` registry block** — the dotted world map scrolls beneath while the wire becomes a great-circle route arcing across it. Real render infrastructure, truthfully labeled: pulses light up at AWS and Google Cloud regions (US-EAST-1 · EU-WEST-1 · AP-SOUTH-1) with a "CLOUD RENDER · LAMBDA + CLOUD RUN" kicker — HyperFrames' actual deploy targets. The map tilts away as the wire descends into the next region.
>
-> **Frame 4 — Numbers (18–25s).** Adapt the **`data-chart` registry block**: a full bar chart (at least six labeled bars, gridline ticks) staggers up while the hero numeral counts up beside it in huge tabular mono figures — the count lands exactly on `heroStat`, labeled with `heroStatLabel` (both variable-bound). The chart baseline is drawn as a strong 4px ink line. **Matched-motion transition out:** that exact baseline — same y-position, same thickness — becomes Frame 5's equator line; do not cut away from it.
+> **Material (28–39s).** The wire threads into a working canvas where footage is the material on the timeline: a real talking-head clip (generate a short clip of a person speaking one neutral line via the media pipeline's avatar video generation — it is material being processed, not a testimonial; **transcode it to HEVC `hvc1`** so the automatic proxy subsystem carries preview) sits as a clip on the wire. As the camera arrives, the framework visibly works the footage: the subject **mattes out via background removal** (the background peels away as a layer sliding off along the travel direction), a designed lower-third chip docks beside them, and **word-synced captions** from the clip's own transcription land word by word — adapt a bold **catalog caption component** (`caption-kinetic-slam` or similar). The clip's own audio ducks the BGM briefly; the VO resumes as the camera pulls away and the captioned clip recedes by parallax.
>
-> **Frame 5 — World (25–32s).** Adapt the **`world-map` registry block**: the dotted world map fades up around the carried-over equator line; contributor pulses light up across continents on their spoken cues (each a small ink dot with an expanding ring), then three great-circle arcs draw between hubs. Supporting: a ticking "CONTRIBUTORS" counter and three tiny city-code labels (invent neutral ones).
+> **Surface (39–45s).** SANCTIONED SEAM #1: the camera pushes through an **`sdf-iris` shader transition** — the iris opens ONTO the continuation of the same wire (the wire is visible through the iris throughout; this is a lens the journey passes through, not a cut). Inside: frosted-glass inspector panels (real translucency — blur over what's behind; the product's Studio design language) hover above the wire carrying live values (`ease: power3.out`, a color token, an fps readout), over a **generated-artwork backdrop** — a flat abstract mural evoking motion trails, generated **palette-neutral (grayscale) and duotoned live by CSS** from the two variables so it re-skins with everything else. Drifting `data-*` tags ride between mural and glass, clear of all text.
>
-> **Frame 6 — Voice (32–43s).** The community's voice as real footage: **generate a short (~8s) talking-head clip of a fictional maintainer via the media pipeline's avatar video generation** (HeyGen avatar path; pick any stock avatar and a voice that reads as a calm engineer), speaking exactly: "We shipped every single week — and the community carried it." Then treat that clip as supplied footage and put the media pipeline through its paces: **transcode the clip to HEVC (`hvc1`) before wiring it in** so the automatic proxy subsystem carries preview while render uses the original; **matte the speaker out with background removal** into a transparent cutout; composite the cutout over a designed scene panel (asymmetric, ink panel behind the speaker, name/handle lower-third chip beside them — the lower-third is part of this frame's design, variable-bound project handle); and add **word-synced captions** from the clip's own transcription, styled with a **catalog caption component** (adapt `caption-kinetic-slam` or a similarly bold caption component from the catalog) rendering each word on its spoken timing. The maintainer's audio ducks the BGM; VO hands off to the clip and resumes after.
+> **Rhythm (45–52s).** The wire becomes a waveform: **resolve the BGM first, run `hyperframes beats` on it, and drive this region on the detected grid** — the waveform pulses and compact media cards (a lyric line, a photo card, a chart flash) snap onto the wire on real analyzed beats while the camera keeps traveling; each snap gets a tick SFX. At least six beat-hits. SANCTIONED SEAM #2: the beat-hits may hard-cut card content ON the beat — the sanctioned exception, because the camera itself never stops moving through them.
>
-> **Frame 7 — Surface (43–49s).** Enter through a **shader transition: adapt the `sdf-iris` block** (an iris reveal) — the transition into this frame is the named block, not a cut. Inside: a **liquid-glass beat** — three frosted-glass stat panels (real translucency: blur over the background, hairline ink borders) slide in over a **generated-artwork background** (generate a flat-style abstract raster evoking "a year of motion" in exactly the two-color palette; no photo), each panel carrying one invented secondary stat (issues closed, first-time contributors, stars) with per-word emphasis on the numerals. A thin code-layer of drifting `data-*` tags rides between artwork and glass.
+> **Depth (52–56s).** The wire spirals off the flat plane into real 3D — a **Three.js scene via the frame adapter** (never CSS fake-3D): the camera descends following the wire as it coils around a rim-lit faceted form (ink material on charcoal), mono axis readouts landing on cue, then rises back to the plane with the wire leading the way out.
>
-> **Frame 8 — Rhythm (49–57s).** The releases montage, cut to the actual music: **resolve the BGM first, run beat analysis on it (`hyperframes beats`), and place every cut in this frame on detected beats — a real beat grid, not eyeballed timing.** Quick-cut release cards (version chip + one-line change + a micro-visual each — a spark-line, a check, a tiny diff) under one continuous camera push that never resets; a tick SFX rides each beat cut. At least six cuts.
+> **Render (56–60s).** The wire's end plugs into a render chip; the protagonist clip card from the opening arrives (callback — same chip, having traveled the whole film) and snaps into it. A **seeded confetti burst** fires — mulberry32, **seed 42, each piece holding position for exactly two frames before stepping** (stop-motion feel) — and the VO lands the honest punchline: identical on every render, because determinism is the whole point. "WRITE HTML. RENDER VIDEO." locks up with the install line `npx skills add heygen-com/hyperframes`. The camera finally eases to rest — the film's only true stillness, one breath before the end.
>
-> **Frame 9 — Celebration (57–62s).** The seeded handmade beat: "SHIPPED." stamps in huge; the accent tick-mark from Frame 1 returns and completes into a full oversized check with a stamp-thud; and a **paper-cutout confetti burst rains with seeded randomness — name the seed (seed 42) and hold each confetti piece's position for exactly two frames before stepping (two-frame hold, stop-motion feel), so the imperfection is designed and every render is identical.** Riser SFX into the drop, then the burst settles.
+> **Copy, quoted exactly:** opening "WRITE HTML." · stats "50+ CATALOG BLOCKS", "19 AGENT SKILLS", "7 RUNTIME ADAPTERS" · map kicker "CLOUD RENDER · LAMBDA + CLOUD RUN" · closing "WRITE HTML. RENDER VIDEO." + `npx skills add heygen-com/hyperframes`. The Material region's spoken line and typed code are yours to make real and legible — no lorem ipsum, no invented product claims anywhere.
>
-> **Frame 10 — Landing, the film's one breather (62–66s).** The completed check motif sits beside the lockup: project name (variable) over "WRAPPED · &lt;year&gt;", tagline in mono beneath, then a final line stamps in: "Rendered with HyperFrames — `npx skills add heygen-com/hyperframes`". Everything holds dead still to the end.
+> **Technique, pinned:** continuous world-camera via GSAP transforms (the dolly is the film); parallax layers in every region; `data-chart`, `world-map`, `sdf-iris`, and a caption component adapted from the registry; per-character typing at the open; matched-motion handoffs at every region boundary (the wire IS the match); full footage pipeline (generated clip → HEVC → auto-proxy → background removal → lower-third → word-synced captions); real beat grid from `hyperframes beats`; real Three.js via the frame adapter; seeded two-frame-hold confetti; SFX on hits; VO-paced reveals throughout.
>
-> **Copy, quoted exactly where it matters:** Frame 1 — "A YEAR" / "OF SHIPPING." Frame 6 maintainer line — "We shipped every single week — and the community carried it." Frame 9 — "SHIPPED." Frame 10 — "Rendered with HyperFrames" + the install command. All project-specific copy comes from variables.
+> **Variables:** expose `ground` and `ink` as composition variables on the single root file, bound via CSS custom properties everywhere (including the duotoned mural), so one `--variables` call re-skins the entire journey. It will be rendered twice: the default palette, and a second full render with `{"ground":"#0d1420","ink":"#c8ff3d"}`.
>
-> **Technique, pinned per frame:** F1 staggered spring-pop, not fades. F2 real Three.js via the frame adapter. F3 `code-diff` registry block adapted. F4 `data-chart` adapted + matched-motion baseline carry into F5. F5 `world-map` adapted. F6 the full footage pipeline: generated avatar clip → HEVC → auto-proxy → background-removal cutout → designed lower-third → catalog caption component word-synced. F7 `sdf-iris` shader transition in + real translucent glass + generated raster + code overlay. F8 cuts on an analyzed beat grid + continuous push. F9 seeded (seed 42) two-frame-hold confetti + callback completion. F10 breather + variable-bound lockup.
+> **Architecture constraint (technical):** single composition file — one `index.html`, one variable scope. The world is one wide scene space traversed by a camera transform; regions may still be timed `class="clip"` sections synchronized to the camera's arrival (so capture stays efficient), but their positions form one continuous world and the wire + ruler + protagonist chip layers persist across 100% of the film. No `data-composition-src` sub-files.
>
-> **Voice & music:** confident, warm female narration — Kokoro `af_sky`, passed explicitly via `--voice` — pacing every frame except the maintainer clip's own audio in F6. Driving, beat-forward electronic BGM resolved from the catalog at the engine's default narration-bed volume (don't override); the same track feeds F8's beat analysis.
+> **Voice & music:** confident, energetic female narration — Kokoro `af_sky`, passed explicitly via `--voice` — riding the journey's momentum (the VO never waits for the camera; the camera arrives on the VO). Driving, beat-forward electronic BGM from the catalog at the engine's default narration-bed volume; the same track feeds the Rhythm region's beat analysis.
>
-> **Negatives:** no third hue anywhere; glass only on F7; no stock footage or photography (the F6 clip is generated, the F7 artwork is generated); no real OS/browser chrome; no unseeded randomness anywhere — the confetti seed is named; no eyeballed cuts in F8 — beats come from analysis; none of the frames are silent.
+> **Negatives:** no hard cuts outside the two sanctioned seams; no static regions; no shaking or idle-in-place motion passed off as energy; no third hue; no stock footage or photography; no fictional stats, projects, or testimonials — every number and label must be true of HyperFrames today; no real OS/browser chrome; no unseeded randomness; none of the film is silent.
## Walking the prompt, chapter by chapter
-The prompt isn't one skill — it's the whole guide, composed. Every frame pins a different technique, and every technique has a chapter:
+Every region pins a different technique, and every technique has a chapter:
-| Frame | What it demonstrates | Chapter that teaches it |
+| Region | What it demonstrates | Chapter that teaches it |
| --- | --- | --- |
-| F1 — Hook | Kinetic type, spring-pop overshoot, motif plant | [Prompt anatomy](/prompting/anatomy), [Motion that reads premium](/prompting/motion) |
-| F2 — Mark | Real 3D via the Three.js frame adapter | [Runtimes and 3D](/prompting/runtimes-and-3d) |
-| F3 — Change | `code-diff` registry block, adapted | [Code animations](/prompting/code-blocks) |
-| F4 — Numbers | `data-chart` block + matched-motion baseline carry | [Data and maps](/prompting/data-and-maps), [Transitions](/prompting/transitions) |
-| F5 — World | `world-map` block, arcs, ticking counter | [Data and maps](/prompting/data-and-maps) |
-| F6 — Voice | Generated avatar footage → HEVC proxy → background-removal cutout → lower-third → word-synced caption component | [Media and audio](/prompting/media-and-audio), [Caption styles](/prompting/captions-catalog), [Overlays and lower thirds](/prompting/overlays-and-lower-thirds) |
-| F7 — Surface | `sdf-iris` shader transition, liquid glass, generated artwork + code overlay | [Transitions](/prompting/transitions), [VFX and liquid glass](/prompting/vfx-and-liquid-glass), [When to generate artwork](/prompting/generated-artwork) |
-| F8 — Rhythm | Cuts on a real analyzed beat grid + continuous camera push | [Music videos and slideshows](/prompting/music-and-slideshows), [Motion that reads premium](/prompting/motion) |
-| F9 — Celebration | Seeded (seed 42) two-frame-hold confetti + callback completion | [Motion that reads premium](/prompting/motion) (rule 7) |
-| F10 — Landing | The one breather, variable-bound lockup | [Storyboards](/prompting/storyboards) |
-
-The registry blocks (`code-diff`, `data-chart`, `world-map`, `sdf-iris`, `caption-kinetic-slam`) are installed and adapted per [Prompt anatomy](/prompting/anatomy)'s technique rule — named exactly, treated as starting points whose demo content gets rewritten to the beat. The storyboard scaffolding — message/arc/audience/mood stated once, a direction block every frame inherits, the callback, the one breather, per-frame SFX cues — is [Storyboards](/prompting/storyboards) at full scale. The **density and composition** block is what turns technically-correct frames into designed ones: permanent chrome, three filled roles per frame, display-scale type, asymmetric splits. An earlier capstone shipped without it and every frame read as elements floating in space — the linter can verify a timeline, but only the prompt can demand composition.
-
-Two chapters run underneath everything: [Media and audio](/prompting/media-and-audio) supplies the pinned `af_sky` voice, the BGM bed at its default level, and 40 SFX placements; [High-fidelity looks](/prompting/visual-specs) is the density discipline the whole prompt is written in.
-
-### The footage pipeline, end to end
-
-Frame 6 is one sentence of story and five chapters of machinery: the maintainer clip is **generated** (avatar video via the media pipeline — no stock footage), **transcoded to HEVC** deliberately so the automatic proxy subsystem carries browser preview while render decodes the original, **matted** with background removal into a transparent cutout, **composited** over a designed panel with a variable-bound lower-third, and **captioned** word-by-word from its own transcription through a catalog caption component. That chain — bring any footage, cut out the subject, dress it, caption it — is the [Media and audio](/prompting/media-and-audio) chapter's whole second half, exercised in one beat.
+| Type | Per-character code typing; the underline that becomes the wire | [Code animations](/prompting/code-blocks), [Prompt anatomy](/prompting/anatomy) |
+| Mount | The timeline's own vocabulary — tracks, clips, `data-*` labels | [Prompt anatomy](/prompting/anatomy) |
+| Measure | `data-chart` block; the wire as chart baseline (matched motion) | [Data and maps](/prompting/data-and-maps), [Transitions](/prompting/transitions) |
+| Everywhere | `world-map` block; real Lambda / Cloud Run regions | [Data and maps](/prompting/data-and-maps), [Rendering and output](/prompting/rendering-and-output) |
+| Material | Generated clip → HEVC proxy → background removal → lower-third → word-synced caption component | [Media and audio](/prompting/media-and-audio), [Caption styles](/prompting/captions-catalog), [Overlays and lower thirds](/prompting/overlays-and-lower-thirds) |
+| Surface | `sdf-iris` shader lens, frosted glass, palette-neutral generated mural | [Transitions](/prompting/transitions), [VFX and liquid glass](/prompting/vfx-and-liquid-glass), [When to generate artwork](/prompting/generated-artwork) |
+| Rhythm | Cuts on a real analyzed beat grid (`hyperframes beats`) | [Music videos and slideshows](/prompting/music-and-slideshows) |
+| Depth | Real Three.js via the frame adapter, wire as 3D coil | [Runtimes and 3D](/prompting/runtimes-and-3d) |
+| Render | Seeded (42) two-frame-hold confetti — determinism as the punchline | [Motion that reads premium](/prompting/motion) (rule 7) |
-### Why one file, not ten
+The camera itself is [Motion that reads premium](/prompting/motion)'s "camera as actor" rule taken to its logical end — the camera isn't *in* the film, it *is* the film. The persistent wire/ruler/protagonist are [Storyboards](/prompting/storyboards)' callback device stretched across the whole runtime instead of two frames. And the whole thing is written in [High-fidelity looks](/prompting/visual-specs)' density: exact hexes, exact timings, named eases, quoted copy.
-HyperFrames scopes `data-composition-variables` **per composition file**. A storyboard naturally wants to split into sub-composition files wired via `data-composition-src` — but each file would resolve its own variables independently, and a root-level `--variables` override would never reach them. Keeping all ten frames as sibling `class="clip"` sections in one `index.html`, sharing one variable scope, is what makes the two-render demo below possible with nothing but a CLI flag. (The alternative — forwarding values per sub-composition via `data-variable-values` — works, but is more wiring for the same result.) See [Variables and templating](/prompting/variables-and-templating).
+### Why one file, still
-## The templating demo: one composition, two films
+HyperFrames scopes `data-composition-variables` **per composition file**, so the single-file constraint from the earlier capstones carries over — one `index.html`, one variable scope, which is what lets one `--variables` flag re-skin the whole journey. The new wrinkle: the world is one wide scene space traversed by a camera transform, while regions stay timed `class="clip"` sections synchronized to the camera's arrival — the persistent layers (wire, ruler, chip) are the only elements alive for all 62 seconds, so capture stays efficient without breaking the illusion of one continuous space. See [Variables and templating](/prompting/variables-and-templating).
-Nothing project-specific is hardcoded: name, tagline, both palette colors, and the hero stat are declared variables. The film above is the defaults — fictional weather-data toolkit **Nimbus**. Rendering the identical composition again with one flag produces a different project's Wrapped:
+## The re-skin: one flag, the whole journey
```bash
-hyperframes render --variables '{"projectName":"Forge","tagline":"Builds that don'\''t break.","ground":"#1a120b","ink":"#ff9a3d","heroStat":63,"heroStatLabel":"RELEASES SHIPPED"}' --strict-variables
+hyperframes render --variables '{"ground":"#0d1420","ink":"#c8ff3d"}' --strict-variables
```
-<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-wrapped-forge.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
-*The same composition — fictional build tool **Forge**, coal/ember, hero stat 63. Every frame re-skins: the chrome, the chart, the map, the lower-third, even the generated artwork.*
+<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-timeline-reskin.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+*The same composition, navy/acid-green — the wire, ruler, chart, map, glass, and even the generated mural all follow the override.*
-One detail worth stealing: a generated raster normally bakes its palette at generation time, which would leave that frame stuck in the original colors on a re-render ([When to generate artwork](/prompting/generated-artwork) covers the trade-off). This film sidesteps it — the artwork was generated **palette-neutral** (grayscale) and duotoned live by CSS layers driven by the `ground`/`ink` variables, so even the illustration follows the override. If a frame in your own template needs to re-skin, keep the color in CSS and the shapes in the raster.
+The mural trick from the previous capstone carries over: the artwork is generated **palette-neutral** (grayscale) and duotoned live by CSS layers driven by the `ground`/`ink` variables, so even the raster re-skins. Keep color in CSS and shapes in the raster whenever a template frame needs to survive a re-skin.
## What this page proved
-Nothing in this film uses a technique this guide didn't already teach. A chart, a map, a diff, real footage, 3D, glass, a shader seam, a beat grid, seeded confetti — every one is traceable to a chapter you've already read, and the whole thing re-renders for a different project with one flag. The capstone isn't a new set of tricks; it's proof that the ones you have compose.
+A chart, a map, a diff of typed markup, real processed footage, 3D, glass, a shader seam, a beat grid, seeded confetti — every technique is traceable to a chapter you've already read. But the thing that makes it a film instead of a slideshow isn't any of them: it's the cinematography contract — one camera, persistent elements, arrivals instead of cuts — and that, like everything else here, is just words in the prompt.
*Next: [Rules and anti-patterns](/prompting/rules-and-anti-patterns) — keep this cheat sheet open while you build.*
diff --git a/docs/prompting/overview.mdx b/docs/prompting/overview.mdx
index edda3a7409..f83b74803d 100644
--- a/docs/prompting/overview.mdx
+++ b/docs/prompting/overview.mdx
@@ -3,7 +3,7 @@ title: Prompt Guide
description: "How to prompt AI agents to author HyperFrames videos — setup, the two prompt shapes, and the map of this guide."
---
-<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-wrapped-nimbus.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
+<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-timeline-default.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>
*By the end of this guide, you can build this with a prompt.*
HyperFrames is built for AI agents — compositions are plain HTML, the CLI is non-interactive, and the framework ships [skills](https://github.com/vercel-labs/skills) that teach agents the patterns docs alone don't cover. This guide shows how to prompt agents effectively once skills are installed — the vocabulary that changes output, the iteration patterns that save time, and the rules that prevent breakage.
@@ -24,7 +24,7 @@ The guide is one arc, novice to advanced. Each level is what you can do once you
| **4 — [Substance](/prompting/code-blocks)** | Add real capabilities: code animation, data-viz, overlays, captions, generated artwork, VFX, 3D. |
| **5 — [Voice & sound](/prompting/media-and-audio)** | Narration, music, and any footage you supply, scored and mixed correctly. |
| **6 — [Scale](/prompting/design-systems)** | Design systems, variables, storyboards, editing, iterating, matching references, and export — a video as a system, not a one-off. |
-| **7 — [Capstone](/prompting/capstone)** | Everything above, composed into one real prompt — one template rendered twice for two different projects, dissected frame by frame. |
+| **7 — [Capstone](/prompting/capstone)** | Everything above, composed into one real prompt — one continuous camera journey along the timeline itself, rendered twice from one template, dissected region by region. |
## One-time setup