generate-video
Skill16 starsChanged 5 months agoMITView on GitHub
Generate video content using Gemini Veo. Use when user asks to create video, TikTok ad, Instagram Reel, YouTube video, product video, explainer.
- Reads credentials
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- indranilbanerjee/socialforgetheir own version, first seen Jul 29, 2026
- celeryhq/simplified-aitheir own version, first seen Jul 13, 2026
- SamurAIGPT/muapi-claude-codetheir own version, first seen Jun 11, 2026
- aslanzubairaev/reels-factorytheir own version, first seen May 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- indranilbanerjee/socialforge★ 39same name
- SamurAIGPT/muapi-claude-code★ 4same name
- celeryhq/simplified-ai★ 3same name
- aslanzubairaev/reels-factory★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-videoSkill
- content-preflightSkill
- content-reviewSkill
- cost-guardSkill
- create-workflowSkill
- generate-brand-assetsSkill
- generate-imageSkill
- generate-musicSkill
- generate-voiceoverSkill
- localize-contentSkill
- onboard-brandSkill
- package-contentSkill
- plan-contentSkill
- preview-pickSkill
- produce-contentSkill
- qa-reviewSkill
- repurpose-contentSkill
- revise-contentSkill
- write-copySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 97
Do you have a character reference image in assets?
- Distinctive: line 98
Should the character speak or be silent?
- Very specific: line 104
Check style_references in the registry (resolveAsset) — registered look refs feed keyframe prompts and referenceImagePaths ("style only, …
- Very specific: line 109
Don't guess from filenames: Read the project's asset registry — it records every reusable character/product/voice with validated paths.
- Distinctive: line 156
Solution: Use the SAME character reference image for ALL video clips.
- Very specific: line 187
Add extra angles as more files entries under the same id when needed
- Very specific: line 211
If voiceover is chosen, do NOT auto-pick the voice: Run the voiceover suggest-and-confirm flow (skills/generate-voiceover/SKILL.md Steps …
- Very specific: line 409
After the clips/audio exist, assemble the deliverable with the assembly workflows (local ffmpeg, no extra API cost).
- Distinctive: line 577
Before any stylized Omni generation: ask the art-style question (Required Question 6 above).
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate Video
⚠️ STOP: COMPLETE THIS CHECKLIST BEFORE WRITING ANY CODE
You MUST complete ALL steps below and SHOW output to user before generating.
□ Step 0: RUN content-preflight (classify topic/visual mode, resolve required assets)
□ Step 1: ASK user "Does this video include a person/character?"
□ Step 2: Look up the character/product in the asset registry (resolveAsset) — SHOW result
□ Step 3: If a locked character asset exists → TELL user you will reuse its ref files
□ Step 4: READ project.md and brand.md templates
□ Step 5: ASK user to confirm workflow selection
□ Step 5b: Any character SPEAKS? → WRITE THE EXACT LINES in the prompt, and add NO voiceover
□ Step 6: THEN generate using workflow functionDO NOT skip to code. DO NOT assume. SHOW each step.
🔴 SPEAKING CHARACTERS: QUOTE THE DIALOGUE, SKIP THE VOICEOVER
Applies to all Omni modes (text_to_video, image_to_video,
reference_to_video) and to Veo/Seedance speaking clips.
The model always generates the speech. If you don't write the lines, it invents
them — and its invention can reverse your story. Never write "speaks a short
reassurance" or "mouth moving in natural speech". Write says: <exact words>.
Then do NOT layer a TTS voiceover on that scene. The clip already carries its
dialogue. Voiceover (generateVoiceover) is for narration only — a narrator
over visuals with no on-screen speaker.
In assembleStoryFilm: speaking scenes keep ambientVolume: 1.0 and pass no
voPath. Only narration scenes get a voPath.
Full rules + the production incident that produced them:
workflows/VIDEO-PROMPT-GUIDE.md §4e / §4e-vo.
CRITICAL: CALL THE WORKFLOW CLI — DO NOT WRITE A SCRIPT
DO NOT write raw API calls. DO NOT author a .cjs/.ts file that imports these
functions. RUN the workflow as a CLI command:
node workflows/cli.cjs <command> '<json-args>' # or @args.json for long promptsVideo commands (run node workflows/cli.cjs list for all):
| Command | Use for |
generateSilentVideo | B-roll / product video, no voice |
generateSpeakingVideo | On-camera character speaking |
generateVideoFromImage | Animate an approved keyframe |
generateSpeakingVideoFromImage | Character image → speaking clip |
generateVideoWithVoiceover | Video + generated voiceover |
generateVideoFromImageWithVoiceover | Keyframe → video + voiceover |
generateOmniVideoClip | Omni Flash: stylized explainers, text-in-scene, multi-ref consistency, edit existing clips |
Example:
node workflows/cli.cjs generateSilentVideo \
'{"prompt":"...","outputPath":"projects/{name}/output-contents/clip01.mp4","duration":8,"aspectRatio":"9:16","quality":"fast"}'For each command's argument shape: Read workflows/WORKFLOWS.md. The import
signatures there document the args — translate them into a cli.cjs call.
Storyboard before you pay for clips. For any multi-scene/character video, generate a keyframe per scene with
generateStoryboard()(~$0.067 each), get the user's approval, then generate clips from the approved keyframes. See thepreview-pickskill. Need the script/hook first? Use thewrite-copyskill (generateHooks→generateScript).
MANDATORY STEPS BEFORE GENERATING (DO NOT SKIP)
Step 1: Ask About Person/Character (REQUIRED)
ALWAYS ask the user:
- Does this video include a person/character?
- Yes → Need character reference OR description
- No → Product-only or B-roll video
- If yes, ask:
- Do you have a character reference image in assets?
- Should the character speak or be silent?
- Reference material? (ask once, before writing any video prompt)
- "Is there a video you want this to feel like — yours or anyone's? (link/file,
or 'none')" → if given, run the
analyze-videoskill FIRST and build from its recreation blueprint instead of improvising prompts. - Check
style_referencesin the registry (resolveAsset) — registered look refs feed keyframe prompts andreferenceImagePaths("style only, not subject").
- "Is there a video you want this to feel like — yours or anyone's? (link/file,
or 'none')" → if given, run the
Step 2: Look Up Assets in the Registry (REQUIRED) - SHOW RESULTS TO USER
Don't guess from filenames. Read the project's asset registry — it records every
reusable character/product/voice with validated paths. (Pre-flight has usually populated
it already; see skills/content-preflight/SKILL.md.)
node workflows/cli.cjs loadAssetConfig '["{name}"]'
node workflows/cli.cjs resolveAsset '["{name}","char-main"]' # the character id from the content plan
node workflows/cli.cjs resolveAsset '["{name}","prod-main"]'
# resolveAsset → { ok, existing[], missing[] }Then TELL the user what you found:
Asset registry (projects/{name}/config/assets.yaml):
✓ character char-main → 3 refs, locked (will reuse for consistency)
✓ product prod-main → 2 refs
⚠ no voice linked to char-main
Reusing char-main's reference images — not regenerating the character.char.ok === true→ passchar.existing[...]as the reference image(s). Do not re-describe or regenerate a locked character.char.ok === false(missing or no asset) → resolve it via pre-flight's provide/generate flow, thenregisterAsset(...)so it's saved for next time.- Priority: character reference > product reference when the video has a person.
Step 3: Read Project Templates (REQUIRED)
cat projects/{name}/templates/project.md
cat projects/{name}/templates/brand.mdStep 4: Read Workflow Documentation (REQUIRED)
cat workflows/WORKFLOWS.mdCHARACTER CONSISTENCY (CRITICAL)
Problem: Each video generation creates a NEW random character.
Solution: Use the SAME character reference image for ALL video clips.
Workflow for Character Consistency (registry-driven):
- Resolve the character from the registry:
node workflows/cli.cjs loadAssetConfig '["{name}"]' node workflows/cli.cjs resolveAsset '["{name}","char-main"]' # → { ok, existing[], missing[] } - If
char.ok→ reuse the SAME ref file for every clip:# reuse char.existing[0] from resolveAsset (the validated, on-disk path) as referenceImagePath node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"<char.existing[0]>","dialogue":"Dialogue for this clip"}' # ...more args - If not (no asset yet) → generate ONCE, then register it:
# Step 1: Generate the character keyframe one time node workflows/cli.cjs generateSingleImage '{"prompt":"Woman in her 30s, dark hair, professional attire, neutral expression","outputPath":"projects/{name}/assets/characters/char-main-front.png","aspectRatio":"9:16"}' # Step 2: Save it to the registry so EVERY future clip/piece reuses it node workflows/cli.cjs registerAsset '["{name}","characters",{"id":"char-main","label":"Main character","description":"Woman in her 30s, dark hair, professional attire","source":"generated","status":"ready","locked":true,"files":{"front":"assets/characters/char-main-front.png"}},{"date":"<today ISO>"}]' # Step 3: Use it as the reference for all videos node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"projects/{name}/assets/characters/char-main-front.png"}' # ...more args - For multi-clip videos / series:
- Generate (or provide) the character keyframe ONCE and
registerAsset(... locked:true) - Resolve the SAME id for every clip — identical character across all clips
- Add extra angles as more
filesentries under the same id when needed
- Generate (or provide) the character keyframe ONCE and
REQUIRED QUESTIONS
Always ask these questions:
- Does this video include a person/character?
- Yes, speaking →
generateSpeakingVideo()orgenerateSpeakingVideoFromImage() - Yes, silent →
generateVideoFromImage()with character reference - No →
generateSilentVideo()orgenerateVideoFromImage()with product
- Yes, speaking →
- Platform? (TikTok, Instagram, YouTube)
- Duration? (15s, 30s, 60s)
Audio style? — ALWAYS ask, don't assume:
- Silent →
generateSilentVideo()orgenerateVideoFromImage() - Character speaks (on-screen) →
generateSpeakingVideo()/generateSpeakingVideoFromImage() - Voiceover (off-screen narration, TTS) →
generateVideoWithVoiceover()/generateVideoFromImageWithVoiceover() - Music only → generate video silent + add a music bed
If voiceover is chosen, do NOT auto-pick the voice. Run the voiceover suggest-and-confirm flow (
skills/generate-voiceover/SKILL.mdSteps 1c–3): propose voice / style / pace / accent / script / pronunciation / music-under-VO with reasoning, show the summary, and get the user's confirmation before generating. Reuse the project's locked voice (or the on-screen character'slinked_voice) if one exists, but still confirm it.- Silent →
- Reference images? (check assets folder)
If generating with Omni Flash — ART STYLE (REQUIRED, do not skip): Present the preset list and ask the user to pick ONE:
Omni Flash art style — which look? 1. photorealistic (default — no preset) 2. pixel-art 7. low-poly 3. claymation 8. 3d-mix 4. mixed-media 9. isometric-flat-vector 5. 3d-papercraft 10. fluffy-toy 6. whiteboard-doodle 11. 2d-illustration …or describe your own custom stylePass the chosen id as
"artStyle"(omit for photorealistic). Record the choice inprojects/{name}/templates/brand.mdso the whole series stays in one style. Never silently pick a style for the user.Camera movement — REQUIRED for EVERY clip/scene. Check the guide, don't improvise: A clip with no camera direction renders as a locked-off static shot — dead energy. For EVERY clip in the piece, READ
VIDEO-PROMPT-GUIDE.md §2b(46 presets) and pick 1-2 ids that fit that clip's intent, tell the user which you chose and why, and confirm. One move per clip; vary moves across consecutive clips (two identical moves back-to-back reads as a loop).staticis itself a deliberate preset — allowed only when the user explicitly wants a locked-off look, never as a default by omission.Intent Propose Product hero / reveal slow-zoom-in,orbit-clockwise,dolly-inCalm premium B-roll static,slider-right,slow-zoom-outHype / hook energy crash-zoom-in,whip-pan-right,chaseUGC / authentic handheld,first-personWalking testimonial reverse-tracking,side-trackingLocation / scale reveal drone-pull-back,crane-up,earth-zoom-outScene transition whip-pan-*,pass-through,infinite-zoomPass it as
"cameraMove":"<id>"ongenerateSilentVideo,generateVideoFromImage, orgenerateOmniVideoClip— the full Movement/Speed/Framing/End block is prepended automatically. For scene-array workflows (voiceover scenes, speaking video, Seedance), paste the block text from the guide at the head of each scene prompt instead.- Series/film/campaign? → Style Block (one locked look on every prompt):
For a cinematic film, animated series, or product-shot campaign, write
projects/{name}/templates/style-block.mdONCE with the user (template + variants:templates/style-block.template.md), register it locked (style_references), then prepend the block verbatim to every clip, keyframe, and image prompt of that series — note "style-block: v1" in prompts.txt. The block owns the LOOK (medium, lighting, color, lens);cameraMoveowns the MOVEMENT (question 7) — never put camera movement inside the block. Skip for one-off clips; brand.md aesthetic is enough there.
WORKFLOW SELECTION
| User Wants | Has Person? | Has Reference? | Audio | Use Workflow |
| B-roll, ambient | No | No | Silent | generateSilentVideo() |
| Product video | No | YES | Silent | generateVideoFromImage() |
| UGC, testimonial | YES | No | Character speaks | generateSpeakingVideo() |
| Character video | YES | YES | Character speaks | generateSpeakingVideoFromImage() |
| Explainer | No | No | Voiceover (TTS) | generateVideoWithVoiceover() |
| Product explainer | No | YES | Voiceover (TTS) | generateVideoFromImageWithVoiceover() |
RULE: If video has person AND character image exists → ALWAYS use character image as reference.
WORKFLOW EXAMPLES
1. Silent Video (B-roll, no person)
node workflows/cli.cjs generateSilentVideo '{"prompt":"Cinematic shot of smartwatch on wrist, golden hour","outputPath":"projects/my-project/output-contents/video.mp4","duration":6,"aspectRatio":"9:16","quality":"fast"}'2. Product Video from Reference (no person)
node workflows/cli.cjs generateVideoFromImage '{"referenceImagePath":"projects/my-project/assets/product-watch.png","prompt":"Product rotates slowly, premium lighting","outputPath":"projects/my-project/output-contents/product.mp4","duration":6,"aspectRatio":"9:16","cameraMove":"orbit-clockwise"}'cameraMove (optional, also on generateSilentVideo / generateOmniVideoClip)
prepends a tested four-part camera block — 46 preset ids in
workflows/VIDEO-PROMPT-GUIDE.md §2b (see Required Question 7).
3. Speaking Video with Character Reference (RECOMMENDED for consistency)
# Use character image from assets for consistency
node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"projects/my-project/assets/characters/char-main-front.png","environment":"Modern office, soft lighting","dialogue":"This watch literally saved my life.","voiceDescription":"warm female voice, early 30s","outputPath":"projects/my-project/output-contents/testimonial.mp4","duration":8,"aspectRatio":"9:16"}'4. Speaking Video without Reference (random character)
# Only use when NO character image exists
node workflows/cli.cjs generateSpeakingVideo '{"characterDescription":"Woman in her 30s, dark hair, professional","environment":"Modern office, soft lighting","dialogue":"This watch literally saved my life.","voiceDescription":"warm female voice, early 30s","outputPath":"projects/my-project/output-contents/testimonial.mp4","duration":8,"aspectRatio":"9:16"}'5. Multi-Clip Video with Consistent Character
# Step 1: Resolve the locked character once from the registry — use .existing[0] as the reference below
node workflows/cli.cjs loadAssetConfig '["my-project"]'
node workflows/cli.cjs resolveAsset '["my-project","char-main"]'
# Step 2: Generate all clips with the SAME reference (char-main .existing[0])
node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"<char-main existing[0]>","dialogue":"First dialogue...","outputPath":"projects/my-project/output-contents/clip-01.mp4","duration":5}'
node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"<char-main existing[0]>","dialogue":"Second dialogue...","outputPath":"projects/my-project/output-contents/clip-02.mp4","duration":5}' # SAME reference
node workflows/cli.cjs generateSpeakingVideoFromImage '{"referenceImagePath":"<char-main existing[0]>","dialogue":"Third dialogue...","outputPath":"projects/my-project/output-contents/clip-03.mp4","duration":5}' # SAME referenceREFERENCE IMAGES: first frame vs asset refs
Two different mechanisms on generateVideoFromImage:
referenceImagePath— first frame: the clip starts from this exact image (animate an approved keyframe).referenceImagePaths— asset references, max 3 (Veo 3.1): character sheet + environment sheet + prop in ONE request; they guide what things look like without appearing verbatim. State each ref's role in the prompt ("the girl from the character sheet", "the garden from the environment reference"). Need 4-5 refs →generateOmniVideoClip(<IMG_REF_n>tags).
When picking refs for a scene, prioritize: character sheet (if the scene has a person) → prop/product sheet → environment sheet. Drop the environment ref first if over the limit — environments survive prompt description better than faces do.
CRITICAL: NO TEXT IN PROMPTS
❌ NEVER include:
- "Text appears..."
- "Caption reads..."
- "Title overlay..."
✅ Only describe visuals:
- Camera movement
- Subject action
- Environment
- Lighting
Text is added via FFmpeg post-production.
COST REFERENCE
| Quality | Cost/sec |
| lite | $0.03 |
| fast | $0.08 |
| standard | $0.20 |
Example: 20s video at 'fast' = $1.60
Check the budget cap BEFORE generating (the CLI hard-stops at BUDGET_EXCEEDED):
node workflows/cli.cjs checkBudget '["{name}", 1.60]' # project name + estimated costPIPELINE-FIRST + AUDIT TRAIL (MANDATORY)
- Author the pipeline before generating — even for one clip: save
<content-id>.pipeline.jsonIN the content folder (nodes = CLI commands,{{node.data.field}}refs wire outputs to inputs), thennode workflows/cli.cjs runPipeline @<file>. Seeworkflows/pipelines/README.md. - prompts.txt in every content folder — video prompt(s), keyframe prompts, and script/VO text (with tags); update on EVERY retry with a one-line RESULT note.
- Manifest — log each generation via the
createGenerationManifest/addManifestEntryCLI commands (AGENT-GUIDE Step 5).
VOICE OPTIONS (for TTS)
Professional: Kore, Charon, Orus, Fenrir Friendly: Zephyr, Puck, Aoede, Leda Energetic: Calliope, Proteus Calm: Autonoe, Despina, Aura
FINISHING: captions + final assembly
After the clips/audio exist, assemble the deliverable with the assembly workflows (local ffmpeg, no extra API cost). Ask the user whether they want burned-in captions — short-form (TikTok/Reels/Shorts) usually should.
# 1. (optional) Captions from the voiceover/dialogue script
node workflows/cli.cjs generateCaptions '{"script":"<voiceover/dialogue script>","totalDuration":30,"outputPath":"projects/{name}/output-contents/captions.srt"}'
# 2. One call: concat clips → lay voiceover + music (music auto-ducks) → burn captions
node workflows/cli.cjs assembleFinal '{"clipPaths":["…/clip-01.mp4","…/clip-02.mp4"],"voiceoverPath":"…/voiceover.wav","musicPath":"…/music.wav","musicVolume":0.3,"captionsSrtPath":"…/captions.srt","outputPath":"projects/{name}/output-contents/final.mp4"}'
# voiceoverPath / musicPath / captionsSrtPath are optional; omit captionsSrtPath to skip burned-in captions; musicPath reuses the registry music bed
# Optional between-clip transitions: add "transition":"dissolve" + "transitionDuration":0.5
# 58 viable presets (pick by intent): slide=slideleft/right/up/down · swipe=wipe*/smooth* ·
# cover*/reveal* · zoom=zoomin/squeezeh/squeezev · fades=fade/fadeblack/fadewhite/dissolve ·
# stylized=pixelize/distance/hblur/*wind · shapes=circleopen/radial/diagtl… Full table: VIDEO-PROMPT-GUIDE.md § Assembly transitions.
# NOT YET (guard rejects): glitch, roll, zoomout. Hard cuts when transition omitted.
# Each overlap shortens the total by its duration; every clip must outlast it.For audio-only mixing (single clip + VO/music, no concat/captions) use mixVideoAudio().
Text on video — THE THREE ROUTES (name the route before planning)
| Route | Cost | Command | Use for |
| A — Normal captions | $0 | renderCaptionedVideo / TextMotion scrim:true | transcript pills, white-on-dark at y=0.75, accent keywords — every VO video |
| B — Creative text, AI-designed | $0 | renderTextMotion (+ rembg behind-subject) | hero/kinetic words the AGENT designs: frame-grab → place in the SUBJECT's negative space (close 9:16 talking head → band above the head, y≈0.09 — never on a face) → words from the video's own transcript → per-word style/motion → frame-grab verify BEFORE assembly |
| C — Creative text, Omni-baked | PAID ≈$0.10/sec | generateOmniVideoClip task edit | text drawn/painted INTO the scene. Timestamped beats (00:02 — {…}) work; keep prompts minimal; behind-subject occlusion works ONLY at head height; output silent → mixVideoAudio; 10s cap → split+concat+setpts. Full rules: TEXT-OVERLAY-DESIGN-GUIDE.md §8. Confirm spend first. |
⚠️ For CREATIVE text, ASK the user first — "free (Remotion, agent-designed) or
paid with Gemini Omni (~$0.10/sec, in-scene drawn look)?" — recommend free, never
route to Omni silently. If they pick Omni, CALCULATE the job's total (count every
≤10s call the scenes need × ~$0.10/sec, e.g. 18s scene = 2 calls ≈ $1.90), state
it with the budget position, and checkBudget before the first call.
Full route selector + house styles + the ask script: workflows/TEXT-OVERLAY-DESIGN-GUIDE.md §0-pre.
Creative captions — pick the method by the video, don't default blindly
assembleFinal's captionsSrtPath burns a plain SRT. For anything more expressive, run
renderCaptionedVideo on the finished video — and decide the method from the video
type (a talking-head, a hook reel, and a multi-scene travel piece want different
caption treatments):
- DECISION TABLE + rules:
workflows/TEXT-OVERLAY-DESIGN-GUIDE.md§ 0 (caption method selector). E.g. talking-head → bottom pill transcript +**keyword**accent; hook/sizzle →style:"hero"word punch-ins; multi-scene → upper location stamp + transcript; signature "wow" moment → text-behind-subject. - Cue fields (
stylepill/hero ·posupper/mid/lower ·size·color·**word**accent ·\nstacked lines): WORKFLOWS.md § renderCaptionedVideo. Timing fromtranscribeAudio, offset by each clip's start on the assembled timeline. Only one cue is active at a time → stack layers (transcript + stamp) with separate passes. - Text-behind-subject (a big word behind the speaker,
rembgper-frame matte): recipe in TEXT-OVERLAY-DESIGN-GUIDE.md § 6 — bake into each clip BEFORE assembly, then add the transcript pass. Needs therembglib — check/install first:python3 -c "import rembg" || python3 -m pip install "rembg[cpu]" pillow(first run auto-downloads a ~176 MB model to~/.u2net/).
OUTPUT
Save to: projects/{name}/output-contents/{date}/
final.mp4(assembled: clips + voiceover + music + optional captions)video.mp4orfinal-with-voiceover.mp4- Individual clips:
clip-01.mp4,clip-02.mp4, etc. captions.srt(if generated)
PLATFORM SPECS
| Platform | Aspect | Duration |
| TikTok | 9:16 | 15-60s |
| Instagram Reels | 9:16 | 15-90s |
| YouTube Shorts | 9:16 | 15-60s |
| YouTube | 16:9 | 60s+ |
Kinetic-typography reels → renderTextMotion / renderKineticReel (Remotion, $0)
For word-driven reels (quotes, stats, hooks over brand backgrounds), skip Veo:
generate text-free backgrounds + voiceover, then one call renders staggered
animated typography (per-line size/color emphasis, gold #C8A24A for THE phrase):
node workflows/cli.cjs renderKineticReel '{"scenes":[…],"audioPath":"vo.wav","outputPath":"reel.mp4"}'
Args in WORKFLOWS.md § Remotion. Use Veo only when you need real motion/footage.
For per-element creative control over ANY footage (Route B above) use
renderTextMotion: per-word font/size/color/gradient/stroke/glow/badge,
20+ entrances, loops (float/pulse/wave/neon/wiggle…), letter/word stagger,
mediaFill (video-inside-letters), behind:true (rembg subject matte),
scrim:true caption pills, background.playbackRate to stretch a short
background. Design rules + verification steps: TEXT-OVERLAY-DESIGN-GUIDE.md §0-pre.
Before planning ANY hero title / kinetic reel / "text behind subject" /
meme-style overlay copy, read workflows/TEXT-OVERLAY-DESIGN-GUIDE.md —
placement (behind/front/side), size-hierarchy patterns (hero+support,
hook→context→CTA, question→answer reveal), color/font pairing, and —
important — its capability matrix of what's actually supported by
renderKineticReel/renderSlideStill today vs. what's roadmap-only. Don't
promise a per-word color/size effect or a rotated side badge as if it just
works; the guide names the current workaround or gap explicitly. Myanmar/
Burmese text in ANY of these must go through Remotion, never raw ffmpeg
drawtext — same guide, § 7.
Story films → follow the recipe (do NOT improvise)
- "Brand film" / single-character cinematic story →
workflows/recipes/cinematic-story-film.md: storyline arc, character sheet → keyframes → Veo 3.1 clips → adaptive per-scene VO → one-callassembleStoryFilm. ~$3.65 at fast tier for 4×8s. - "Short film" / multi-character story with consistent cast, locations, props
→
workflows/recipes/story-short-film.md— the production-sheet pipeline:- story bible (
story.md: storyline, characters+personality, locations, items, shot list) → user approval - production sheets per character/location/prop (multi-angle + expressions
- palette, white bg) → register locked
- storyboard image + per-scene prompts mapped to sheets
- clips via
generateVideoFromImagereferenceImagePaths(≤3 sheets/scene; 4-5 refs or stylized → Omni Flash) assembleFinalwithtransition(dissolve/fade) + VO/music/captions
- story bible (
Model choice: Veo 3.1 vs Gemini Omni Flash (updated 2026-07-06)
- Veo 3.1 (
generateVideoFromImageetc.): cinematic fidelity, 1080p+, 8s beats, animating locked NBP keyframes. $0.10/s fast tier. - Omni Flash (
generateOmniVideoClip): instruction-precision + styling + editing. ~$1.03/10s, max 10s/clip, 720p only, 16:9 or 9:16, native audio (VO/SFX prompted in text — no audio input). Timestamped prompts ([00:00-00:02]…,He says,"…",SFX:,(no subtitles)) work on BOTH models — seeworkflows/VIDEO-PROMPT-GUIDE.md§ Gemini Omni Flash for the full guide and tested verdicts.
Omni Flash task selection (auto-detected from args)
| User wants | Pass | Task |
| Explainer / sizzle reel from text | prompt only | text_to_video |
| Animate a keyframe / scene image (explainer, cinematic) | referenceImagePath | image_to_video |
| Product/character consistency in a new scene | referenceImagePaths (2-5) + cite <IMG_REF_0>… in prompt | reference_to_video |
| Add SFX / on-video text / restyle / camera change on an existing clip | inputVideoPath + one-change instruction | edit |
| Motion control — swap the performers in a real video with your characters | inputVideoPath + referenceImagePaths + minimal replace-prompt | edit |
Motion control (video-to-video character swap) — tested recipe
Replaces the people in a real video (dance, choreography, any performance)
with your locked characters; motion, timing, camera, and background carry
over 1:1. Full recipe with receipts: workflows/VIDEO-PROMPT-GUIDE.md §7.
The rules that change outcomes:
- Trim the source to ≤10s first (ffmpeg); aspect + duration inherit from the input video — never pass them on an edit task.
- Prompt MINIMAL — the reference images carry ALL identity/outfit detail:
"Replace the three dancers with the three characters from
<IMG_REF_0>,<IMG_REF_1>, and<IMG_REF_2>(left, center, right respectively), keeping the same choreography, timing, camera, background, and lighting. (no subtitles)". Descriptive breed/outfit prompts get Input-blocked ($0 each) — don't reword adjectives, strip them. - Cast multiple characters by screen position (left/center/right →
IMG_REF_n). Outfit variants of one locked character work well viagenerateImageVariation(~$0.13/still) — clothing must be text/logo-free or it renders garbled. - Output is ALWAYS silent (source audio never survives an edit task) —
remux the same window's audio with
mixVideoAudio(musicVolume 1.0, $0, beat-perfect since motion timing is copied 1:1). - QA with
reviewVideoOutput(frameCount: 4) — watch for mid-clip plush/mascot style drift; re-roll only if publishing.
Before any stylized Omni generation: ask the art-style question (Required Question 6 above). Prefer Omni Flash over Veo for: explainers in a preset art style, live writing/text-in-scene, editing existing clips, and multi-asset consistency. Prefer Veo for: premium cinematic quality and >10s beats. The NO-TEXT-IN-PROMPTS rule is Veo-only — Omni renders and syncs text well.
Consistency & language routing (production-tested 2026-07-06)
Full playbook: workflows/VIDEO-PROMPT-GUIDE.md § Production-Tested Playbook.
The short version that changes decisions:
Character-consistent scenes — keyframe-first pipeline (MANDATORY for multi-scene character films)
- Sheets: multi-view sheet for HUMANS; for fictional objects/mascots ALSO crop
one clean view (
char-x-hero.png) — video models blend multi-view object sheets into segmented toys. - Per scene:
generateImageVariationkeyframe (sheets as refs, target aspect, ~$0.07) → show/QA the STILL → animate that exact file withgenerateOmniVideoClip(image_to_video) orgenerateVideoFromImage. Identity lives in the keyframe; the video model only adds motion + speech. - Characters in the FIRST frame of every scene — or in the LAST frame via
generateVideoFromKeyframes(firstFramePath + lastFramePath, Veo 3.1). - i2v prompts use START FRAME / ACTION / DIALOGUE / END FRAME structure — state WHO must still be in frame at the end.
Language routing for speaking characters
| Dialogue language | Engine |
| English | Veo or Omni |
| Myanmar / Thai / non-Latin scripts | Omni Flash (image_to_video) — better pronunciation, no filter drama |
| Any language + lip-sync UGC realism | Seedance (needs OPENROUTER_API_KEY). Bills per video token — no up-front quote; say so and get consent before running. Check ids/limits with listOpenRouterModels '["video"]' ($0) |
| PROVIDED audio file (voice clone/recording) | infiniteTalkLipsync (RunPod) — the ONLY working path; audio drives the mouth, no duration cap. Omni is policy-blocked for this (deepfake guard) — do not retry it. Recipe: VIDEO-PROMPT-GUIDE §8 |
Veo + non-English script = silent filter blocks ($0, "No video was generated")
unless the ENTIRE prompt is in the target language — which then weakens
reference-following. Never write singing/music/voice-direction meta words in
Veo prompts (instant block); prevent sing-song delivery with "asks casually in
everyday spoken <language>, plain conversational tone".
Fixing a 90%-right clip — Omni edit, WITH character refs
generateOmniVideoClip {inputVideoPath, referenceImagePaths:[<character sheets>], prompt} —
open with "Keep everything the same — same motion, camera, timing, audio and
spoken dialogue. Only <ONE fix>." Any edit touching a character MUST attach
that character's reference images — text-only edits redraw identity. Omit
duration/aspectRatio (inherited from input video).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

