How to prompt Claude Code, Cursor, Codex, and other AI agents to author Hyperframes compositions — with copy-pasteable examples and vocabulary tables.
Hyperframes is built for AI agents — compositions are plain HTML, the CLI is non-interactive, and the framework ships 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.
GSAP animation API — timelines, easing, ScrollTrigger, plugins
Always prefix Hyperframes prompts with /hyperframes (or invoke the skill another way for non-Claude agents). This loads the skill context explicitly so the agent gets composition rules right the first time, instead of relying on whatever it remembers about web 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.
The skills map natural-language adjectives to specific framework settings. Using the right word gets you the right result without specifying technical details.
The skills enforce these automatically, but if you hand-edit compositions or debug issues, these are the rules that matter:
Register all timelines on window.__timelines — the renderer can’t seek animations it doesn’t know about.
Video elements must be muted — audio goes in separate <audio> elements so the renderer can mix it.
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.
Synchronous timeline construction — no async/await or fetch() during GSAP timeline setup.
Timed elements need class="clip" — plus data-start, data-duration, and data-track-index.
Add entrance animations to every scene — elements appearing without animation feel broken on video.
Add transitions between scenes — jump cuts between scenes are almost always unintentional in composed video.
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.
Don’t ask for React / Vue components. Hyperframes compositions are plain HTML with data-* attributes and a GSAP timeline. Asking for “a React component for the intro” forces the agent to translate later.
Don’t ask for 4K or 60fps unless you need it. Defaults (1920×1080, 30fps) render fast and look great. Higher specs slow rendering meaningfully.
Don’t skip the slash command. Without /hyperframes, the agent may guess at HTML video conventions instead of using the framework’s actual rules (class="clip" on timed elements, window.__timelines registration, etc.).
Don’t paste long error logs into the prompt without context. Run npx hyperframes lint and npx hyperframes validate first — lint catches structural issues, validate catches runtime errors (JS exceptions, missing assets, contrast problems).
Don’t assume the agent knows your assets. Mention file paths explicitly (assets/intro.mp4, assets/logo.png) — the agent will check what’s there but a hint speeds it up.