NH

nebrass/hve-video-director

Developer tools
97 stars Quality 71 Trend 20MIT

OpenCode, Pi, Codex, and Cursor can discover the same Agent Skill; their full Phase 0→5 pipeline remains unverified.

Overview

OpenCode, Pi, Codex, and Cursor can discover the same Agent Skill; their full Phase 0→5 pipeline remains unverified.

README

hve-video-director

AI-powered video production pipeline verified on Claude Code and GitHub Copilot CLI. OpenCode, Pi, Codex, and Cursor can discover the same Agent Skill; their full Phase 0→5 pipeline remains unverified.

/hve-video-director Demonstrate feature XYZ in a typical end-to-end scenario, showing every option and the final results.

Start in the source project and describe the video you want. The request drives the subject, scenario, depth, and result; the skill confirms a separate output location before creating it. Bare invocation still works and asks what video to make.

Renamed in v0.1.0 — this skill was previously hve-spielberg. npx skills update does not complete the rename: it installs the new skill alongside the old one and leaves the stale hve-spielberg behind. Remove the old install explicitly. See MIGRATION.md.

Reference build

example/ is the committed reference build — regenerated in v0.2.0 against the HyperFrames-first pipeline. It is a 60-second promo the skill made about itself, which makes it the honest test: with product_surface: none there was no product UI to lean on, so the reasoning layer had to decide how to show an idea.

Frames 8, in the official storyboard shape, each carrying its director keys
Identity design-system: stripe, dark theme, 1920×1080
Seams 4 z-axis rows in ledger.json, stamped and numerically verified
Hero budget visual_ceiling: derived imposed no ceiling, and derivation still spent Three.js on exactly one frame of eight

