HYPERFRAMES WIKI · HTML/CSS/GSAP VIDEO REFERENCE APACHE-2.0 ECOSYSTEM · DETERMINISTIC CHROME + FFMPEG
AGENT-NATIVE WORKFLOW NPX SKILLS ADD

Claude HyperFrames Skill: Automate HTML Video Creation with AI Agents

Install the official Apache-2.0 Claude HyperFrames skill into Claude Code, Codex, or Cursor and generate structured prompts that pass lint checks on the first render.

Configure Agent Video Spec heygen-com/hyperframes
Ready-to-Paste Setup & Agent Prompt
# Step 1: Install official skill into Claude Code
npx skills add heygen-com/hyperframes

# Step 2: Paste prompt into Claude Code
Build a 15-second programmatic video composition (1920x1080 at 30fps (16:9 Landscape)) structured as a SaaS product launch promo with 3 timed feature clips.
Visual brief: Dark slate #0B1120 background, cobalt #1D4ED8 accent, announce v2.0 API release.

Strict technical requirements:
1. Declare data-composition-id, data-width, data-height, data-fps, and data-duration on the root container.
2. Mark each scene with class="clip", explicit data-start, data-duration, and data-track-index.
3. Initialize all GSAP timelines with { paused: true } and register them on window.__timelines[compositionId] for deterministic frame seeking.
4. Run npx hyperframes lint to verify zero layout overflow and WCAG text contrast, then export final.mp4 with npx hyperframes render --output final.mp4.
Claude HyperFrames workflow diagram showing AI coding agent orchestrating HTML clips and GSAP keyframes
How a Claude HyperFrames workflow turns natural-language briefs into declarative HTML clips, lints layout geometry, and exports MP4 video.

How the Claude HyperFrames workflow operates

A Claude HyperFrames workflow connects Anthropic's Claude Code CLI (or compatible coding agents like Codex and Cursor) with HeyGen's open-source HTML video engine through an installable skill package. Instead of generating blurry pixel diffusion clips, the agent writes clean HTML, CSS, SVG, and paused GSAP code that renders into crisp 1080p or 4K MP4 video.

Generative AI video diffusion models struggle with exact brand typography, sharp UI mockups, and accurate numerical charts. Pairing an LLM coding agent with deterministic DOM rendering solves all three problems at once. In a Claude HyperFrames setup, Claude edits standard web files, places exact hex colors and SVG logos onto timed class="clip" layers, checks its own layout using headless browser diagnostics, and invokes FFmpeg locally.

Installing the Claude HyperFrames skill in one command

Install the official skill into your coding environment by running npx skills add heygen-com/hyperframes inside your project or home workspace. To refresh an existing local skill definition after upstream releases, run npx hyperframes skills update so your agent uses the latest attribute rules.

# Add official HyperFrames skill for Claude Code / Codex / Cursor
npx skills add heygen-com/hyperframes

# Keep project-local agent rules updated
npx hyperframes skills update

Once installed, the skill teaches the agent the exact contract required by the renderer: root composition attributes (data-composition-id, data-width, data-height, data-fps, data-duration), clip visibility windows (data-start and data-duration), and seek-locked GSAP registration on window.__timelines. Without the Claude HyperFrames skill loaded, an LLM may accidentally write real-time CSS infinite loops or React boilerplate that fails deterministic frame capture.

Prompt patterns that produce reliable Claude HyperFrames renders

Effective Claude HyperFrames prompts specify four concrete numbers upfront: canvas dimensions, target frame rate, total duration in seconds, and exact cut timestamps between scenes. Giving explicit timing budgets prevents the agent from crowding six animations into a two-second window or leaving dead black frames at the end.

