/gemskills:generate-videofrom gemskills
Generates AI videos using Veo 3.1 with text-to-video, image-to-video, style application, and prompt rewriting. Handles subject consistency, frame interpolation, and native audio.
Ships in gemskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate videos using Veo 3.1 (veo-3.1-generate-preview) with native audio, 720p/1080p/4K resolution, and 4-8 second clips.
Use this skill when the user asks to:
Veo video generation takes 11 seconds to 6 minutes. The script handles polling internally and outputs only a file path when complete.
Always run the generate script as a background task to avoid blocking the conversation and bloating context with polling output:
# CORRECT: background task
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "prompt" --output video.mp4
# Run with run_in_background: true in the Bash tool
After the background task completes, read only the final line of output (the file path). Do not read the full output — it contains only stderr progress dots.
If the user hasn't specified a style, present a multi-choice question before proceeding:
How would you like to handle the art style?
- Pick a style - Browse 169 styles visually and choose one
- Let me choose - I'll suggest a style based on your prompt
- No style - Generate without a specific art style
Use the AskUserQuestion tool to present this choice.
If the user picks "Pick a style", launch the interactive style picker:
STYLE_JSON=$(bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/browsing-styles/scripts/preview_server.ts --pick --port=3456)
Pass the selected style via --style <id> to the generate command.
If the user already specified a style, skip this step and use --style directly.
Before generating any video, rewrite the user's prompt using the guide in references/veo-prompt-guide.md.
Transform prompts by adding:
User says: "ocean waves" Rewritten: "Dramatic slow-motion ocean waves crashing against dark volcanic rocks at golden hour. Spray catches the warm sunlight, creating rainbow mist. Low-angle shot, camera slowly dollying forward. Deep rumbling wave sounds with seagull calls in the distance."
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "prompt" [options]
--input <path> - Starting frame image (image-to-video mode)--ref <path> - Reference image for subject consistency (up to 3, can specify multiple times). Auto-selects replicate-veo model.--last-frame <path> - Ending frame for interpolation. Auto-selects replicate-veo model.--style <id> - Apply style from the style library (same as generate-image)--aspect <ratio> - 16:9 (default) or 9:16--resolution <res> - 720p (Gemini default), 1080p (Replicate default), 4k (Gemini API only)--duration <sec> - 4, 6, 8 (default: 8)--negative <text> - Negative prompt (what to avoid)--seed <n> - Random seed for reproducibility--output <path> - Output .mp4 path--provider <name> - gemini (Veo) or xai (Grok Imagine). Omit to auto-pick by available keys. --model is a legacy alias (veo/replicate-veo→gemini, grok→xai).--oneshot - xAI only: direct text-to-video on grok-imagine-video (v1) instead of the default auto-frame → grok-imagine-video-1.5 image-to-video--no-audio - Disable audio generation (Replicate Veo only)--auto-image - With --style, auto-generate a styled starting frame first (Veo)# Text-to-video (Gemini API, default)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "Ocean waves crashing on volcanic rocks at sunset" --output waves.mp4
# Image-to-video (animate an existing image)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "The lion slowly turns its head, dots shimmer" --input lion.png --output lion.mp4
# Subject-consistent video with reference images (auto-selects Replicate Veo)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "Two warriors face off in a wheat field, dramatic standoff" \
--ref warrior1.png --ref warrior2.png --ref scene.png --output standoff.mp4
# Image-to-video with last frame interpolation (auto-selects Replicate Veo)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "Camera slowly pans across the landscape" \
--input start.png --last-frame end.png --output pan.mp4
# With art style
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "Mountain landscape comes alive with wind" --style impr --output mountain.mp4
# Full pipeline: auto-generate styled image, then animate
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "A lion turns majestically" --style kusm --auto-image --output lion.mp4
# Vertical video for social
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "Waterfall in lush forest" --aspect 9:16 --resolution 1080p --output waterfall.mp4
# High resolution (Gemini API)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "City skyline timelapse" --resolution 4k --duration 8 --output city.mp4
# xAI Grok Imagine — default path: auto-generate a frame, then animate with grok-imagine-video-1.5
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "neon koi swimming in a dark pond" --provider xai --resolution 720p --output koi.mp4
# xAI one-shot text-to-video (grok-imagine-video v1) — faster/cheaper, lower quality
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "a paper crane rotating" --provider xai --oneshot --output crane.mp4
# xAI image-to-video from your own frame (grok-imagine-video-1.5, up to 1080p)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "the scene comes alive with wind" --provider xai --input frame.png --resolution 1080p --output alive.mp4
Use --ref to pass 1-3 reference images for subject-consistent video generation (R2V). This automatically uses Replicate Veo 3.1.
Constraints:
--ref with --input (Replicate API limitation)Best for: Maintaining character likeness across camera angles, matching specific people/objects in generated video.
When using --input, the input image must match the target video aspect ratio. A square image fed to 16:9 video produces black pillarboxing with cutoff edges.
--aspect 16:9 (default video) or --aspect 9:16 (vertical video)--auto-image flag handles this automaticallyFor maximum control, generate the starting frame separately. Always match the aspect ratio:
# Step 1: Generate styled image at 16:9 (matches default video aspect)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-image/scripts/generate.ts "majestic lion portrait" --style kusm --aspect 16:9 --size 2K --output lion.png
# Step 2: Animate the image
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-video/scripts/generate.ts "The lion turns its head slowly, dots shimmer in the light" --input lion.png --output lion.mp4
open <file>.mp4--auto-image) are saved as PNG files for referenceTwo providers, selected with --provider or auto-picked when omitted
(ranking for video is xai > gemini). When --ref or --last-frame is used,
the request routes to Gemini/Veo automatically (those features are Veo-only).
Tune prompts per provider — after the provider is resolved, read the matching
guide: providers/prompts/video.gemini.md or providers/prompts/video.xai.md.
GEMINI_API_KEY)veo-3.1-generate-preview. Text-to-video,
image-to-video, 720p/1080p/4K, native audio, negative prompts. Override via
GEMINI_VIDEO_MODEL.REPLICATE_API_TOKEN,
auto-selected by --ref/--last-frame): reference images for subject
consistency (R2V), last-frame interpolation, 720p/1080p.XAI_API_KEY)grok-imagine-video-1.5 — the
newest, highest-quality model (image-to-video only, up to 1080p, native audio).--oneshot: direct text-to-video on grok-imagine-video (v1) — faster
and cheaper, lower quality.--input <frame>: your own start frame → straight to grok-imagine-video-1.5.cost_in_usd_ticks).Models checked 2026-11-07: xAI
/v1/modelslistsgrok-imagine-video,grok-imagine-video-1.5, and the new cheapergrok-imagine-video-1.5-lite(not adopted); Google's docs listveo-3.1-generate-preview,veo-3.1-fast-generate-preview, andveo-3.1-lite-generate-preview. No video was generated in this check, and the Gemini key was rejected, so Veo ids are by docs only. Last full live video run: June 2026.grok-imagine-video-1.5is image-to-video ONLY — text-to-video on it is rejected by the API. If a newer generation exists, STOP and suggest a PR tob-open-io/gemskills.
For detailed video prompting strategies:
references/veo-prompt-guide.md - Veo prompt elements, audio cues, negative prompts, and image-to-video tipsreferences/gemini-api.md - Current Gemini/Veo models and SDK infoVideo runs on xAI (grok-imagine-video, grok-imagine-video-1.5) and Gemini (Veo 3.1). OpenAI has no video model in gemskills, so --provider openai is invalid for video. Auto-pick ranks xai > gemini and filters by key. Missing keys stop the script with the env var to set. Image frames for --auto-image come from the image provider chain (OpenAI, Gemini, or xAI).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-video, veo, text-to-video, image-to-video, video-generation, prompt-rewriting
gemskills@b-open-io is listed by b-open-io/claude-plugins — review the source before installing
npx claudepluginhub b-open-io/claude-plugins --plugin gemskills19 skills in this plugin
/ask-geminiThis skill should be used when the user asks to "ask Gemini", "get Gemini's opinion", "have Gemini review", "improve writing style", "make less AI-sounding", "get feedback on article", "review this draft", "Nano Banana", "Gemini API help", "Gemini models", or needs a second opinion on content, writing, code, or design. Supports text questions and up to 10 images./avatar-portraitThis skill should be used when the user asks to "create an avatar from a photo", "generate a portrait avatar", "make a profile image", "convert headshot to styled portrait", "team member avatar", "character-style avatar", or needs likeness-preserving avatars in any style (including pixel art)./browsing-stylesThis skill should be used when the user asks to "browse art styles", "pick a style", "choose a style", "select a style", "list available styles", "search styles", "show style options", "what styles are available", "explore artistic styles", "open style browser", "style picker", or needs to see available styles for image generation. Launch the visual browser (browse.ts) when the user wants to interactively pick a style./codex-agent-setupExplicit-only installer for the Gemskills Lisa Codex custom agent. Use ONLY when the user explicitly asks to install, update, check, uninstall, or set up the Gemskills or Lisa Codex agent, including "install Lisa in Codex", "update the Gemskills Codex agent", or "check gemskills_content". Never auto-invoke for ordinary image, video, design, or media-generation requests./deck-creatorThis skill should be used when the user asks to "create a deck", "make a presentation", "build slides", "pitch deck", "investor deck", "sales presentation", "design a deck", "interactive presentation", "presenter mode", "HTML slides", "video background deck", "deck playground", "visual deck editor", "deck builder UI", "publish deck link", or needs to generate a complete deck with minimal friction. Handles low-question discovery, early Deck Creator UI launch, theme selection, copywriting, parallel slide generation, PDF stitching, optional HTML presenter, and publishing workflows./edit-imageThis skill should be used when the user asks to "edit an image", "modify a photo", "inpaint", "outpaint", "extend an image", "replace object in image", "add element to image", "resize image for social media", "crop image", "adapt image for Twitter", "convert image to OG format", or needs AI-powered image editing with masks.Other plugins' skills for the same job