The source artifacts are committed (context.md, storyboard.md, DESIGN.md, scenes/*.html, ledger.json, index.html). Media is not committed — it is regenerable from what is here, and a rendered MP4 is attached to a Release when one is produced. No render of this build is published yet; the films below are separate projects.

It is a record, not a fixture, and it is only worth anything while every byte is what the pipeline actually emitted. Producing one is a human-in-the-loop run: every phase ends at a user-approval checkpoint that no agent may grant on your behalf (ADR-001), and it needs real text-to-speech, a licensed music track, and a headless-Chromium render. That is a production run someone sits through, not a build step. example/.hve/brief-state.json is the consent record that makes the claim checkable — validate_brief.py --project-dir example status reports it complete, confirmed and unstale.

Watch it work

▶ Watch the 90-second v0.2.0 promo — or download the MP4 (1920×1080, H.264 + AAC, 6.2 MB) from the v0.2.0 release.

Produced end-to-end by hve-video-director v0.2.0 itself, with a human granting all six phase approvals. A separate project from example/, not a render of it: 8 scenes on the vendored Vercel preset in light theme, velocity-matched cuts verified by the seam gate, ElevenLabs narration over a CC BY 4.0 bed, and reviewed captions bound to the final mix. Its terminal shot is a real asciinema recording of this repository’s own test suite — 233 tests, exit 0 — not a mock-up.

Earlier renders

One hosted film from the v0.1.0 era. It is not example/ — a different project, kept because it is real output, and it predates the HyperFrames rebase.

▶ Download the 53-second v0.1.0 reference render (1920×1080, H.264 + AAC, 18 MB) — a promo for blog.nebrass.fr using four real Chrome DevTools captures as the product spine, built on the vendored Vercel design system (design-systems/vercel/DESIGN.md) and attached to the v0.1.0 release.

What It Does

hve-video-director is an Agent Skill that orchestrates end-to-end video production:

  1. Understands your product through design thinking (empathize, define, ideate)
  2. Builds a narrative with scene storyboarding and emotional arc
  3. Captures your app automatically via Chrome DevTools, including an explicitly selected already-authenticated Chrome tab
  4. Builds one HTML scene per storyboard frame, matching your brand DNA — pick from 10 curated design systems (Stripe, Linear, Apple, Notion, Vercel, Airbnb, GitHub, Cal, Arc, Bento), 8 HyperFrames named styles, or derive from screenshots. Shipped HyperFrames registry blocks are installed before anything is hand-authored, and each scene is built from that one frame’s brief rather than from the whole film
  5. Produces the video in HyperFrames (HTML + GSAP, headless-Chromium rendered)
  6. Adds voiceover, music, SFX, and reviewed closed captions using the media-use mechanisms — delegated ElevenLabs or explicitly chosen local Kokoro narration, a music bed whose exact track you confirm before any mix, caption timing from source-language transcription over the assembled voiceover, and language/audio-bound SRT/VTT delivery

Three Modes

Mode Structure Best For
Promo Hook → Pain → Solution → Features → CTA Marketing, launches, ads
Showcase Intro → Walkthrough → Highlights → Closer Portfolio, demos, case studies
Tutorial Cold Open → Step-by-Step Chapters → Recap Walkthroughs, how-tos, onboarding

Pipeline

Phase 0: DISCOVERY         Phase 1: STORYTELLING       Phase 2: CAPTURE
├ Design thinking          ├ Narrative structure        ├ Web / terminal / supplied
├ Codebase/feature scan    ├ Scene storyboard           ├ Auto-navigate app
├ Product context Q&A      ├ Emotional arc              ├ Screenshots + clips
└ Goal/audience analysis   └ Script outline             └ Bound capture artifacts

Phase 3: DESIGN            Phase 4: PRODUCTION         Phase 5: AUDIO & RENDER
├ DESIGN.md (brand+motion) ├ HyperFrames root index     ├ media-use audio engine
├ Registry blocks first    ├ Sub-composition wiring     ├ Reviewed captions
├ One brief per frame      ├ GSAP transitions           ├ Confirmed track + mix
└ Scene HTML built         └ lint + check gates         └ npx hyperframes render

Each phase has a user-approval checkpoint before proceeding to the next. Preview and the mechanical gates run in Phase 4, once the scenes are assembled into one composition.

Prerequisites

Quick check: run ./scripts/check_requirements.sh. The default report, --json, and --plan never install or download anything. --plan prints exact actions; use --fix= only after choosing safe user-scoped fixes. Bare --fix retains the all-safe behavior. System/sudo commands and environment-variable exports are always printed, never run.

Checker flag Purpose
(none) Human readiness report with required exit status
--json JSON-only report with stable check IDs, tiers, states, affected phases, and fixes
--plan Side-effect-free human plan for every non-ready check
--fix= Run only selected safe fixes (chrome-shell, hyperframes-skill, whisper)
--fix Run all currently missing safe fixes; never system/sudo/environment actions

No local checkout? The doctor is self-contained — run it straight from GitHub:

Stdin and standalone copies use an offline Node capability probe when no language helper is available. An installed copy under a skill root containing SKILL.md still requires its sibling scripts/language_tools.mjs; a missing helper blocks readiness and recommends reinstalling the skill, not Node.

# report only
curl -fsSL https://raw.githubusercontent.com/nebrass/hve-video-director/main/scripts/check_requirements.sh | bash

# inspect the exact plan without making changes
curl -fsSL https://raw.githubusercontent.com/nebrass/hve-video-director/main/scripts/check_requirements.sh | bash -s -- --plan

# apply only explicitly selected safe fixes
curl -fsSL https://raw.githubusercontent.com/nebrass/hve-video-director/main/scripts/check_requirements.sh | bash -s -- --fix=chrome-shell,hyperframes-skill

Prefer to read the script before running it (recommended for any curl … | bash)? Download, inspect, then execute:

curl -fsSL https://raw.githubusercontent.com/nebrass/hve-video-director/main/scripts/check_requirements.sh -o check_requirements.sh
less check_requirements.sh && bash check_requirements.sh --plan
Tool Required Installation
Node.js 22.12+ with full ICU Yes nodejs.org — the existing platform dependency also runs scripts/language_tools.mjs for canonical locales and Unicode word/grapheme segmentation; no extra package
Python 3.10+ Yes python.org
ffmpeg Yes brew install ffmpeg / apt install ffmpeg
HyperFrames CLI Yes npm install --global hyperframes (the checker never fetches it during report modes)
HyperFrames companion skills Phases 3–5 npx skills add heygen-com/hyperframes — installs the hyperframes router and the domain family it dispatches to
chrome-headless-shell Yes Used by npx hyperframes render for frame capture. System Chrome causes 120s render hangs. Install once: npx puppeteer browsers install chrome-headless-shell (one-time, ~170MB, cached). Verify with npx hyperframes doctor.
Chrome DevTools MCP For web capture Required only when the storyboard requests web screenshots/screencasts — including replaying a user-recorded browse flow. Configure it in the active agent; capability names are resolved per runtime. For an already-authenticated tab, use Chrome 144+ remote debugging plus MCP --autoConnect (preferred), or the documented dedicated-profile --browser-url fallback.
HeyGen credential Recommended heygen auth login --oauth (or HEYGEN_API_KEY) — lets the media-use engine retrieve catalog sound effects and a catalog music bed instead of generating them or falling back to its bundled library; either route is recorded in the brief as music_strategy: delegated with a provenance URI (see Music Strategy). It does not change the voice: the brief’s voice vocabulary is elevenlabs:… or kokoro:… only (enforced by scripts/validate_brief.py), so the engine’s HeyGen voice route is not selectable through this skill’s vocabulary. The checker reports it as heygen-credential and degrades gracefully without it; Phase 5 never prompts for sign-in and never substitutes a confirmed provider.
ELEVENLABS_API_KEY For an ElevenLabs voice elevenlabs.io — required when the confirmed voice uses ElevenLabs. It is consumed by the media-use engine’s ElevenLabs route, the only path that reads it. Choose Kokoro explicitly for no-key local TTS; providers are never substituted automatically.
Whisper Recommended pip install openai-whisper — voiceover timing verification when npx hyperframes transcribe is unavailable. The engine’s per-line word timings never substitute for it: they are relative to each line’s own audio, while captions need composition-absolute times over the assembled voiceover.
espeak-ng When the selected local backend requires it brew install espeak-ng / apt install espeak-ng — check the selected language’s requirements through TTS_LOCAL; one installed phonemizer is not proof that every language/backend is ready
--experimentalScreencast (chrome-devtools MCP) No Enables screencast web-clip capture; without it, web scenes fall back to screenshots, and recorded-flow clip frames degrade to stills at each range’s end.
asciinema + agg No Optional true terminal-clip recording for CLI scenes; without them, CLI scenes use the authored-terminal path. Install: brew install asciinema agg (macOS) · apt install asciinema && cargo install --git https://github.com/asciinema/agg (Debian/Ubuntu). See patterns/cli-terminal-capture.md for the full recording workflow.
wf-recorder Wayland native capture only Feature-detected by scripts/capture_screen.py. Without it, use the desktop recorder and normalize the result with scripts/stitch_clip.py; generic FFmpeg PipeWire capture is not assumed.

Already-authenticated browser capture

Phase 2 can capture an SSO/MFA app from an already-open Chrome tab without navigating away. The preferred setup is Chrome 144+ with remote debugging enabled at chrome://inspect/#remote-debugging and --autoConnect added to the Chrome DevTools MCP server arguments. Phase 2 then lists the connected profile’s tabs, asks the user to select the exact tab, and leaves its URL/history unchanged — with one consented exception: replaying a browse flow you recorded yourself (next section) performs exactly your recorded steps and ends at the flow’s disclosed final state.

The MCP can inspect and control every open window in the connected profile. Close unrelated sensitive tabs first, never expose a remote-debugging port to the network, and use a dedicated profile when appropriate. See patterns/authenticated-browser-capture.md for the manual --browser-url fallback, privacy contract, viewport restoration, and failure handling.

Record-and-replay browse capture

For navigation too complex to describe — a Power BI report’s drill path, a deep SaaS wizard — record the flow yourself and let Phase 2 replay it with human pacing instead of guessing. Chrome and Edge ship the recorder natively (DevTools → Recorder → record → Export → JSON); the companion HVE Flow Recorder extension records the same format on Chrome, Edge, and Firefox with real per-step timing, typing rhythm, drag/wheel/upload capture, and capture-time secret redaction (consent-first: it holds no site access at install — the browser asks once, at the first Start, and capture code exists on pages only during a recording session). Drop the export under the project’s recordings/ and bind storyboard frames to it (recording: plus an optional recording_steps: A-B range — several frames can take different ranges of one recording). Phase 2 shows you a sanitized step brief and asks for one whole-flow approval, then replays the steps once — pointer travel, settle, read dwells, chunked typing, eased scrolls — while filming a single master take, and cuts each frame’s clip from it. The replayed clicks are your own recorded steps, never improvised: a selector that no longer resolves aborts the take rather than guessing.

# Validate a recording, see the step brief, origins, and any secret warnings
python3 scripts/replay_flow.py plan --recording recordings/drill.json --storyboard storyboard.md

# Verify a cut clip is complete and fresh (resume predicate)
python3 scripts/replay_flow.py check --recording recordings/drill.json \
  --steps 3-6 -o public/clips/scene-01-drill.mp4

Replay needs the Chrome DevTools MCP; filming additionally needs its experimental screencast (without it, replay still runs and clip frames degrade to stills at each range’s end). Cuts publish atomically with fingerprinted .replay.json sidecars — re-recording the flow stales every clip cut from it, and an interrupted take reads as incomplete, never as done. Mind that recorder exports are plaintext: record after logging in (pair with the authenticated-tab setup above) so no credential is ever in the file, and never commit a recording that holds one. Full contract: patterns/recorded-flow-capture.md.

Native screen capture and clip normalization

The pure-stdlib helpers record no audio and publish the Phase-2 clip contract: fixed requested duration, CFR30 H.264 High, yuv420p, even dimensions, and +faststart.

# Fixed-duration native desktop capture (macOS, Windows, X11, or detected Wayland)
python3 scripts/capture_screen.py --duration 6 \
  -o public/clips/scene-02-dashboard.mp4

# Native region capture; source dimensions may be odd
python3 scripts/capture_screen.py --duration 4 --region 100,80,1281,721 \
  -o public/clips/scene-03-flow.mp4

# Verify clip + completion sidecar against the storyboard duration/region
python3 scripts/capture_screen.py --check --duration 4 --region 100,80,1281,721 \
  -o public/clips/scene-03-flow.mp4

# Normalize, trim, or stitch existing recordings
python3 scripts/stitch_clip.py raw.mov::1.5::6 second.mkv \
  --width 1920 --height 1080 -o public/clips/scene-04-result.mp4

capture_screen.py uses built-in screencapture on macOS, ffmpeg gdigrab on Windows, ffmpeg x11grab on X11, and wf-recorder only when detected on Wayland. WSL exits with a Windows-host recording handoff. Before each attempt it writes .capture.pending; success atomically publishes .capture.json with requested parameters, validated media properties, and a SHA-256 fingerprint before clearing pending. Existing clip/metadata are preserved on every failure, while retained pending prevents a failed retake from counting as complete. Raw capture is kept on failure (or with --keep-raw) and stitch_clip.py remains the canonical normalizer.

Reviewed closed-caption delivery

After the final soundtrack is mixed, Phase 5 creates ASR drafts plus a review manifest. The user corrects speech, reviews speaker identity and meaningful music/SFX, then explicitly approves the cue list. Finalization writes same-basename sidecars beside the video and fingerprints the audio, manifest, and outputs:

# NARRATION_LANGUAGE comes from the checked language profile, not the on-screen text locale.
python3 scripts/caption_gen.py draft --audio voiceover-with-music.mp3 --language "$NARRATION_LANGUAGE"
# Review captions-review.json; set speech_review/speaker_review/sound_review.
python3 scripts/caption_gen.py approve --expected-language "$NARRATION_LANGUAGE"  # after user approval
python3 scripts/caption_gen.py finalize --expected-language "$NARRATION_LANGUAGE"
python3 scripts/caption_gen.py validate --expected-language "$NARRATION_LANGUAGE"

Final delivery is out/final.mp4 + out/final.srt + out/final.vtt. Any soundtrack, manifest, state, or sidecar edit makes validation fail and routes back to Phase 5. Editing a cue after approval also invalidates its content-bound approval fingerprint.

The helper canonicalizes new draft locales and compares expected locales without rewriting reviewed cues or their language label. A mismatch fails before approval or delivery writes. ICU segmentation preserves combining marks/emoji clusters and avoids invented spaces in CJK/Thai captions. Width and rate ceilings count graphemes, not code points; they do not certify readability for every language. Human language, speaker/sound, timing and line-break review remains mandatory. The optional expected-language flag preserves legacy standalone inspection; new workflow calls always supply it.

Required Skills

hve-video-director depends on the HyperFrames companion agent skills plus the hyperframes npm package (these are separate — the skills provide authoring prompts; the npm package provides the hyperframes CLI). A single npx skills add heygen-com/hyperframes offers the whole family — select all of them, or pass --all (see Installation). The command auto-detects your agent and resolves the correct skills home for you:

Dependency Type Purpose Install
hyperframes skill Agent skill The intent router: it dispatches to whichever domain skill owns the topic. Load it first; it is no longer a monolith that carries the authoring rules itself. npx skills add heygen-com/hyperframes
hyperframes-core, hyperframes-animation, hyperframes-creative, hyperframes-cli, hyperframes-registry Agent skills The domain family the router points at — composition contract and data-* timing (core), GSAP choreography such as eases, timelines, stagger and the transition catalog (animation), visual style/typography/data-in-motion (creative), gates and render commands (cli), catalog blocks (registry). Loaded on demand across Phases 3–5, never wholesale. Installed by the same npx skills add heygen-com/hyperframes
media-use, motion-doctrine Agent skills media-use owns the audio generation mechanisms — its engine handles ElevenLabs narration and delegated music/SFX; confirmed Kokoro narration uses its TTS_LOCAL route directly with the selected native language. This skill retains exact-track confirmation, caption review, the verified mix, and render approval. motion-doctrine owns the seam/transition law that supersedes local transition guidance where the two disagree (Phase 4). Installed by the same npx skills add heygen-com/hyperframes
hyperframes npm package CLI init, add (pull catalog blocks — scenes in Phase 3, seams and furniture in Phase 4), lint (fast iteration), preview, check (the required final gate — inspect, validate and layout are deprecated aliases it subsumes), render, doctor (render diagnostics), transcribe (Phase 5’s preferred timing verifier, with standalone Whisper as fallback), tts (confirmed local Kokoro voices) npx hyperframes (auto-fetches; package: hyperframes, repo: github.com/heygen-com/hyperframes)

Skill names are the ecosystem’s stable API; the file paths inside them churn, so every path this skill relies on is registered once in compat/ecosystem.md and cited everywhere else by capability symbol.

Installation

The recommended install is the skills CLI. For a portable project install shared by multiple agents, use an .agents/skills/ destination; global skill homes differ by agent.

# Project install — run from your project; writes to the agent's project skills home
npx skills add nebrass/hve-video-director

# Global install (Claude Code is the default agent)
npx skills add nebrass/hve-video-director --global

# Global install for GitHub Copilot CLI (~/.copilot/skills/)
npx skills add nebrass/hve-video-director --agent github-copilot --global

In Copilot CLI, run /skills to confirm the skill is loaded.

Fallback: manual git clone

If you can’t run the CLI, clone the repo into your agent’s skills home directly:

git clone https://github.com/nebrass/hve-video-director.git ~/.claude/skills/hve-video-director
# GitHub Copilot CLI: clone into ~/.copilot/skills/hve-video-director instead

OpenCode, Pi, Codex & Cursor (native discovery)

No plugin or manifest needed — these agents discover skills by directory convention and read the same Agent Skills SKILL.md format. The skills-CLI install above writes a /SKILL.md subdir into a home each one scans, so they pick up hve-video-director natively:

npx skills add nebrass/hve-video-director            # project (.agents/skills/)
npx skills add nebrass/hve-video-director --global   # global
  • OpenCode — .claude/skills/, ~/.claude/skills/, .agents/skills/, ~/.agents/skills/, .opencode/skills/, ~/.config/opencode/skills/. Docs: .
  • Pi — ~/.pi/agent/skills/, ~/.agents/skills/ (global), .pi/skills/, .agents/skills/ (project, after the project is trusted). Docs: .
  • Codex — $CWD/.agents/skills/, $REPO_ROOT/.agents/skills/, $HOME/.agents/skills/, /etc/codex/skills/. Docs: .
  • Cursor — .agents/skills/, .cursor/skills/, ~/.agents/skills/, ~/.cursor/skills/, plus .claude/skills/ and .codex/skills/. Docs: .

Then ask for a video (for example, “use hve-video-director to make a showcase video of this app”). Skill loading follows each agent’s documented convention. Loading is not proof that Chrome MCP, question prompts, companion skills, or the complete render pipeline work on that host.

Compatibility status

Agent Discovery / invocation Pipeline status
Claude Code Automatic or /hve-video-director Phase 0→5 verified
GitHub Copilot CLI Automatic or /hve-video-director; inspect with /skills info hve-video-director Phase 0→5 verified
OpenCode Automatic through the native skill loader Discovery-compatible; Phase 0→5 unverified
Pi Automatic or /skill:hve-video-director Discovery-compatible; requires suitable MCP extensions for web capture; Phase 0→5 unverified
Codex Automatic, /skills, or $hve-video-director Discovery-compatible; Phase 0→5 unverified
Cursor Automatic or /hve-video-director Discovery-compatible; Phase 0→5 unverified

The workflows resolve question and Chrome DevTools capabilities at runtime; they do not assume Claude Code’s literal MCP identifiers are available elsewhere.

Updating

Already installed an older version? Update to the latest main:

npx skills update hve-video-director     # alias: upgrade · -g global · -p project · -y skip the scope prompt

Installed via a manual git clone instead? cd into the skills home you cloned to and run git pull.

Reload according to the active agent. Copilot CLI supports /skills reload; Claude Code watches existing skill directories for SKILL.md changes; other agents may require a restart. Run npx skills list to see what’s installed and where.

Quick Start

  1. Set API keys as needed:

    export ELEVENLABS_API_KEY=your_key_here    # required only if you confirm an ElevenLabs voice
    

    That is the only API key this skill requires. A music bed needs none either — except the optional catalog-retrieval route below.

    Optional, and never done for you: sign in to HeyGen (heygen auth login --oauth, or set HEYGEN_API_KEY). It lets the media-use engine retrieve a catalog music bed and sound effects; it does not change the confirmed voice (see § Voices). ./scripts/check_requirements.sh reports it as heygen-credential and degrades without it.

  2. Start the skill:

    /hve-video-director Show feature XYZ in a typical end-to-end scenario, covering its granular options and final results.
    

    This slash form works on Claude Code, GitHub Copilot CLI, and Cursor. Pi uses /skill:hve-video-director; Codex uses /skills or $hve-video-director; OpenCode loads the skill by intent. The current directory supplies source context; a directory argument is not required.

    A different request produces a different scope, for example:

    /hve-video-director Create a 30-second promo focused on the benefit of feature XYZ.
    

    A granular demo stays a scenario walkthrough; a short promo does not automatically become a tutorial. The word “demo” alone does not select a mode. Required brief confirmations and phase approvals still apply, including when a duration or other choice was stated in the request.

  3. Complete guided setup on the first new run. Before creating project-plan.md, Phase -1 reads the checker’s JSON report, explains what is ready/degraded/blocked and which phases are affected, asks consent for only available safe fix IDs, re-checks, and blocks only on required gaps. Manual system/sudo/environment actions remain yours to run. continue and jump skip this onboarding.

  4. Follow the prompts. Phase 0 → 5 is interactive; each phase has a user-approval checkpoint before advancing. The user-owned choices include:

    • Mode: Promo, Showcase, or Tutorial
    • Duration + theme + aspect ratio: 30s/60s/90s, light/dark, 16:9/9:16/1:1/4:5
    • Visual identity strategy: pick a vendored brand, pick a HyperFrames named style, derive from screenshots, or provide a custom identity
    • Languages: choose from the actual provider/model’s capabilities, explicitly confirm using it for both on-screen text and narration, or choose a separate spoken language
    • Voice provider + exact voice: Matilda / Rachel / Daniel / Josh (ElevenLabs), or a verified Kokoro voice from the current catalog; the confirmed provider is never replaced automatically
    • Transitions + music strategy: explicitly chosen before storyboarding
    • Complete story-brief confirmation before storyboard.md is created
    • Exact music-track confirmation (title/path/source/license, or explicit no music) before mixing/render
    • Storyboard review before Phase 2 capture
    • Design review after Phase 3 scene templates
    • Composition preview after Phase 4 root index.html

    These creative-brief choices belong to the user. The agent may label a recommendation with a reason, but never infers or preselects an answer from codebase research. Curated-system theme support is enforced before confirmation: Linear is dark-only; Vercel, Airbnb, Cal, and Bento are light-only; Stripe, Apple, Notion, GitHub, and Arc support either.

  5. Get your video:

    out/final.mp4  — chosen aspect (16:9 / 9:16 / 1:1 / 4:5), voiceover + music, H.264 + AAC
    out/final.srt  — reviewed SubRip closed captions
    out/final.vtt  — reviewed WebVTT closed captions
    

Entry Modes

Mode Command When
new (default) hve-video-director Collect the request, run guided setup, and create a confirmed output workspace
continue hve-video-director --mode continue --output-dir "./my-video" Resume that generated workspace
jump hve-video-director --mode jump --phase 3 --output-dir "./my-video" Request a phase (0–5); existing prerequisites and freshness checks still apply

Use the invocation syntax from the compatibility table above.

Optional --source-dir and --output-dir distinguish the product source from generated video artifacts. Controls must lead the request; -- ends them explicitly:

/hve-video-director --source-dir "../product" --output-dir "./XYZ demo" -- Show XYZ end to end.

Everything after the start of the description remains request text, including quoted paths and flag examples. Bare new asks for the description. Ambiguous legacy directory-first input asks for clarification; its directory still means output, never source. Continue/jump without an unambiguous workspace ask which one to resume, rather than choosing the latest folder.

Prompt-driven scenarios

For a scenario request, discovery focuses on the named feature and grounds its steps/options and expected result in code, documentation, or your explanation. You approve the proposed scenario. Storytelling then maps every approved requirement to frames and planned evidence in the storyboard’s Scenario Coverage section; capture and composition review fill in what was actually shown. An unresolved option is not complete coverage, and a duration conflict requires your choice rather than silently dropping details.

The original request is stored as a lossless JSON string in project-plan.md outside the Creative Brief. context.md holds the researched interpretation and approved scenario, not an inferred set of creative choices. Existing projects without this metadata remain resumable; an artifact-only late-phase resume does not require the source unless source-dependent work is needed.

Languages

Language choices come from the actual generation provider/model’s current capabilities, not an English/French shortlist or a frozen marketing count. Phase 1 imports native model/voice data, presents the supported choices, and asks whether to use the selected language for both text and speech or to override the spoken language. The Creative Brief records separate text_language and narration_language values; .hve/language-profile.json binds those canonical locales to the verified voice/model and their native TTS and ASR codes. Catalog access or an authoritative export is a runtime prerequisite: unavailable data is an explicit setup issue, never an English fallback.

Authored text follows the text locale; narration and captions follow the spoken locale. Captured UI, code and literal product names are not automatically translated. There is no separate translated-subtitle or batch-localization mode. Script/font shaping, direction, actual speech and ASR readiness still need review: provider support is not end-to-end pronunciation/render qualification, and the English vo-budget heuristic reports non-English timing as unmeasurable.

Changing either language stales the affected phases without deleting prior artifacts. Historical schema-1 projects remain inspectable under their original consent; new generation requires an explicitly approved language upgrade, never an inferred English answer. Synthesis reuse binds the exact lines and settings to the profile’s speech fingerprint, so a text-only locale edit does not force new narration. Language/voice/model/settings changes require a full prepare/synthesis/seal round; subset retries cannot carry old takes into a new speech identity.

Voices

Voice Style Voice ID
Matilda Warm, confident female XrExE9yKIg1WjnnlVkGX
Rachel Calm, clear female 21m00Tcm4TlvDq8ikWAM
Daniel Authoritative male onwK4e9ZLuTAKqWW03F9
Josh Friendly, conversational male TxGEqnHWrfWFTfGW9XjX

These four ElevenLabs voices remain the user-facing voice contract. Phase 5 synthesizes them through the media-use audio engine’s ElevenLabs route; without that engine installed, the key-free local Kokoro route below is the available option, on your explicit confirmation. Caption timing does not come from the voice route at all, on any provider: Phase 5 transcribes the assembled voiceover.mp3 with npx hyperframes transcribe, because that is the only place the times are composition-absolute.

Local option (Kokoro): choose a verified voice during Phase 1 for no-key local TTS (e.g. af_nova, af_heart). npx hyperframes tts --list --json is a curated voice list, not the full language set. TTS_LOCAL and TTS_LANGUAGE_DISCOVERY, resolved through compat/ecosystem.md, own current model/language discovery and native prerequisites. Phase 5 calls the existing local TTS CLI directly with the checked native language, accepts only an applied-language result, and transcribes the assembled audio with the separate ASR code. A missing ElevenLabs key never changes a confirmed provider — and neither does a HeyGen sign-in. Local and user-supplied takes still need request/profile/preparation proofs in language-aware projects; an origin attestation cannot waive freshness.

Music Strategy

No bundled audio files. Four confirmable strategies — music_strategy in the Creative Brief:

  1. freesound — a Creative Commons track you pick yourself on freesound.org: browse by mood or genre, check the license on the track’s page, download it, and give Phase 5 the file — or let Phase 5 search for you with scripts/search_music.py (needs a free FREESOUND_API_KEY), which prints ranked candidates with duration, licence and track URL. Attribute CC-BY tracks in CREDITS.md. The recorded source is the exact freesound.org track URL carrying its numeric sound ID, which is what keeps the choice checkable later.
  2. delegated — a bed the media-use audio engine retrieved from a provider catalog. Phase 5 offers retrieval only: local generation is a valid value the validator still accepts, but the workflow stopped offering it after a real run stalled two hours on an unauthenticated model download and produced nothing, and because a generated bed has no author, no stable page and no independently auditable licence. There is no public page to link and a presigned download URL expires, so the recorded source is a provenance URI instead: :?mode=&query=#sha256= — who produced it, by which route actually taken, from which request, and which bytes came out. prompt= replaces query= for a full generation prompt; exactly one of the two is required. The digest is the SHA-256 of the file at path, so the record stays checkable offline years later with shasum -a 256 background-music.mp3. license is still required and still yours to state — a generated bed is not automatically unencumbered.
  3. user-provided — bring your own MP3 or URL; the recorded source is the literal user-provided.
  4. none — voiceover only.

Never record a delegated track as user-provided: that repurposes a Phase-1 answer you gave before any candidate existed, and erases the only machine-checked provenance the brief carries.

The strategy is confirmed with the story brief. Whatever produced the candidate — catalog retrieval, local generation, Freesound, or your own file — Phase 5 separately confirms the exact track (title, project path, source, and license) or explicit none; no track is mixed or rendered before that confirmation, on every strategy including delegated. A generated or retrieved suggestion is a candidate, never the answer.

Creative Brief validation

Generated projects keep the stable Creative Brief table in project-plan.md and output-adjacent confirmation/freshness state in .hve/brief-state.json. The pure-stdlib validator writes state atomically, never deletes artifacts, and reports the earliest phase made stale by an edited choice.

python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video status --json
# Legacy plans only, after explicit user consent: insert an empty table without inferring values
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video migrate
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video confirm-story
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video confirm-audio
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video stamp phase-1
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video require phase-1

Story-field changes stale Phase 1–5. Changing only final_music_track stales Phase 5. For pre-schema projects, status --json reports migration_required: true; migration preserves the old plan, inserts placeholders atomically, and returns to the user-owned Phase-1 prompts.

Storyboard format

Phase 1 writes storyboard.md in the official HyperFrames storyboard format: YAML frontmatter, one ## Frame N — Title section per frame, - key: value metadata bullets, free prose below them. Frames are numbered 1-based the way the finished video labels them, while scene files stay 0-based (scenes/00-…). Adopting that shape is what makes the plan reviewable with the ecosystem’s own tooling — the upstream storyboard parser, the Studio contact-sheet board, and the structured per-frame comment sidecar .hyperframes/frame-comments.json that a review round writes on submit and the next round deletes.

Everything the official key set has no home for rides along as ordinary bullets: the director keys (Phase 1’s recorded per-frame reasoning), the capture bindings, and this skill’s own film-level fields such as content_mode and emotional_journey. The parser preserves unknown keys verbatim under a frame’s extra, which is the only reason they survive. That guarantee is load-bearing enough to be tested rather than trusted: test/unit/test_storyboard_extra_keys.py round-trips every director key through an upstream parser and fails if one is dropped, altered, or captured by a newly official key — see the STORYBOARD_EXTRA_KEYS probe in compat/ecosystem.md.

Older projects keep working. Nothing in the pipeline is gated on the storyboard’s shape, so a project created before this format still resumes untouched. Ask the validator which shape a project is in, and convert only if you want to:

python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video storyboard --json
# Converts a pre-adoption storyboard — only when you ask. The original is preserved
# alongside the converted file, and a legacy line with no official home becomes an
# extra bullet rather than a guessed value.
python3 /path/to/hve-video-director/scripts/validate_brief.py \
  --project-dir ./my-video migrate-storyboard

Why BRIEF.md is deliberately not adopted

The ecosystem also publishes a brief format and, with it, a brief contract: a run-shape derivation that decides how collaborative or autonomous a run should be, and that explicitly skips questions the request already answers. This skill does the opposite — it recommends but never preselects, and never infers an answer you did not give. Adopting the official brief would import a contract that contradicts that promise, so project-plan.md stays the Creative Brief and the single record of the levers you own, and the validator is never re-pointed at BRIEF.md.

The storyboard was adopted precisely because it is not that kind of document: it describes the film, it does not record consent. One visible consequence — the storyboard’s frontmatter never carries mode, which upstream reserves for that interaction mode; this skill’s promo / showcase / tutorial choice lives in content_mode. The full reasoning sits on the BRIEF_FORMAT and BRIEF_CONTRACT rows of compat/ecosystem.md; read it before “finishing the job”, because completing the adoption would quietly replace the consent model.

Project Structure

When hve-video-director creates a video project, it generates:

my-video-project/
├── project-plan.md           # Stable Creative Brief + phase tracker + decision log
├── .hve/
│   ├── brief-state.json      # Atomic confirmation fingerprints + phase freshness stamps
│   ├── language-profile.json # Checked text/narration locales + opaque speech identity
│   ├── vo-sections.json      # Settings/line/media seal; pending marker exists during synthesis
│   └── captions-state.json   # Final-audio/review/output caption fingerprints
├── context.md                # Product context from Phase 0
├── storyboard.md             # Frame-by-frame plan from Phase 1, in the official
                              # HyperFrames storyboard format (see § Storyboard format)
├── .hyperframes/
│   └── frame-comments.json   # Only while a Studio frame-review round is open
├── DESIGN.md                 # Design contract from Phase 3 (palette, type, motion)
├── recordings/               # Your DevTools Recorder JSON exports (replayed by Phase 2)
├── .hve/replay/              # Step→timecode ledgers from replay takes
├── public/
│   ├── screenshots/          # App captures from Phase 2
│   └── clips/                # Filmed clips: screencast takes, native recordings, replay cuts
├── scenes/                   # Phase 3 HyperFrames scene templates
│   ├── 00-title-card.html
│   ├── 01-pain-point.html
│   └── ...
├── index.html                # Phase 4 root HyperFrames composition
├── voiceover.mp3             # narration, assembled from the per-section takes at their exact times
├── transcript.json           # word timings for captions
                              # (or voiceover.json if you used standalone whisper)
├── background-music.mp3      # the confirmed music bed (engine, Freesound, or user-provided)
├── voiceover-with-music.mp3  # Mixed track wired into index.html
├── captions-review.json      # Human-reviewed speech/speaker/sound cue source
└── out/
    ├── final.mp4             # `npx hyperframes render` output
    ├── final.srt             # Reviewed SubRip closed-caption sidecar
    └── final.vtt             # Reviewed WebVTT closed-caption sidecar

Skill File Structure

hve-video-director/
├── SKILL.md                       # Orchestrator entry point (read first)
├── CLAUDE.md                      # Codebase guide for agent sessions (Claude Code / Copilot CLI) editing this repo
├── workflows/                     # The 6-phase pipeline, one file per phase
│   ├── phase-0-discovery.md
│   ├── phase-1-storytelling.md
│   ├── phase-2-capture.md
│   ├── phase-3-design.md
│   ├── phase-4-production.md
│   └── phase-5-audio.md
├── reasoning/                     # How a scene is analysed and a runtime chosen
│   ├── scene-analysis.md          # Per-scene communication analysis + the cognitive-load budgets
│   └── capability-catalog.md      # The capability-tag vocabulary → runtime selection
├── grammar/                       # Visual grammars the reasoning layer draws on
│   ├── camera.md
│   ├── motion.md
│   ├── metaphors.md
│   └── three-taxonomy.md
├── compat/
│   └── ecosystem.md               # The only file holding upstream file paths (capability registry)
├── templates/                     # Copied into each generated video project
│   ├── project-plan.md
│   ├── context.md
│   ├── storyboard.md
│   └── scene-*.html               # Scene skeletons — a frame packet's starting point
├── patterns/                      # What the ecosystem does not own: craft, budgets, capture
│   ├── INDEX.md                   # The local map; delegation lives in compat/ecosystem.md
│   ├── visual-patterns.md         # Camera on stills, legibility floor, DON'Ts, stagger trap
│   ├── marker-highlight.md        # Mode → promo-arc mapping + the editorial caps
│   ├── transition-catalog.md      # Mood-mapped transition choice + energy budget
│   ├── cli-terminal-capture.md    # asciinema + agg real-terminal clip workflow
│   ├── authenticated-browser-capture.md # safe SSO/MFA live-tab attachment
│   └── anti-slop.md               # Cardinal sins + AI Tool Promo specifics
├── design-systems/                # 10 vendored brand presets (Phase 1 Path A)
│   ├── README.md                  # Catalog + how to use
│   ├── CONTRIBUTING.md            # Quality bar for adding more brands
│   ├── stripe/DESIGN.md
│   ├── linear-app/DESIGN.md
│   ├── apple/DESIGN.md
│   └── …                          # notion, vercel, airbnb, github, cal, arc, bento
├── sub-agents/
│   └── scene-builder-delta.md     # the builder role shipped inside every frame packet
├── scripts/                       # stdlib/platform-tool helpers, no Python packages
│   ├── generate_voiceover.py      # voiceover-section assembly (used by both audio paths)
│   ├── verify_vo_sections.py      # exact-request preparation + settings/profile/media seal
│   ├── caption_gen.py             # ASR drafts → reviewed, audio-bound final caption sidecars
│   ├── language_tools.mjs         # existing Node/ICU locale, grapheme and word operations
│   ├── capture_screen.py          # native screen/region capture orchestrator (silent)
│   ├── stitch_clip.py             # normalize/stitch captures to the CFR30 clip contract
│   ├── mix_clip_audio.py          # mix one clip's own audio into the soundtrack + duck the VO
│   ├── validate_brief.py          # Creative Brief validation, fingerprint state, storyboard read
│   └── check_requirements.sh      # JSON/plan preflight + consent-scoped safe fixes
├── test/
│   ├── run.sh                     # stdlib unit/integration test entrypoint
│   ├── check_shell_portability.py # native Bash smoke checks, with real Node/Python and stub installers
│   └── unit/                      # caption, capture, requirements, onboarding, brief and resolver tests, plus:
│       ├── test_compat_pointers.py # pointer validity — compat/ecosystem.md is the only holder of upstream paths
│       ├── test_director_keys.py  # docs-as-contract — director keys + the capability-tag vocabulary
│       └── test_storyboard_extra_keys.py # behavior probe — director keys survive the official storyboard format
└── .github/
    └── copilot-instructions.md    # Guide for Copilot reviewers

Development checks

Run the existing helper suite with bash test/run.sh. The native shell verification workflow also runs on macOS using /bin/bash 3.2, and on Windows using Git Bash with native Windows Node and Python, not WSL. It runs on pushes and pull requests touching scripts, tests, shell-recipe workflows/patterns, SKILL.md, the CI workflow or Git attributes. Once the workflow is on the default branch, it can also be started manually from Actions.

Each native job runs test/check_shell_portability.py and the existing full suite independently, then uploads native-shell-macOS or native-shell-Windows logs even when a check fails. The smoke checks exercise file, stdin and standalone-download invocation, real Node/ICU checks, isolated --fix calls with installer stubs, and Windows core.autocrlf=true checkouts. They do not install dependencies through --fix, rewrite checked-out files, suppress failures or turn a skipped test into platform verification.

Git attributes preserve LF bytes for text files even with core.autocrlf=true, so Windows checkouts do not change the recorded example or its pinned hashes. The test fixtures resolve native shell executables and convert MSYS paths at the Python/shell boundary. Tests for filenames Windows cannot represent remain explicitly POSIX-only.

Voiceover manifest publication fsyncs the file before atomic replacement on all platforms. POSIX also fsyncs the parent directory; Windows does not support opening that directory through Python’s os.open, so no directory-fsync guarantee is made there.

To check macOS locally with the same interpreter:

python3 test/check_shell_portability.py --bash /bin/bash \
  --expected-platform darwin --expected-bash 3.2

On Windows, run from Git Bash with native Node and Python on PATH:

python test/check_shell_portability.py --bash "$BASH" --expected-platform win32

Push the verification changes to start both jobs; their results and uploaded logs are the evidence, not the presence of this workflow. Known portability failures remain visible until repaired, and optional integrations skipped by the full suite remain unverified.

FAQ

Q: Can I use this without ElevenLabs? A: Yes — explicitly choose a Kokoro voice in Phase 1. Phase 5 then uses npx hyperframes tts locally with no API key, even if an ElevenLabs key exists. For non-English narration, install the language/backend prerequisites identified through TTS_LOCAL (including espeak-ng when required). The skill never silently switches providers or assumes a curated voice list is the full language catalog.

Q: Can I skip the screenshot capture phase? A: Yes, when the confirmed product surface is none and the storyboard requests no capture. Phase 2 records and stamps that intentional skip before Phase 3. A jump cannot bypass a stale or unconfirmed brief merely because files exist.

Q: What video resolution/format does it output? A: 30fps MP4 (H.264 video + AAC audio) via npx hyperframes render. The canvas size is chosen in Phase 1:

  • 16:9 → 1920×1080 (recommended for horizontal promos, web, and embeds)
  • 9:16 → 1080×1920 (vertical — TikTok, Reels, Shorts)
  • 1:1 → 1080×1080 (square — IG feed, LinkedIn)
  • 4:5 → 1080×1350 (portrait IG feed)

Q: Can I edit the video after generation? A: Yes — the project is plain HTML + CSS + GSAP. Edit index.html or any scenes/*.html file directly. Run npx hyperframes preview --background for a scrubbable timeline UI, then run npx hyperframes preview --stop when review ends before using npx hyperframes render to re-render. Closing the Studio browser does not stop its preview server.

Q: Is Freesound music free to use commercially? A: It depends on the track. Freesound hosts a mix of CC0 (public domain — no attribution, commercial OK), CC-BY (commercial OK with attribution), and other Creative Commons variants. You pick the track yourself and record its license in the Creative Brief, so check that license on the track’s Freesound page before commercial use — prefer CC0 or CC-BY. For a license that requires attribution, the workflow writes a CREDITS.md.

Credits

Fork of promo-video by buildatscale-tv, extended with design thinking, Chrome DevTools capture, HyperFrames composition (HTML + GSAP), and confirmed-track music sourcing.

Trademarks and attribution

All product names, brands, and trademarks referenced by this skill — including the ten design-systems/ presets — are the property of their respective owners and are used nominatively, to identify those products. The design-system presets are original written descriptions of publicly observable visual conventions; this project ships no third-party logos, fonts, or brand assets.

See TRADEMARKS.md for full attribution and for the licensing of generated output (Freesound music, ElevenLabs voiceover, your own captures).

License

MIT

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add nebrass/hve-video-director
New to MCP? Start with the mcpskill.org guide →