Vibe scene

From vericontext/vibeframe · View interactive version

Vibe scene is an AI agent skill from the GitHub repository vericontext/vibeframe. Author, repair, render, and inspect VibeFrame scene projects built from STORYBOARD.md and DESIGN.md.

How to use this skill

Skill file

Vibe Scene

VibeFrame scene projects are editable video projects built from:

Use this skill when the user wants editable HTML-based scene composition,

storyboard-to-MP4 work, or a host-agent authoring loop.

Use the top-level commands for the main project lifecycle:

vibe init my-video --profile agent --ratio 16:9
vibe build my-video
vibe render my-video -o renders/final.mp4

The vibe scene ... namespace is the lower-level authoring surface:

install-skill, compose-prompts, list-styles, add, and lint.

Pick The Right Path

| Path | Use when | Commands |

| -------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------ |

| Host-agent authoring | Claude Code/Codex/Cursor writes the scene HTML from a plan (default) | vibe build, then vibe scene compose-prompts |

| Deterministic template | CI or a human demo should produce scene HTML without a coding agent (no LLM call) | vibe build --composer template |

| Single-scene draft | You need a quick template scene or fallback HTML | vibe scene add |

Default recommendation for public demos and reproducible dogfood runs:

vibe init my-video --profile agent --ratio 16:9
# edit DESIGN.md and STORYBOARD.md
vibe build my-video \
  --tts kokoro \
  --skip-backdrop \
  --skip-render
# (the host agent authors compositions/scene-*.html, then re-run vibe build)
vibe scene lint index.html --project my-video --fix
vibe render my-video -o renders/final.mp4 --quality standard

Use --skip-backdrop when you want a low-cost composition test. Remove it when

the demo should exercise OpenAI image generation from each beat's backdrop

cue.

Host-Agent Loop

Use this when Claude Code or another coding agent should be the reasoner that

authors compositions/scene-*.html.

vibe build my-video \
  --tts kokoro \
  --skip-backdrop \
  --skip-render

vibe scene compose-prompts my-video --json

If vibe build returns a needs-author plan:

  1. Read the compose plan.
  2. Author each missing compositions/scene-<id>.html.
  3. Run vibe scene lint index.html --project my-video --fix.
  4. Fix remaining lint errors by editing the HTML.
  5. Run vibe render my-video.

Hard rules for authored scene HTML:

treat provider assets as inputs rather than the whole product.

Low-Level Scene Commands

vibe scene install-skill my-video --host auto
vibe scene compose-prompts my-video --json
vibe scene list-styles
vibe scene add intro --project my-video --style announcement --headline "Hello"
vibe scene add badge --project my-video --style simple --lottie assets/logo.lottie --lottie-position bottom-left
vibe scene lint index.html --project my-video --json --fix

Run vibe schema scene.<subcommand> before using less common flags.

Overlay a Lottie animation (.json/.lottie) on a scene with --lottie <path>,

tuned by --lottie-position (full|center|top-left|top-right|bottom-left|bottom-right),

--lottie-scale, --lottie-opacity, and --lottie-no-loop. The scene timeline

drives it frame by frame from a runtime copied into assets/vendor/dotlottie/

(no provider call, free).

Takes: Keeping A Generation You Liked

vibe build records every beat asset it generates (narration, backdrop,

keyframe, video, music) as a take, and keeps each take's bytes. When a

regeneration came out worse, put the earlier one back instead of paying again:

vibe take list --beat <id> --json       # inSlot marks what the slot holds now
vibe take promote <take id> --dry-run --json
vibe take promote <take id>

Later builds keep a promoted slot until that beat's cue is edited or

vibe build --force runs. vibe take log --json totals what the project

spent, split into provider billing and estimates. vibe take prune --dry-run

shows media copies safe to remove (--slots-only frees more, but those takes

can no longer be promoted from a copy; ask first). See docs/take-graph.md.

A beat video that is close but not right can be continued instead of

regenerated: vibe take extend <take id> adds time after its last frame,

vibe take edit <take id> --prompt "<the change>" revises it (Grok and

Gemini Omni; Kling legacy models extend only). Both are paid: run

--dry-run --json first, confirm the spend with the user, and pass

--max-cost. The result is a new take for the same slot; promote it to use it.

Review reports link findings to takes: an issue about one beat lists the

takes filling its slots in issues[].takes, and a finding about generated

content adds take edit / take promote actions to nextActions. Use those

rather than regenerating the whole beat.

Narration Word-Sync

During vibe build, generated narration is transcribed at the word level

(ElevenLabs Scribe when ELEVENLABS_API_KEY is set, else OpenAI Whisper) to

assets/transcript-<beat>.json whenever narration exists and one of those keys

is configured. Those word timings are passed into each beat's compose

prompt so captions / kinetic typography can be synced to speech.

word-level animation timing.

them. For long narration the prompt downgrades to coarse phrase-level anchors.

STYLE And STORYBOARD Guidance

Never author scene HTML before DESIGN.md exists. Treat it as the hard gate

for visual decisions:

Scenes live in scenes/, one markdown file per scene, playing in filename

order. Cues go in the frontmatter, direction in the body:

---
type: Scene
narration: "The first sentence the viewer hears."
backdrop: "Specific visual prompt for the scene backdrop"
duration: 5
---

What the scene should show.

STORYBOARD.md holds only project frontmatter and direction prose. Beat

headings left in it are ignored and reported - move them into scenes/, or

run vibe storyboard migrate on an older single-file project.

Lint Feedback Loop

vibe scene lint index.html --project my-video --json --fix

Recommended loop:

  1. Run lint with --json --fix.
  2. Fix any error findings in the referenced scene file.
  3. Re-run lint.
  4. Cap retries at 3; if errors persist, replace the scene with a simpler

vibe scene add ... --style simple --force draft and explain the tradeoff.

Warnings can be acceptable for demos only when the final render is visually

correct and deterministic.

Render Checklist

codec shape.

Common Failures

created, or use vibe init --profile full.

author the listed scene files and rerun build.

or configure the key before generating backdrops.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.