Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
Merge remote-tracking branch 'origin/main' into fix/prompt-guide-validation-bugs
Vance Ingallsbde474dab30c
diff --cc docs/docs.jsonindex 45535a3415,5f658cb305..cd586a642b--- a/docs/docs.json+++ b/docs/docs.json@@@ -162,7 -87,9 +164,8 @@@"guides/antigravity","guides/copilot-cli","guides/claude-design",+ "guides/claude-design-send-to-hyperframes","guides/open-design",- "guides/prompting","guides/hyperframes-vs-remotion","guides/gsap-animation","guides/keyframes",diff --cc docs/prompting/design-systems.mdxindex 6fc19c2be3,0000000000..70f7390535mode 100644,000000..100644--- a/docs/prompting/design-systems.mdx+++ b/docs/prompting/design-systems.mdx@@@ -1,103 -1,0 +1,103 @@@+---+title: Design systems and brand+description: "Point the agent at a source of brand truth — a design spec, a site, or a Figma file — instead of asking for 'on-brand', and let it compose the frame."+---++Everything so far was one scene at a time. This level is about videos as systems — design that persists across scenes, edits that don't regress, output that ships. It starts with the most systemic thing a video has: its brand.++"Make it on-brand" is the single vaguest thing you can ask. The agent has no way to know what your brand *is*, so it invents one. The fix is always the same: give it a **source of brand truth** — a design spec, a live site, or a Figma file — and name it in the prompt. Everything on this page is a way to do that.++## Point at a spec, don't describe a vibe++HyperFrames projects can carry a design spec — `frame.md` (video-first) or `design.md` — whose frontmatter tokens are the machine-readable brand: exact hex values, font families, weight relationships, and the brand's Do's and Don'ts. When one exists, name it:++> Use the palette and type from `frame.md`. Build a 15-second feature announcement.++- ❌ `make it feel on-brand and premium`+- ✅ `pull colors and fonts from design.md; premium means generous spacing and one restrained accent`++The engine rationale: `on-brand` is a mood the agent guesses at. A spec's frontmatter is normative — the agent quotes the hex and font family verbatim instead of approximating, and reads the prose sections for intent. If your brand lives somewhere else (a PDF brand guide, a screenshot, pasted hex codes), attach it — attachments and pasted tokens are read more reliably than a described impression.++## Brand is truth for color and type — not for layout++A design spec tells the agent what the brand *looks like*; it does **not** dictate how to compose a video frame. Say what's sacred and let the agent stage the rest:++> Colors and fonts are locked to the brand — keep the exact hexes and the display/body pairing. Layout, spacing, and motion are yours to compose for video.++The engine rationale: web-scale brand values don't survive video. A `1px` border with a `0.06`-opacity shadow is invisible after H.264 compression; a web body size vanishes on a 1080p frame. The brand color, background choice (if the brand is a light canvas, keep it light), fonts, and weight relationships are strict — but type sizes, decorative opacity, and border weight get scaled up for the medium. Over-specifying layout from a web design system fights this; pin the palette and typography, delegate the frame.++## Use the site's own palette and fonts++When there's no spec but there is a brand out there, point at it and let the agent extract:++> Match this site's look — pull its palette and fonts — and make a 20-second launch clip: `https://…`++For a well-known brand, naming it is often enough for the agent to research the palette and typography. One caveat worth stating: a single-page-app homepage often returns a near-empty shell, so if the palette comes back thin, point the agent at a blog, press, or docs page instead. This is the same brand-truth move — the *site* is the source instead of a file.++## Bringing in a Figma frame, brand, or logo++If the brand lives in Figma, ask for it directly — the agent imports it rather than eyeballing a screenshot:++> Bring in the brand tokens from this Figma file, then build the intro: `https://figma.com/…`++> Import this Figma frame as the opening scene and this logo as an SVG: `<links>`++The [Figma import](/guides/figma) path freezes each import as a local asset with recorded provenance (so renders stay deterministic) and imports brand variables as composition brand tokens. Two things worth knowing when you phrase the ask:++- **Import tokens before components.** Say "brand tokens first, then the components" — that's what lets imported component colors link to your brand variables instead of baking in duplicate hexes.+- **Storyboard frames are states, not slides.** If you point at a strip of scene frames, ask the agent to *reconstruct the motion between them* — a frame showing an element at four positions is one element animating, not four stills to flip through.++## Keeping a multi-video series consistent++For a series — a launch set, a weekly clip, a per-region cut — consistency comes from a **shared source of truth**, not from re-describing the brand each time:++> All four videos share `frame.md` for palette and type. Only the headline and the stat change per video.++Because the runtime exposes every declared brand token as a CSS custom property, the parts that stay constant come from the one spec (or one set of imported Figma tokens), and the parts that vary become [variables](/prompting/variables-and-templating). Change one brand value in the spec and every video re-skins on the next render — you don't touch four files. This is where design systems and templating meet: the brand is shared, the content is parameterized.++## Supplying brand assets by path++Logos, fonts, textures, and product shots are inputs — hand the agent the path, don't ask it to draw them:++> Logo at `assets/logo.svg`, brand font files in `assets/fonts/`, product shot at `assets/hero.png`. Use them; don't invent placeholders.++Prefer an SVG logo (scalable, animatable) over a raster one. State the paths explicitly so the agent wires the real assets instead of generating stand-ins — and so the render is deterministic, with every asset present locally before it starts.++## Supply inputs a workflow accepts — don't fight its preset+- The creation workflows (`/product-launch-video`, `/website-to-video`, and the rest) each come with a designed look. The productive move is to feed that look your brand inputs, not to override its composition after the fact:++The creation workflows (`/product-launch-video`, `/faceless-explainer`, and the rest) each come with a designed look. The productive move is to feed that look your brand inputs, not to override its composition after the fact:++- ❌ `run /product-launch-video, then restyle every scene to my colors afterward`+- ✅ `run /product-launch-video with my palette, fonts, and logo as inputs up front`++The engine rationale: a workflow's preset is a coherent, tested system — colors, spacing, motion, and component treatments that hang together. Supplying brand inputs at the start lets it apply your palette and type *within* that system. Restyling scene-by-scene afterward pulls threads out of a design that was balanced as a whole, and you spend more effort fighting the preset than you'd have spent handing it a spec.++## Related++<CardGroup cols={2}>+ <Card title="Figma Import" icon="figma" href="/guides/figma">+ Import brand tokens, assets, components, and motion from a Figma file.+ </Card>+ <Card title="Variables and templating" icon="sliders" href="/prompting/variables-and-templating">+ Turn brand tokens into variables that re-skin a whole series from one value.+ </Card>+ <Card title="The specification dial" icon="gauge" href="/prompting/specification-dial">+ How pinning exact hexes and type direction removes drift.+ </Card>+ <Card title="Claude Design" icon="message" href="/guides/claude-design">+ Attach a brand guide or screenshot to seed a first draft from your look.+ </Card>+</CardGroup>++<Note>+**Capstone thread** — the entire [Level 7 film](/prompting/capstone) obeys a supplied `frame.md` — the real HyperFrames brand. The closing lockup is where the system shows most: ABC Solar Display for the display type and the mint→cyan CTA gradient in its single sanctioned appearance (0:56–1:02 below, cut from the film).+</Note>++This is the clause in the [full capstone prompt](/prompting/capstone#the-full-prompt-verbatim) that buys the piece — prompt language you can lift for your own video:++> **Design system: the provided `frame.md` is the single source of brand truth — read it first and obey it exactly.** It is the real HyperFrames brand (by HeyGen), dark-first: flat near-black ground […] **mint `#3CE6AC` used sparingly as the single accent — mint means go / primary / active**. The mint→cyan gradient (`#3CE6AC → #00E3FF`) appears in exactly one place in the whole film: the final CTA lockup.++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-region-render.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*That clause, rendered — the region cut from the finished film.*++*Next: [Variables and templating](/prompting/variables-and-templating) — turn the brand tokens that repeat across a series into named slots you fill per render.*diff --cc docs/prompting/explainers.mdxindex c7f25f872b,0000000000..193c7c0222mode 100644,000000..100644--- a/docs/prompting/explainers.mdx+++ b/docs/prompting/explainers.mdx@@@ -1,88 -1,0 +1,88 @@@+---+title: Explainers+description: "What to say to turn an article, notes, or a topic into a faceless explainer — where every visual is invented, not captured."+---++The last ride pointed a workflow at a website. This one drops the site entirely — arbitrary text is the whole input, and every visual downstream is invented rather than captured.++## Your first win++One prompt to [`/faceless-explainer`](/prompting/overview), with your text pasted in, is enough for a finished explainer — no site, no footage, no design decisions required yet.++Verified, from the [examples](/prompting/examples) page — a ~60-second vertical 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.++<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.*+++Note the `~` — with a supplied script the runtime follows the spoken words, so ask for *about* a minute, not exactly one. See the [anatomy](/prompting/anatomy) for the rest of the skeleton.++## What this makes++A faceless explainer: arbitrary text — an article, notes, a topic, a brief — becomes a narrated video where every visual is invented per scene (typography, abstract graphics, diagrams, data-viz). The [`/faceless-explainer`](/prompting/overview) workflow picks a design system, reshapes your text into a teaching story, generates its own TTS narration, and builds it frame by frame.+- **Faceless means there's nothing to capture.** No site, no footage, no asset inventory — the visuals are designed downstream. If you have a product to sell use [`/product-launch-video`](/prompting/product-launch); if you have a real site to show use `/website-to-video`; a GitHub PR goes to [`/pr-to-video`](/prompting/code-and-prs). Unsure → start at `/hyperframes`.++**Faceless means there's nothing to capture.** No site, no footage, no asset inventory — the visuals are designed downstream. If you have a product to sell use [`/product-launch-video`](/prompting/product-launch); if you have a real site to show use [`/product-launch-video`](/prompting/product-launch) with a tour brief; a GitHub PR goes to [`/pr-to-video`](/prompting/code-and-prs). Unsure → start at `/hyperframes`.++## The knobs that matter++What you can already steer from the prompt, before you've learned any technique.++| Knob | What to say | Why it matters |+| --- | --- | --- |+| **Verbatim vs summarized** | "use my wording verbatim" or "restructure it freely" | The workflow asks once. Verbatim keeps your voice but locks the word count; summarized lets it cut and reorder for pace |+| **Duration** | "~60 seconds", never "60 seconds" | With a script the narration sets the real length; a hard number forces the agent to trim or pad the words |+| **Scene density** | "one idea per scene" | A faceless scene has one invented focal to animate; two ideas in a scene leave nothing to build the motion around, and it reads as a text dump |+| **Angle** | "concept" / "how-to" / "listicle" / "narrative" | The angle decides the story shape — the workflow reshapes your text into it rather than reading paragraphs in order |+| **Caption style** | "embedded captions, keywords highlighted in the accent color" | Captions are burned in; naming the highlight color ties them to the palette instead of a default pill |+| **Palette** | "brand color #FF5533 on off-black" | With no site to borrow from, the preset supplies a full palette; a named accent + ground personalizes it |+| **Voice** | "male TTS voice, calm" / "warm female voice" | Gender and tone are prompt words; the provider is a workflow decision |++<Tip>+ The single biggest quality lever here is scene density. "One idea per scene" turns a dense paragraph into a paced sequence — the workflow reorders and compresses your text to hit it, which is exactly what makes an explainer teach instead of recite.+</Tip>++## Variants++<AccordionGroup>+ <Accordion title="30-second landscape topic explainer (16:9)">+ > /faceless-explainer Make a ~30-second 1920x1080 explainer on how HTTPS keeps a request private, for a non-technical audience — the takeaway: your data is sealed before it leaves the browser. Concept angle: one idea per scene, big geometric type, a simple lock-and-key diagram as the centerpiece (swap the metaphor with the topic). Near-black ink on off-white with a deep-blue accent. Female TTS voice, warm and clear. Embedded captions, key terms highlighted in the accent color.++ Shorter runtime, landscape for YouTube / embed. Fewer scenes means the topic has to compress — naming the takeaway tells the workflow what to keep.++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/variant-explainer-landscape.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*Rendered from this prompt with the topic swapped to HTTP caching (cache diagram as the metaphor), unedited — 26s, because the narration sets the length.*++ </Accordion>+ <Accordion title="Listicle">+ > /faceless-explainer Make a ~45-second 1080x1920 listicle: "5 habits of fast-shipping teams". Listicle angle — one habit per scene, each with a big number and a one-line label, escalating energy toward #1. Off-black with a lime accent. Male TTS voice, upbeat. Embedded captions, the habit label highlighted each scene.++ The listicle angle gives each item its own scene with a consistent number-and-label shape, so the structure reads as a countdown rather than a wall of points.+ </Accordion>+ <Accordion title="How-to with diagrams">+ > /faceless-explainer Make a ~60-second 1920x1080 how-to on setting up a CI pipeline, for developers. How-to angle: one step per scene, each built around a simple node-and-arrow diagram that draws on as the narration explains it. Charcoal with a teal accent. Calm male TTS voice. Embedded captions, the step name highlighted.++ A how-to leans on diagrams as the load-bearing visual. Describe the diagram *shape* per step ("node-and-arrow", "a pipeline that fills left to right") and let the workflow invent the specifics.+ </Accordion>+</AccordionGroup>++## Common failure modes++**"60 seconds" instead of "~60 seconds".** A supplied script's spoken duration is not knowable until the TTS renders; a hard target makes the agent mangle the words to hit the clock.+- ❌ `a 60-second explainer from this text: ...`+- ✅ `a ~60-second explainer from this text: ...`++**Cramming ideas into a scene.** Every faceless visual is invented around a single focal; overload the scene and there's no clear thing to animate.+- ❌ `explain all five caching layers in one scene`+- ✅ `one idea per scene — one caching layer at a time`++**Asking it to capture or pull real imagery.** There is no capture step; a faceless explainer invents its visuals.+- ❌ `pull screenshots from the site and explain the feature`- - ✅ that's a site or product video — use `/website-to-video` or [`/product-launch-video`](/prompting/product-launch)++- ✅ that's a site or product video — use [`/product-launch-video`](/prompting/product-launch)++**Leaving the look unspecified when you care.** With no brand to read, the preset picks the palette; if you have colors, name them.+- ❌ `make it look on-brand`+- ✅ `brand color #FF5533 on off-black`++*Next: [Code changes and PRs](/prompting/code-and-prs) — point a workflow at a merged GitHub PR instead of a blank page.*diff --cc docs/prompting/motion-graphics.mdxindex 73fdbb0598,0000000000..cbf9aac286mode 100644,000000..100644--- a/docs/prompting/motion-graphics.mdx+++ b/docs/prompting/motion-graphics.mdx@@@ -1,83 -1,0 +1,83 @@@+---+title: Motion graphics+description: "Short, design-led pieces where motion is the message — kinetic type, a stat hit, a logo sting — and the knobs that decide MP4 versus transparent overlay."+---++Five rides in, five different inputs — a site, plain text, a PR, footage, a track. This last one drops narration and asset input altogether: a short, design-led motion graphic where motion alone carries the message.++## Your first win++One prompt to [`/motion-graphics`](/prompting/overview), with the beats spelled out, is enough for a finished motion graphic — no technique required yet.++The canonical shape: routed, spec'd, beat-timestamped, copy quoted, technique pinned, gaps closed.++> /motion-graphics Make an 8-second 1920x1080 video. Beat 1 (0-4s): dark macOS terminal types "npx skills add heygen-com/hyperframes" character by character, then hold on the blinking cursor. Beat 2 (4-5s): the terminal shatters into fragments. Beat 3 (5-8s): bold white kinetic text on black slams in word by word, snappy: "YOU JUST MADE THIS / WITH HYPERFRAMES." Adapt the `code-typing` and `vfx-shatter` registry blocks; hand-author the kinetic text. No narration, no image or media files.++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/validate-anatomy-terminal.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*Rendered from the prompt above, unedited.*+++## What a motion graphic is++A motion graphic is a short, design-led piece where **motion is the message** — kinetic typography, a stat count-up, a chart hit, a logo sting, a lower-third or social overlay, an animated map, tweet, or headline. It's usually under 10 seconds (up to ~30s), has no narration and no live-action subject, and renders to an MP4 or a transparent overlay.++Route with `/motion-graphics`. The workflow is autonomous by design — at most one clarifying question, then straight through to render. Reach for a different workflow when the piece grows past what "motion is the message" covers:++| If the piece is… | Route instead |+| --- | --- |+| Longer, multi-scene, or narrated | `/general-video` |- | A narrated video of a website | `/website-to-video` |++| A narrated video of a website | `/product-launch-video` |+| A topic explainer with a voice-over | `/faceless-explainer` |+| A product promo / launch | `/product-launch-video` |+| Captions on existing footage | `/embedded-captions` |++## The knobs that matter++What you can already steer from the prompt, before you've learned any technique.++**Duration.** Keep it short — motion graphics live under 10 seconds, up to ~30. A 2-second idea stretched to 8 feels slow no matter how it's animated; if the piece genuinely needs multiple scenes or a longer runtime, it's a `/general-video`, not a motion graphic.++**MP4 vs transparent overlay.** The default output is an MP4. Ask for a transparent overlay — a lower-third, a callout, a bug meant to composite over other footage — and the render targets `webm` or `mov` with alpha. Transparency only makes sense when part of the frame is *meant* to be empty. A full-frame design (its own background, edge-to-edge composition) has nothing to be transparent, so asking for a transparent WebM there produces either an opaque file or a broken-looking one. Say "transparent overlay, alpha channel" only for pieces designed to sit on top of something else.++**Registry blocks vs freeform.** Naming a block (`apple-money-count`, `x-post`, `data-chart`, `code-typing`, `us-map` / `world-map`) makes the agent compose reuse-first: install the block, customize in place, hand-author only the gaps. Omit the block and it hand-builds from your description — fine for one-off looks, more drift on the details you didn't pin. Name blocks exactly as they appear in the [catalog](/catalog/blocks/data-chart).++**Easing and motion feel.** The words you use for *how* motion feels — "snappy", "bouncy", "settles with overshoot" — map to specific eases. Spend them; they're cheap precision. See [Vocabulary](/prompting/vocabulary) for the adjective-to-ease table and [Premium motion](/prompting/motion) for the grammar that keeps a piece from reading cheap (nothing fully stops, action overlaps, the camera acts).++## Variants++Each reuses a registry block, so the agent composes rather than hand-building from scratch.++<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.+ </Accordion>+ <Accordion title="Logo sting">+ > /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, then holds with a subtle ambient idle (slow breathing scale). Use `code-particle-assemble` for the assembly.+ </Accordion>+ <Accordion title="Animated tweet">+ > /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. Settle into a gentle ambient idle on the card at the end. Use the `x-post` and `vfx-liquid-background` registry blocks. No narration, no image or media files.+ </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.+ </Accordion>+</AccordionGroup>++## Failure modes++**Transparent output on a full-frame design.** Alpha is for overlay elements, not for pieces that fill the frame. A design with its own background has no transparent region to export.+- ❌ `an 8s full-screen stat count-up on dark navy — export as a transparent WebM`+- ✅ `an 8s stat count-up on dark navy, MP4` — or, for a bug to composite over footage: `just the count-up chip, no background, transparent overlay (webm)`++**Narration on a motion-is-the-message piece.** Motion graphics are unnarrated by definition — the visual carries it. A voice-over means a different workflow.+- ❌ `/motion-graphics a 10s logo sting with a voice-over reading the tagline`+- ✅ `/motion-graphics a 10s logo sting, no narration` — for a spoken track, use `/faceless-explainer` or `/general-video`.++**Stretching a short idea long.** Runtime is a knob, and past ~30s a single motion beat runs out of things to do.+- ❌ `a 45-second kinetic-type piece of one headline`+- ✅ `an 8-second kinetic-type piece of one headline` — or promote it to a multi-scene `/general-video`.++<Tip>+ For the six-part skeleton and the per-beat content formula these prompts share, see [Prompt anatomy](/prompting/anatomy); for the full set of run-verified examples, [Verified examples](/prompting/examples). Unsure whether your ask is a motion graphic at all? Start at the router in `/hyperframes`.+</Tip>++*Next: [Prompt anatomy](/prompting/anatomy) — you've been riding workflows through six one-prompt inputs; Level 2 opens the prompt itself.*diff --cc docs/prompting/overview.mdxindex 8040ba7a0b,0000000000..1935cc193cmode 100644,000000..100644--- a/docs/prompting/overview.mdx+++ b/docs/prompting/overview.mdx@@@ -1,148 -1,0 +1,147 @@@+---+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-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.++<Note>+ **Before you prompt**, have three things in place: the skills installed (below), a scaffolded project (`npx hyperframes init my-video`), and the live preview running (`npx hyperframes preview`) so you can judge each render the moment it lands. Prompting without the preview open turns every iteration into a blind guess.+</Note>++## The level ladder++The guide is one arc, novice to advanced. Each level is what you can do once you've read it — read them in order, or jump straight to whichever gap matches where you are:++| Level | What you can do after it |+| --- | --- |+| **1 — [Your first video](/prompting/product-launch)** | Get a finished video from one prompt — the workflow fills the gaps (palette, pacing, structure) for you. |+| **2 — [Control](/prompting/anatomy)** | Name the parts yourself: route, spec, beats, copy, technique, negatives — the skeleton that removes the decisions agents get wrong. |+| **3 — [Life](/prompting/motion)** | Motion and transitions that read premium instead of like a slideshow. |+| **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. Each chapter on the way up shows its own region of this film cut out in isolation; the capstone prompt is the glue that binds them into one continuous camera journey, rendered twice from one template. |++## One-time setup++Install the skills in your project (or globally for your agent):++```bash+npx skills add heygen-com/hyperframes+```++The installer shows a picker. Select the **core skills** below — every project needs them. In Claude Code, restart the session after installing; the skills register as **slash commands**. Start at `/hyperframes`: it orients you to the whole surface and routes "make me a video" requests to the right workflow.++**Core skills — install all of these**++| Slash command | What it loads |+| ----------------------- | -------------------------------------------------------------------------- |+| `/hyperframes` | **Read first.** The entry skill — capability map + video router; sends "make me a video" intent to the right workflow |+| `/hyperframes-core` | Composition contract — HTML structure, `data-*` attributes, clips, tracks |+| `/hyperframes-animation`| All animation — motion rules, scene blueprints, transitions, and the runtime adapters (GSAP, Lottie, Three.js, Anime.js, CSS, WAAPI, TypeGPU) |+| `/hyperframes-creative` | Creative direction — design spec, palettes, typography, narration, beats |+| `/hyperframes-cli` | Dev-loop CLI — `init`, `lint`, `inspect`, `preview`, `render`, `doctor` |+| `/media-use` | Media OS — TTS voiceover (`tts`), `transcribe`, `remove-background`, plus BGM / SFX / image resolution |+| `/hyperframes-registry` | Block and component installation via `hyperframes add` |+| `/general-video` | The general authoring workflow — fallback for any video that doesn't match a specific workflow below |++**Optional workflows — add the ones that match your inputs** (`/hyperframes` routes to whichever you've installed)++| Slash command | Input → output |+| ------------------------ | --------------------------------------------------------------------------- |- | `/product-launch-video` | A product URL / brief / script → launch or promo video |- | `/website-to-video` | A general website / URL → a video of the site (tour / showcase / social clip) |++| `/product-launch-video` | Any website URL / brief / script → launch or promo video, or a site tour / showcase |+| `/faceless-explainer` | Arbitrary text (no URL) → faceless explainer with its own TTS narration |+| `/pr-to-video` | A GitHub PR → code-change explainer |+| `/embedded-captions` | An existing talking-head video → the same footage with captions / subtitles |+| `/talking-head-recut` | An existing talking-head video → footage packaged with designed graphic cards |+| `/motion-graphics` | A short, unnarrated, design-led motion graphic (logo sting, kinetic type, stat / chart) |+| `/music-to-video` | A music track + your images → beat-synced video (lyric / slideshow / kinetic promo) |+| `/slideshow` | A deck outline or slides → navigable presentation with presenter mode (not a rendered MP4) |+| `/remotion-to-hyperframes` | Port an existing Remotion (React) composition to HyperFrames HTML |++<Tip>+ To skip the picker and install everything (core + every workflow) in one shot, run `npx skills add heygen-com/hyperframes --all`. And start HyperFrames prompts with `/hyperframes` (or invoke the skill another way for non-Claude agents) — it loads the routing + composition context explicitly so the agent picks the right workflow and gets the rules right the first time.+</Tip>++++## Claude Design++Claude Design uses a different setup. Download [`claude-design-hyperframes.md`](https://github.com/heygen-com/hyperframes/blob/main/docs/guides/claude-design-hyperframes.md) from GitHub (click the ↓ button), then **attach it to your chat** (don't paste the URL — file attachments produce better output):++```text+Use the attached skill. 25-second LinkedIn video for my startup.++Problem: Sales teams waste 3 hours/day on manual CRM updates.+Solution: AutoCRM — AI that logs every call, email, and meeting.+Traction: 200+ teams, $1.2M ARR, 18% MoM growth.+CTA: autocrmhq.com+```++Claude Design produces a valid first draft (brand identity, scene content, animations, transitions). Download the ZIP and refine in any AI coding agent with `npx hyperframes preview` running. See the [Claude Design guide](/guides/claude-design) for the full workflow.++++## The two prompt shapes++Most successful HyperFrames prompts fall into one of two shapes.++**Cold start — describe the video.** You tell the agent what you want from scratch — best for greenfield work where you already have the creative direction in your head.++> Using `/hyperframes`, create a 10-second product intro with a fade-in title over a dark background and subtle background music.++Cold-start prompts work best when you specify **duration** ("10 seconds", "5 scenes of 3s each"), **aspect ratio** ("16:9", "9:16 vertical" — defaults to 1920x1080 otherwise), **mood / style** ("minimal Swiss grid", "high-energy social"), and **key elements** (title, lower third, captions, music).++**Warm start — turn context into a video.** You give the agent something to work with — a URL, a doc, a CSV, a transcript — and ask it to synthesize that into a video. This is where HyperFrames shines because the agent does the research/summarization step *and* the production step in one flow.++> Take a look at this GitHub repo https://github.com/heygen-com/hyperframes and explain its uses and architecture to me using `/hyperframes`.++> Turn this CSV into an animated bar chart race using `/hyperframes`.++Warm-start prompts produce richer, more grounded videos because the agent is writing about *something specific* instead of inventing copy.++## Recommended workflow++1. `npx hyperframes init my-video` — scaffold a project (skills install automatically)+2. Open the project in Claude Code (or Cursor / Codex)+3. Prompt with `/hyperframes` and one of the shapes above+4. `npx hyperframes preview` — watch in the browser as the agent edits+5. Iterate with small targeted prompts+6. `npx hyperframes render --output final.mp4` when you're happy++++## What a prompt buys you++Three prompts from this guide and their unedited renders — one workflow warm start, one registry-block piece, one dense freeform spec:++> /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.*++> /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. 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.*++And at the far end of the [specification dial](/prompting/specification-dial), a full visual+motion spec one-shots a broadcast-style animated globe — see [Recreating something you saw](/prompting/recreating-references) for the spec:++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/recreate-globe-oneshot.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*One-shot render from the distilled spec, no iteration.*++## Explore the guide++<CardGroup cols={2}>+ <Card title="Prompt anatomy" href="/prompting/anatomy">The six-part skeleton every one-shot prompt shares</Card>+ <Card title="Verified examples" href="/prompting/examples">18 copy-paste prompts, each one-shots a finished video</Card>+ <Card title="The specification dial" href="/prompting/specification-dial">How much to specify, and what density buys</Card>+ <Card title="Vocabulary" href="/prompting/vocabulary">Words that map to specific framework settings</Card>+ <Card title="Premium motion" href="/prompting/motion">The seven-rule grammar that keeps video from feeling cheap</Card>+ <Card title="Recreating references" href="/prompting/recreating-references">Match something you saw, from text alone</Card>+ <Card title="Capstone" href="/prompting/capstone">The film above, dissected frame by frame</Card>+</CardGroup>diff --cc docs/prompting/product-launch.mdxindex 71c2bfe8df,0000000000..0affd86f1emode 100644,000000..100644--- a/docs/prompting/product-launch.mdx+++ b/docs/prompting/product-launch.mdx@@@ -1,99 -1,0 +1,99 @@@+---+title: Product launch videos+description: "What to say to turn a product URL, a script, or a brief into a launch or promo video — and when to reach for a site tour instead."+---++This is Level 1 of the Prompt Guide: a run of one-prompt rides, each handing a workflow a single ask and getting a finished video back. You don't need any technique yet — one sentence describing your product, aimed at the right workflow, is already enough for a first draft.++## Your first win++One prompt to [`/product-launch-video`](/prompting/overview), aimed at a live URL, is enough for a finished launch video — no technique required yet.++Verified, from the [examples](/prompting/examples) page — a 45-second launch from a live 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.*+++Read the [anatomy](/prompting/anatomy) of that skeleton — route, spec, structure, copy, voice, level — then swap in your own product.++## What this makes++A launch or promo that *sells*: SaaS promos, feature reveals, product demos, app and company launches. The [`/product-launch-video`](/prompting/overview) workflow captures the product's site (or takes a pasted script), reads its brand, writes a story, and builds it frame by frame.++**Route it right — the distinction is intent, not input:**++| You want… | Route |+| --- | --- |+| To market, launch, promote, or reveal a product (the default for any commercial URL) | `/product-launch-video` |- | A video *of* a general site — a portfolio / blog / docs / landing-page tour or showcase, not a sales pitch | `/website-to-video` (see the [guide](/guides/website-to-video)) |++| A video *of* a general site — a portfolio / blog / docs / landing-page tour or showcase, not a sales pitch | `/product-launch-video` too — say *tour* or *showcase* in the brief (see the [website-to-video guide](/guides/website-to-video)) |+- "Promo for our site" is a launch, even though it names a site — use `/product-launch-video`. A neutral walkthrough of a docs site is a tour — use `/website-to-video`. Unsure → start at `/hyperframes` and let it route.++Both route to the same workflow now; what changes is the brief. "Promo for our site" is a launch — sell it. A neutral walkthrough of a docs site is a tour — say so, and the workflow shows the site's own captured screens instead of pitching. Unsure → start at `/hyperframes` and let it route.++## The knobs that matter++What you can already steer from the prompt, before you've learned any technique. Set the ones you care about; leave the rest to the workflow's taste.++| Knob | What to say | Why it matters |+| --- | --- | --- |+| **Capture vs no-capture** | Give a URL to capture the real site; give a script or brief for the no-capture path; give just a brand name to have the agent find the URL | Capture borrows the real palette and screenshots; no-capture invents visuals, so it needs your brand colors named |+| **Palette source** | "use the site's own palette" | The workflow remixes the captured brand tokens onto its frame preset — you get the product's real colors, not a generic theme |+| **Structure** | "hook stating the problem, N feature beats with captions, end card with CTA" | The workflow leads value-before-evidence; naming the beats keeps the hook and CTA from getting dropped |+| **Voice & tone** | "female TTS voice, confident" / "calm male voice" | Voice gender and tone are prompt words; the provider itself is a workflow decision — see the [skill](/prompting/overview) for provider mechanics |+| **BGM level** | "subtle electronic BGM under -18dB" (or "no BGM") | A stated ceiling keeps music under the voice; leave it off entirely for a teaser |+| **Length & destination** | "~45 seconds", "9:16 for TikTok" | Sweet spot is 30-90s; destination sets the aspect (16:9 embed · 1:1 feed · 9:16 Shorts) |++<Tip>+ Duration and destination are the two cheapest, highest-leverage things to state. Everything else the workflow will choose well if you stay quiet — see [the specification dial](/prompting/specification-dial) for how much to delegate.+</Tip>++## Variants++<AccordionGroup>+ <Accordion title="20-second vertical teaser (9:16)">+ > /product-launch-video Make a ~20-second 1080x1920 teaser for https://linear.app. Super minimal, just the hook. Beat 1 (0-4s): the problem in one line, big type. Beat 2 (4-16s): two feature beats, one UI capture each with a three-word caption. Beat 3 (16-20s): logo + "Try it free" end card, then settle into a gentle idle. Use the site's own palette. Female TTS voice, confident; no BGM.++ A teaser trades feature coverage for pace — fewer beats, one idea each. Keep the destination (Shorts / TikTok → 9:16) and let the workflow scale the story to the shorter runtime.+ </Accordion>+ <Accordion title="Pasted script, no capture">+ > /product-launch-video Make a ~20-second 1920x1080 launch video from this script — use it verbatim: "Your CRM is three hours of busywork a day. AutoCRM logs every call, email, and meeting for you. 200 teams already switched. Try it free at autocrmhq.com." No site to capture — invent clean product-y visuals from the script. Male TTS voice, calm and confident; subtle BGM under -18dB.++ With no URL the workflow takes the no-capture path: no screenshots, no site palette to borrow, so name your brand colors and fonts if you have them (or the agent invents a palette). Verbatim scripts set the duration — figure roughly 130 spoken words per minute, so a 30-second video wants a 65–70 word script. Saying "use it verbatim" pre-answers the workflow's keep-or-restructure question.++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/variant-launch-script.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*Rendered from this prompt shape with a different, longer script (78 words, fictional dev-tool "Relay"), unedited — it ran 35.5s because the words set the length.*++ </Accordion>+ <Accordion title="Brand name only (agent finds the URL)">+ > /product-launch-video Make a ~45-second 1920x1080 launch video for Linear. Find the official site, capture it, and use its own palette and screenshots. Angle: speed as the whole pitch. End card with logo + "Try it free". Confident female TTS voice, subtle electronic BGM under -18dB.++ Given a name instead of a link, the workflow searches for the official URL, confirms it in one line, then captures — you get the site-grounded result without pasting the link yourself.+ </Accordion>- <Accordion title="Site tour instead (website-to-video)">- > /website-to-video Make a 30-second 1920x1080 tour of https://example.com built from its own screenshots. Calm, editorial pace — show the homepage, two inner pages, and the footer. Full narration, warm male voice. This is a showcase, not a sales pitch.++ <Accordion title="Site tour instead (same workflow, tour brief)">++ > /product-launch-video Make a 30-second 1920x1080 tour of https://example.com built from its own screenshots. Calm, editorial pace — show the homepage, two inner pages, and the footer. Full narration, warm male voice. This is a showcase, not a sales pitch.++ Reach for this when the goal is to *show the site*, not sell a product. It builds from captured screenshots and the site's brand assets. A launch or promo — even from the same URL — belongs to `/product-launch-video`.+ </Accordion>+</AccordionGroup>++## Common failure modes++**Hard-timing a verbatim script.** With supplied narration, the real TTS duration sets the length — a hard number forces the agent to cut or pad your words.+- ❌ `a 45-second launch video from this exact script: ...`+- ✅ `a ~45-second launch video from this script: ...`++**Overriding the designed structure.** The workflow builds hook → value → evidence → CTA for a reason; drop the hook and the promo never answers "why should I care?"+- ❌ `skip the intro, just list all six features back to back`+- ✅ `hook stating the problem, then 3 feature beats, then the CTA end card`++**Fighting the art-directed preset.** Each workflow adopts a frame preset and injects transitions; forcing a foreign theme yields a compromise, not your look (see [rules and anti-patterns](/prompting/rules-and-anti-patterns)).+- ❌ `/product-launch-video ... plain white, no transitions between scenes`+- ✅ pick the angle and tone, and let the preset carry the visual system++**Assuming the agent knows your assets.** On the no-capture path there's no site to read; an unnamed logo or color is invented.+- ❌ `use our brand colors`+- ✅ `brand colors #5E6AD2 on off-black; logo at assets/logo.svg`++*Next: [Explainers](/prompting/explainers) — no product, no site, just text turned into a faceless explainer.*diff --cc skills-manifest.jsonindex d7decb4eb9,6634da2659..c3ce79eb95--- a/skills-manifest.json+++ b/skills-manifest.json@@@ -14,31 -14,31 +14,31 @@@"files": 2},"general-video": {- "hash": "1aed9f4f68414a45",- "files": 1+ "hash": "87f292b572cad3f9",+ "files": 4},"hyperframes": {- "hash": "fce43b4c3355cde9",- "files": 1+ "hash": "02b48855a5321e48",+ "files": 17},"hyperframes-animation": {- "hash": "cb99a192b1800400",- "files": 99- "hash": "3d9855346af7d51c",++ "hash": "07ca0a5ce9d127ac",+ "files": 121},"hyperframes-cli": {- "hash": "ecd5ec042ff500c7",- "files": 7+ "hash": "8c791e330873b1bd",+ "files": 11},"hyperframes-core": {- "hash": "61c9e92111f32233",- "files": 14- "hash": "773fc6d15d9e87b3",++ "hash": "8a76333c8cdcf5a9",+ "files": 19},"hyperframes-creative": {- "hash": "3e5bcbf46dc14427",- "files": 69+ "hash": "bacb5205ea5eb3d8",+ "files": 78},"hyperframes-keyframes": {- "hash": "040453e302a0e15b",+ "hash": "a568c05c01b27461","files": 3},"hyperframes-registry": {diff --cc skills/hyperframes-core/SKILL.mdindex 00b25bf7fe,f3dc06d769..3e44a4e54a--- a/skills/hyperframes-core/SKILL.md+++ b/skills/hyperframes-core/SKILL.md@@@ -49,14 -53,7 +53,14 @@@ The standalone root needs an explicit *Each composition registers **exactly one** `gsap.timeline({ paused: true })` at `window.__timelines["<id>"]` (key = root `data-composition-id`), built **synchronously** at page load. Render duration = root `data-duration`, not timeline length. Don't manually nest sub-timelines into the host. Full contract (incl. non-GSAP runtimes) → `references/determinism-rules.md` + `hyperframes-animation/adapters/`.+### First-pass lint gotchas (a guaranteed first build failure)++Two rules that `lint` **does** catch, but only after the fact — write them right the first time:++- The **root** composition element must carry `data-start="0"` (alongside `data-composition-id`/`data-width`/`data-height`); omitting it fails `lint` with `root_composition_missing_data_start`.+- Never pair a CSS initial `transform` with a GSAP tween on the **same** property — the CSS value and the tween's start fight and `lint` rejects it with `gsap_css_transform_conflict`. Set the initial state inside the tween with `gsap.fromTo(el, { x: -40 }, { x: 0 })` instead of a CSS `transform: translateX(-40px)`.+- ### Non-negotiable rules (silent bugs `lint`/`validate`/`inspect` won't catch)+ ### Non-negotiable rules (silent bugs automated gates may miss)Surfaced here; full rationale in the linked reference. Do not violate: