Film creator

From happycapy-ai/Happycapy-skills · View interactive version

Film creator is an AI agent skill from the GitHub repository happycapy-ai/Happycapy-skills. AI-powered film creation assistant that transforms a single sentence or image into a complete 30-second film. Automatically generates screenplay with scenes, dialogue, and camera directions, then produces cinematic video. Use when user wants to create a movie, film, or video story from text or image

How to use this skill

Skill file

Film Creator - AI Film Production Assistant

Transform a single idea or image into a complete 30-second cinematic film with professional screenplay and video generation.

Overview

This skill provides end-to-end film creation capabilities:

  1. Creative Analysis: Analyzes text prompt or image to extract core creative elements
  2. Screenplay Generation: Writes professional screenplay with scenes, dialogue, shot descriptions, and camera movements
  3. Scene Planning: Breaks screenplay into 5-6 scenes (5 seconds each) optimized for video generation
  4. Video Production: Generates high-quality video for each scene using AI Gateway
  5. Film Assembly: Combines scenes into a cohesive 30-second film with transitions

Prerequisites

Required Environment Variable:

Required Tools:

Quick Start

Create a Film from Text

node scripts/create_film.js "A lonely robot discovers the last flower on Earth"

Create a Film from Image

node scripts/create_film.js --image "/path/to/image.jpg" "Transform this into a cinematic story"

Create a Film with Custom Settings

node scripts/create_film.js \
  "A time traveler's final journey" \
  --model "openai/sora-2" \
  --aspect-ratio "16:9" \
  --output "my_film.mp4"

Features

Screenplay Generation

Video Generation

Film Assembly

Supported Models

Recommended for Film Creation

| Model | Best For | Duration per Scene |

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

| google/veo-3.1-generate-preview | Balanced quality and reliability (Recommended) | 5-6 seconds |

| openai/sora-2 | Cinematic quality with complex scenes | 4-6 seconds |

| openai/sora-2-pro | Professional-grade cinematic output | 4-6 seconds |

| byteplus/seedance-1-0-pro | Flexible aspect ratios | 5-6 seconds |

Usage Examples

Basic Film Creation

# From a simple concept
node scripts/create_film.js "A cat astronaut explores a distant planet"

# With specific genre
node scripts/create_film.js "A noir detective story set in the rain"

# From an uploaded image
node scripts/create_film.js --image "concept_art.jpg" "Make this into an epic adventure"

Advanced Options

# Use premium model for highest quality
node scripts/create_film.js \
  "An emotional reunion at a train station" \
  --model "openai/sora-2-pro" \
  --output "reunion.mp4"

# Create vertical video for mobile
node scripts/create_film.js \
  "A day in the life of a street performer" \
  --aspect-ratio "9:16" \
  --model "byteplus/seedance-1-0-pro"

# Generate only the screenplay
node scripts/generate_screenplay.js "A magical library where books come alive"

Workflow

Step 1: Creative Analysis

The system analyzes your input (text or image) to identify:

Step 2: Screenplay Writing

Generates a professional screenplay including:

Example screenplay output:

FADE IN:

EXT. ABANDONED CITY - DAY

WIDE ESTABLISHING SHOT: A desolate cityscape covered in rust and vines.
The sun casts long shadows through broken buildings.

A small ROBOT (weathered, curious) rolls through debris, its single eye
scanning the ground.

CLOSE-UP: The robot's sensors light up as it detects something.

LOW ANGLE: The robot stops at a crack in the concrete where a single
FLOWER blooms in brilliant red.

EXTREME CLOSE-UP: The robot's optical lens focuses on the flower,
reflecting its petals.

The robot extends a gentle mechanical hand, not to touch, but to protect.

FADE OUT.

Step 3: Scene-by-Scene Generation

Each scene is converted to an optimized video prompt:

Step 4: Video Assembly

All scenes are combined with:

Command Reference

create_film.js (Main Script)

Parameters:

generate_screenplay.js

Generate screenplay without video production:

node scripts/generate_screenplay.js "Your story concept" [--output screenplay.txt]

generate_scene.js

Generate a single scene from a prompt:

node scripts/generate_scene.js "Scene description with camera angles" [--model MODEL] [--duration SECONDS]

assemble_film.js

Combine pre-generated scene videos:

node scripts/assemble_film.js scene1.mp4 scene2.mp4 scene3.mp4 --output final.mp4

Best Practices

Writing Effective Prompts

Good prompts include:

Examples:

✓ "A cyberpunk story about a hacker who discovers they're an AI"
✓ "A heartwarming tale of a child's robot friend, Studio Ghibli style"
✓ "A suspenseful noir detective story in the rain at night"
✓ "An epic space opera battle with massive starships"

✗ "Make a video"  (too vague)
✗ "Something cool"  (no direction)

Model Selection

Image Input Tips

When using an image as input:

Duration Optimization

Troubleshooting

"Generation timeout" or "Scene generation failed"

Video generation can take time. The script automatically waits up to 5 minutes per scene. If it fails:

"FFmpeg error" during assembly

Ensure all scene files were generated successfully:

ls -lh scene_*.mp4

If some scenes are missing or corrupted, regenerate them individually:

node scripts/generate_scene.js "Scene description" --output scene_3.mp4

Poor visual continuity between scenes

The screenplay generator aims for continuity, but AI models may interpret scenes differently. To improve:

"API key not found"

Set the environment variable:

export AI_GATEWAY_API_KEY="your-api-key-here"

Technical Details

Screenplay Format

The generated screenplay follows industry-standard formatting:

Video Specifications

Assembly Process

Uses FFmpeg with:

Examples Gallery

Example 1: Sci-Fi Short

Prompt: "A lonely robot discovers the last flower on Earth"

Generated Screenplay (abbreviated):

Scene 1: Wide shot of desolate cityscape
Scene 2: Robot character introduction
Scene 3: Discovery of flower (key moment)
Scene 4: Emotional close-up of robot's reaction
Scene 5: Robot protecting the flower
Scene 6: Hopeful closing image

Example 2: Fantasy Adventure

Prompt: "A young wizard's first spell goes wonderfully wrong"

Key Scenes:

Example 3: Noir Detective

Prompt: "A 1940s detective receives a mysterious case in the rain"

Style Elements:

Integration with Other Skills

This skill works well with:

Limitations

Future Enhancements

Potential additions:

Credits

Built on top of:

License

MIT License - Free to use and modify

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.