| name | video-generation |
| version | 1.0.2 |
| description | Generate videos using structured prompts and optional reference images. Supports scene generation with camera, dialogue, and audio specifications. Use this skill when the user requests to generate, create, or produce videos, clips, animations, or motion content -- even if they just say "make a video of X" or "animate this". |
| comis | {"requires":{"bins":["python3"],"env":["GEMINI_API_KEY"]}} |
Video Generation
Generate high-quality videos using structured JSON prompts and a bundled Python script. Supports a reference image as guidance or as the first/last frame.
All script paths below are relative to this skill's directory. Resolve them against the directory containing the manifest file shown in <location> (e.g., if <location> is ~/.comis/skills/video-generation/SKILL.md, then scripts/generate.py means ~/.comis/skills/video-generation/scripts/generate.py).
Invoke the resolved script by its absolute path while keeping the tool working directory inside the execution workspace. Never set cwd to the skill directory; it is outside workspace bounds. In command examples below, replace each relative scripts/... path with its resolved absolute path.
Write prompt files and generated outputs to your workspace directory (shown in the "Workspace" section of your system prompt).
The bundled script requires the requests Python package (pip install requests).
Workflow
Step 1: Understand requirements
Identify from the user's request:
- Subject/content: What should be in the video
- Style preferences: Art style, mood, color palette
- Technical specs: Aspect ratio, composition, lighting
- Reference image: Any image to guide generation
Step 2: Create structured prompt
Write a JSON prompt file to your workspace directory with naming pattern {descriptive-name}.json.
Step 3: Create reference image (optional)
If the image-generation skill is available, generate a reference image first. A single reference image is used as the guided frame of the video.
Step 4: Execute generation
python3 scripts/generate.py \
--prompt-file ~/.comis/workspace/prompt-file.json \
--output-file ~/.comis/workspace/generated-video.mp4 \
--aspect-ratio 16:9
With reference image:
python3 scripts/generate.py \
--prompt-file ~/.comis/workspace/prompt-file.json \
--reference-images /path/to/ref.jpg \
--output-file ~/.comis/workspace/generated-video.mp4 \
--aspect-ratio 16:9
Parameters:
--prompt-file: Path to JSON prompt file (required)
--reference-images: Path to reference image (optional)
--output-file: Path to output video file (required)
--aspect-ratio: Aspect ratio (optional, default: 16:9)
Do NOT read the Python script -- just call it with the parameters.
Prompt JSON Format
{
"title": "Scene Title",
"background": {
"description": "Environment description with era, mood, atmosphere",
"era": "Time period",
"location": "Setting location"
},
"characters": ["Character A", "Character B"],
"camera": {
"type": "Close-up two-shot",
"movement": "Static with subtle handheld movement",
"angle": "Profile view, intimate framing",
"focus": "Both faces in focus, background soft bokeh"
},
"dialogue": [
{"character": "Character A"
Notes
- Always use English for prompts regardless of user's language
- JSON format ensures structured, parsable prompts
- Reference images enhance generation quality significantly
- Iterative refinement is normal for optimal results