Prompt ComponentWeak Vague InstructionHigh-Precision Claude HyperFrames Instruction
Canvas & Timing"Make a short vertical promo video""1080x1920 portrait at 60 FPS, 12 seconds total across 3 clips (0-4s, 4-8s, 8-12s)"
Motion Engine"Add smooth animations""Paused GSAP timeline on window.__timelines with power3.out entrances and 0.6s stagger"
Typography & Contrast"Use modern dark colors""Background #0B1120, headline #F8FAFC (min 56px), accent #38BDF8, >= 4.5:1 WCAG contrast"
Self-Verification"Make sure it looks good""Run npx hyperframes lint, fix any overflow or contrast warnings, then render final.mp4"

You can assemble these constraints automatically with our Claude HyperFrames prompt builder at the top of this page, or test the resulting HTML markup directly inside our HyperFrames Studio builder. Every Claude HyperFrames template you export stays editable in plain Git commits.

Self-healing lint loops in Claude HyperFrames pipelines

The biggest advantage of running Claude HyperFrames inside a terminal agent is automated visual feedback via npx hyperframes lint. After writing index.html, Claude executes the linter in headless Chrome, reads structured warnings about overflowing containers or unreadable contrast, patches the CSS, and re-tests before encoding video.

  1. Authoring pass: Claude scaffolds the project and writes semantic HTML clip layers plus paused GSAP tweens based on your brief or local brand assets.
  2. Automated inspection: Claude runs npx hyperframes lint (or npx hyperframes check) to test bounding boxes across key frames.
  3. Iterative CSS repair: If a headline wraps outside a 1080x1920 mobile frame, Claude adjusts clamp() font sizing or padding and re-runs the check until zero errors remain.
  4. Deterministic export: Claude runs npx hyperframes render --output release.mp4 to deliver the final H.264 file.

For manual CLI flags and FFmpeg setup details, consult our HyperFrames tutorial. Developers looking for starter layouts to feed into Claude as reference context can grab ready-made scenes from HyperFrames templates, or compare agent ergonomics against React workflows in HyperFrames vs Remotion.

Remaking reference videos in a Claude HyperFrames session

Beyond greenfield prompts, a Claude HyperFrames session can inspect an existing local reference video or storyboard folder, break down scene cuts and typography rhythm frame-by-frame, and reconstruct an editable HTML and GSAP composition that teams can parameterize for dozens of product variations.

Because every reconstructed scene lives in plain text HTML, marketing and engineering teams can swap screenshots, translate headlines into ten languages, or update pricing numbers in milliseconds without reopening a timeline editor. Check our HyperFrames pricing guide to see how local Apache-2.0 rendering keeps batch variations free of per-minute SaaS fees.

Claude HyperFrames FAQ

How do I add HyperFrames to Claude Code?

Run npx skills add heygen-com/hyperframes in your terminal. Claude Code loads the skill instructions so it knows how to author data-composition-id roots, timed .clip elements, paused GSAP timelines, and CLI render commands.

Does a Claude HyperFrames project require a paid HeyGen API key?

No. Running a Claude HyperFrames composition locally with Claude Code and npx hyperframes uses your own Claude setup plus local Chrome and FFmpeg under the free Apache 2.0 license, so no HeyGen API key or cloud account is required.

Can Codex CLI and Cursor use the same Claude HyperFrames skill?

Yes. Because the skill documents standard HTML attributes, GSAP seek rules, and CLI verification commands, OpenAI Codex CLI, Cursor Agent, and Windsurf follow the exact same workflow.

Why did Claude's video render a frozen first frame?

Ask Claude to verify that gsap.timeline({ paused: true }) is assigned to window.__timelines[compositionId] with the exact same ID string declared in data-composition-id on the root element.

Next Steps & Related Guides

HyperFrames Studio Builder

Preview frame-accurate seeking and export starter HTML compositions in your browser.

Step-by-Step CLI Tutorial

Configure Node.js, headless Chrome, and FFmpeg for smooth local MP4 rendering.

HyperFrames vs Remotion

See why single-file HTML compositions reduce token overhead for AI coding agents.

Developer Notes & Questions (0)