Code Film Skill · Content Media

Code Film: Short Films Made Entirely in Code

An alternative inspired by Lemo-Opuscar: your agent directs a 10 to 30 second film in HTML, SVG or canvas code and renders it to MP4, no video model needed.

Updated November 2026.

  • Motion graphics
  • HTML to MP4
  • Shot list
  • Offline playback
  • No video AI

About This Skill

Code Film has your agent direct a 10 to 30 second film drawn entirely in HTML/CSS/JS, SVG or canvas code, from an approved treatment and shot list to an MP4 rendered with Playwright and ffmpeg, or a playable offline HTML film when those tools are missing. Unlike Lemo-Opuscar's style library, it is a self-contained skill with six original style recipes, no setup script and no auto-install. Inspired by Lemo-Opuscar by LemoLab (MIT). Not affiliated.

New to the original tool? Read our Lemo-Opuscar guide: what it does, how to install it and how this skill differs.

Quick Start

  1. 1Download the skill (1 credit) and unzip the code-film folder.
  2. 2Copy the folder into your skills directory: Antigravity ~/.gemini/config/skills/ (or .agents/skills/ in a project), Claude Code ~/.claude/skills/, Codex ~/.agents/skills/.
  3. 3Ask for a short film and answer the brief: subject, length (10 to 30 s), format, style and exact on-screen text.
  4. 4Approve the treatment and shot list; the agent builds film/, previews it, then renders film/out/<name>.mp4 if Playwright and ffmpeg are installed.
Example Command
Make a 20 second promo video about our CLI launch

Core Capabilities

Treatment and shot list

Writes the idea, arc and a timed shot table with verbatim on-screen text, then stops for your approval.

Six style recipes

Offers original palette, type and motion recipes, or follows your own look and brand colours.

Deterministic clock

Every visual is a pure function of time, so seeking to the same moment always gives the same frame.

MP4 rendering

Captures frames headlessly with Playwright and encodes H.264 with ffmpeg, then spot-checks the result.

Offline fallback

Without Playwright or ffmpeg, delivers a playable HTML film plus notes on how to render the MP4 later.

No downloads or scraping

No runtime network requests, no auto-installs, and no AI video, stock footage or scraped media.

Usage Examples

Input

Make a 15 second vertical teaser for our habit-tracking app, you decide the style.

Output

A brief with stated defaults, a treatment and shot list for approval, then a film/ folder with one scene file per shot and either an MP4 or an offline HTML film.

Input

Create a title sequence for my conference talk. ffmpeg is not installed.

Output

The agent flags the missing tool in the treatment message, offers the install command for you to run, and otherwise delivers a playable HTML film with render steps in NOTES.md.

SKILL.md

---
name: code-film
description: Direct and build a 10–30 second short film entirely in code (HTML/CSS/JS, SVG or canvas scenes rendered frame by frame), with no video-generation model and no stock footage. Use when the user asks for a short animated film, promo, teaser, title sequence, explainer clip or "make a video about X" and is fine with a motion-graphics look; it plans a treatment and shot list for approval, builds the scenes, then renders an MP4 with Playwright and ffmpeg, or hands over a playable HTML film when those tools are missing.
---

# Code Film

Make a short film the way a motion designer would, except every frame is drawn by code the agent writes. The film is a folder of plain web files that can be played in a browser, and, when the tools are present, rendered to an MP4.

The work has five phases. Phase 2 ends with a hard stop for approval. Do not skip it.

1. Brief — understand the film.
2. Treatment and shot list — write it, then **stop and wait for approval**.
3. Build — one scene file per shot, a shared clock, one player page.
4. Preview and check — play it, fix it.
5. Render and deliver — frames to MP4, or the HTML fallback.

Reference files, read when the phase needs them:

- `references/styles.md` — six original style recipes (palette, type, motion rules). Read in Phase 2.
- `references/render.md` — deterministic clock, frame capture and ffmpeg commands. Read in Phases 3 and 5.

## Phase 0: Check prerequisites (quietly, once)

Check what is installed before promising an MP4. Do not install anything system-wide.

| Tool | Needed for | Check | If missing |
|---|---|---|---|
| A web browser | previewing | always assumed | — |
| Node.js 18+ | running the frame-capture script | `node --version` | HTML-only delivery |
| Playwright (with a Chromium browser) | headless frame capture | local, global npm or Python install; probe commands in `references/render.md` §4 | HTML-only delivery, or ask the user to install it |
| ffmpeg | joining frames into M

Frequently Asked Questions

FAQ

How is this different from Lemo-Opuscar?
Code Film takes only the general idea of an agent planning a film, building each shot in code and rendering it with a headless browser and ffmpeg. It is self-contained with no setup script or library cloning, limited to 10 to 30 second films with an approval stop, and its style recipes and wording are original.
Is this the official Lemo-Opuscar?
No. Code Film is an alternative inspired by Lemo-Opuscar, not affiliated with or endorsed by LemoLab. The official project is at https://github.com/lemomo-ai/lemo-opuscar.
What do I need installed?
A browser for previewing. For MP4 output you also need Node.js 18+, Playwright with Chromium, and ffmpeg. The skill checks without downloading anything and asks you to install what is missing.
Does it add music or voice?
The film is silent by default. If you supply a music or voice file you own, it can be laid under the picture; the skill does not generate or fetch audio.
What does a download cost?
Each skill download costs 1 credit. New accounts start with 3 free credits.

Discussion

Discussion

0 comments
U

Trigger Phrases

Use these phrases to activate this skill in your AI coding assistant:

make a video about thismake a short animated promocreate a title sequencebuild an explainer clip in codemake a teaser video for our launchrender this animation to MP4