NEO-Cine open-sources a film-style library that lets Claude create short films with code
The author open-sourced NEO-Cine, a film-style library for agents such as Claude Code that can generate a director’s plan from a one-sentence story and use Canvas, WebGL, and code to create visuals, sound, rendering, and mixing.
NEO-Cine integrates film styles, code-based drawing, and audio-video production into a reusable agent plugin and publishes installation instructions and nine example styles.
Use the Folding City style to make a 40-second film about Chengdu: Chunxi Road, Tianfu Square, and Financial City.
That is the entire prompt. The agent understands the style, writes its own directing plan, then writes code line by line and draws the image frame by frame; it also creates the music, sound effects, and narration with code, then mixes, checks, and delivers a finished video with a version number. No video generation, asset library, or editing software.
This is my open-source project NEO-Cine, a film-style library for Claude Code. It currently has 9 styles and 4 series.
The following nine styles and nine demo films were each made entirely with code, and all the source code is in the repository.
I. What is NEO-Cine
Choose a style, add your story, and hand it to the agent as director. It is a plugin for Claude Code; Codex, DeepSeek Harness, and Doubao Work can also install it.
A style is not a parameterized template but a written description explaining what the images look like, how things move, and what the sound is like, together with a demo film. You decide the story, and the agent directs a new version for your subject according to the style’s rules.
The visuals use Canvas and WebGL (three.js) in a web page. Every frame is a function of time, rendered frame by frame with a headless browser and then encoded by ffmpeg. Therefore any frame can be rerendered individually or out of order, or assigned to another computer with a GPU.
The music is written using a free real-instrument sample library or synthesized directly with code. Sound effects are also synthesized with code and attached to visual events; every cue must align, and the build stops if it is off by more than half a frame. If narration is needed, Chinese uses edge-tts and English uses Kokoro, followed by speech recognition to verify that it was spoken correctly.
City styles use real data: coastlines, roads, metro networks, building footprints, and heights from OpenStreetMap, OpenHistoricalMap, and Overture Maps, not invented.
II. Installation
You need: Node 20+, ffmpeg 7+, Python 3.11+ (or uv). macOS and Windows (Git Bash) are supported; on Linux, 3D styles require a working graphics-card driver.
Claude Code (recommended)
Run these two commands in the terminal:
claude plugin marketplace add neohoy/neo-cine claude plugin install neo-cine@neo
After that, it can be used from any directory.
Other agents (Codex, DeepSeek Harness, Doubao Work, etc.)
Send this sentence to your agent:
Help me install this skill:https://github.com/neohoy/neo-cine/tree/main/plugin/skills/neo-cine
Restart the agent after installation. In Codex, enter $neo-cine to start. When Doubao Work makes a film, choose the local computer as the runtime: the cloud computer’s sandbox is destroyed after being idle, and installed packages will be lost.
Making a film for the first time
The first time you use it, the skill downloads the guide, tools, and style descriptions to ~/neo-cine; all films share this copy. Dependencies are installed in layers as needed: the core layer (rendering, sound synthesis, and mixing) is about 350 MB; voice-over adds about 0.55 GB; for music, only the instrument sample library used is downloaded, at 70–400 MB each. Already installed items are not downloaded again.
Each film’s project, from source code to finished video, is placed in the folder where you were when you initiated it.
III. 9 styles, 9 demo films
Styles can be specified by either their Chinese or English names.
City skylines: draw real cities
01 · Folding City “Folding Shenzhen” The city is like a flat poster that opens into streets, while buildings fold like doors and screens. Film (40 seconds): three Shenzhen districts unfold, fold up, and stand as walls one by one; finally the entire city folds into a U.
02 · Copperplate Atlas Scroll “Thirteen to Fifty” A hand-colored atlas plate, with territories colored piece by piece as the years advance. Film (56 seconds): U.S. states are colored in year by year; a covered wagon leads the way to the Pacific, and the railroad catches up with it in 1869.
03 · Scroll Map “Pengcheng Scroll” A handscroll in blue-green landscape style that unfolds along a real coastline. Film (48 seconds): ink lines outline Shenzhen’s coast, blue-green mountains rise, vermilion roads burn out from Luohu, and Futian’s high-rises grow into layer upon layer of pavilions.
04 · Transit Map “River and Ring” A printed eight-direction subway map, with lines dragged out one by one and trains continuously running on opened lines. Film (54 seconds): Guangzhou Metro begins with five stations beneath the river in 1997, until Line 11 closes the ring; the counter lands at 19 lines and 779.9 kilometers.
05 · Miniature “How a High-Speed Rail Station Works” Cut open a building and place it on a thin base, then follow a little person step by step to explain it. Film (69 seconds): the roof is lifted away, and a traveler pulling a suitcase completes entry, security, waiting, ticket inspection, and boarding in seven steps; after the explanation, the roof closes and the lights come on in the dark.
Freeze-Frame Drawing: Hand-Drawn Frame by Frame
06 · Scrapbook Song 《Wind Blows Through New Bamboo》 Thick ink lines, flat fills, two frames per beat; the lyrics are pasted onto the image like paper labels, ribbons, and stamps. Film (48 seconds): My own song, “Wind Blows Through New Bamboo.” Two friends in two cities; a gust of wind passes through the chorus, and finally the character “home” crashes down inside a lit window.
Product Launch: Make a Promotional Film with the Real Product Interface
07 · Tech Launch 《On the Record》 Give it a URL, and it freezes the real webpage directly into the film; real components float up, zoom in, and receive annotations. Film (35 seconds): A launch card made for my own website-building observatory. Company cards merge into a company directory, a revenue figure counts up from 0, and finally the window folds into the brand’s blue square.
09 · Game Launch 《A Merchant’s Run》 Use the game’s own gameplay footage, art, and original audio to make the promotional film; subtitle cards use the game UI’s own materials. Film (41 seconds): A demo trailer for the indie RPG 《Return Route: New Journey》, authorized by the developer. The camera zooms toward the exchange in time with the original audio; the money counter jumps from 4351 to 14775, a companion wipes in on the beat, and the logo lands.
A World in a Tiny Space: Filming Tiny Worlds Inside Glass
08 · Isle Film 《Snow Falls on Cold Mountain》 A very slow telephoto lens passes through the glass, while the hours of the day go by, waiting for that strange event to appear. Film (36 seconds): A scene created by NEO-Isle: a yak crosses the snowy plain, the stone house’s window lights up at dusk, glowing fish swim out from beneath the ice, and the music comes in at that moment.
IV. Production Process: From One Sentence to One Film
Before starting, it asks you only once: what the prompt cannot determine; whether you have your own voice-over, music, or other materials; and whether you want to see a storyboard first. After that, it goes all the way to the finished film.
First, it writes the director’s plan. The story, rhythm, shots, and sound are written in TREATMENT.md. Before it is finished, it does not look at the reference film, to avoid copying it.
Then it sets the visual style. It renders style frames with actual drawing code and checks them against the style description.
Storyboards are made only when you request them. If you want them, it pauses once and shows you key shots drawn in the actual style.
Production. Voice-over, checking, music, animation, mixing, and rendering.
Self-check, then delivery. It samples one frame every second or two and assembles a contact sheet, reviewing it at least twice; it watches key actions at one frame per 0.2 seconds; every piece of text on screen must remain long enough to read (4.5 Chinese characters per second, plus 1.5 seconds); the deviation between every beat and the image must be within half a frame; loudness is normalized to −14 LUFS; if there is narration, it listens through the finished film once more using speech recognition.
Every delivery includes a version number (-v001, -v002, …): the finished film, cover, and director’s plan, without overwriting older versions.
Several styles come with built-in toolkits and production manuals (Scrapbook Ballad, Tech Launch, Pocket Images, Game Launch). They pause midway for you to confirm: review and listen to the story and shot list, sample video, and finished video in full.
The finished film defaults to 1920×1080 at 24 frames per second. Other dimensions, such as vertical video, can be requested.
V. Make It Your Own Style
Adapt a style in the library so it belongs only to you (your color palette, logo, fonts, characters), or start from scratch with one that is not in the library:
I want to turn Folded City into my own version.
Starting from scratch: a blackboard-chalk style, warmer and slower.
It asks one question at a time and settles on the changes with you, first produces one style frame, then makes a 15-to-30-second sample film; it keeps it only if you say to keep it. Your own styles are stored in ~/neo-my-styles/ and can be reused for future films; library updates and uninstalling the library will not affect them.
VI. License
MIT. The films you make with this library belong to you.
A few things to note:
Attribution for real map data (such as OpenStreetMap) is included in the CREDITS of every sample film. Remember to include it when you use them to make films.
The real cities and subways in the sample films are unofficial fan works. The game assets in the Game Launch sample were authorized by the developer and are used only for that sample film; they are not covered by the library’s license.
The Chinese narration uses Microsoft Edge online speech. The narration text is sent to Microsoft’s speech service; it can be replaced with another one.
Finally
Repository:https://github.com/neohoy/neo-cine Gallery (every style and its sample film can be downloaded in 1080p):https://neohoy.github.io/neo-cine/
The styles were made with Claude and tuned with Claude. Other agents can install and use them, but identical results are not guaranteed. Making one film is real work for an agent: it takes a while to run and uses quite a lot of tokens.
NEO-Cine’s framework references @lemomo_ai’s Lemo-Opuscar (MIT). I made the styles myself one by one; thanks to Lemomo. If you want more styles, Lemo-Opuscar has 99, and they are all worth a look.
If you want to build your own tiny world inside glass, take a look at my other project, NEO-Isle:https://github.com/neohoy/neo-isle , then use Fangcun Yingxiang to turn what you built into a film.
More styles will continue to be added one by one. If you encounter any problems while using it, feel free to open an Issue. If you make your own film with it, feel free to post it and tag me (@neohoy77); I’d really like to see it. If you find it useful, giving the repository a star is the greatest encouragement.
Source: NEO 牛师傅 · x.com