procedural-film README

项目的 README,来自 github.com/kuhnhomeuk-cell/procedural-film。合并为一个 markdown 文件:README.md。

procedural-film

Six frames from the butterfly-life film, alternating hand-inked paper shots and navy blueprint shots

An agent skill that turns a topic into a short film or a small game. It makes drawn and photo-doodle vertical films, retro pixel-art films at 60 fps, and a playable NES-style platformer. The platformer starts from a starter game called ROBOT RUN and deploys to your own Vercel account. Every pixel is drawn in vanilla JavaScript on a canvas and every sound is synthesised in Web Audio, so the film ships with zero media assets. The output is one self-contained HTML player plus MP4 exports.

The reference film is examples/butterfly-life, the life cycle of a monarch butterfly: 17 shots, 32 seconds, 120 bpm, 1080x1920 at 24 fps.

What is in the repo

Path Contents
skills/procedural-film/ The skill. SKILL.md is the pipeline, foundation/ is the engine and tools copied into each new film, retro/ adds the pixel-art engine and sound chip, game/ holds the ROBOT RUN starter, templates/ holds the four planning documents, reference/ holds the shot-type index, scene and music guides, and frames from the example as the visual target.
examples/butterfly-life/ The butterfly film as the skill produces it: planning docs, source, tools, the HTML player and the phone MP4.

Claude Quest: a game on the same engine

Three more examples push the engine from vertical films into a 320x180 NES-style platformer starring Claw'd. Play the game at https://claude-quest-nu.vercel.app with a keyboard, a gamepad or the on-screen pad.

Path Contents
examples/claude-quest/ The first pixel-art film: 17 hand-animated shots, 40 seconds, 60 fps.
examples/claude-quest-v2/ The film rebuilt as one continuous run of a real game engine, played from a recorded controller tape, on a simulated CRT with an emulated NES sound chip. The 720p cut is in exports/.
examples/claude-quest-game/ The playable game with four levels and a boss fight. Its bots replay a controller tape through every level to prove each one can be finished, and its gates run before every deploy.

These three are the worked examples the retro mode was built from. Ask for a retro film or a game and the skill starts from its own retro engine and the ROBOT RUN starter, not from these folders.

Claude Quest is an unofficial fan project, not affiliated with or endorsed by Anthropic. The art, music and levels are original; the look borrows the grammar of 1985 platformers.

Requirements

Install the skill

Clone the repo, then link the skill into your agent's skills folder. A link keeps the worked example reachable at examples/butterfly-life/ beside the skill.

git clone https://github.com/kuhnhomeuk-cell/procedural-film.git
ln -s "$PWD/procedural-film/skills/procedural-film" ~/.claude/skills/procedural-film

For another agent, link it into that agent's skills folder.

Make a film

Ask your agent for a procedural film about a subject, for example "make a procedural film about the life of a honeybee". skills/procedural-film/SKILL.md holds the full pipeline. Expect a long run: one agent per shot writes a scene file of 1000+ lines, then critic waves review every shot, so a film spends a large share of a usage plan.

Rebuild the butterfly film

npm install --prefix examples/butterfly-life/tools
node examples/butterfly-life/tools/check.cjs
node examples/butterfly-life/tools/render.cjs

check.cjs runs the six-check gate and exits 0 when green. render.cjs writes examples/butterfly-life/exports/butterfly-life.mp4. node examples/butterfly-life/tools/build.cjs rebuilds the HTML player.

Credit

The look and editing are modelled on Kevin Ngo's "The life of a fruit fly". examples/butterfly-life/docs/reference-analysis.md records what was taken from it.

License

MIT. See LICENSE.

procedural-film (kuhnhomeuk-cell/procedural-film)

正在搜索数据库…

这是什么?这是一个智能体技能,把一个主题变成 30 秒的竖屏影片:每个像素都用原生 JavaScript 在画布上绘制,每个声音都用 Web Audio 合成,因此不使用任何现成素材或音频文件。它输出一个自包含的 HTML 播放器以及 MP4 导出文件。
这是独立应用,还是我要接入智能体的东西?它是一个技能(SKILL.md 流水线加一个引擎),用于链接到 AI 智能体的 skills 文件夹;智能体随后通过分派并行子智能体来驱动整个生成过程。
怎么安装和使用它?克隆仓库并把技能文件夹链接到你智能体的技能目录,然后直接让智能体就某个主题制作一部影片,例如“制作一部关于蜜蜂一生的程序化影片”。
运行它需要安装什么?需要 Node.js 20+、PATH 中的 ffmpeg、通过 Playwright 安装的 Chromium,以及一个能够运行技能并分派并行子智能体的智能体,例如 Claude Code。
生成一部影片需要多长时间?要有跑很久的心理准备:一个智能体为每个镜头编写 1000 多行的场景文件,随后多波评审会审查每个镜头,因此一部影片可能消耗掉智能体用量额度的很大一部分。
它只能配合 Claude Code 使用吗?Claude Code 是示例智能体,但 README 表示,只要智能体能够运行技能并分派并行子智能体,你就可以把该技能链接到任何智能体的 skills 文件夹。
仓库里附带的参考影片是什么?一个关于帝王蝶生命周期的成品示例(examples/butterfly-life):17 个镜头、32 秒、120 bpm,以 1080x1920 和 24 fps 渲染,同时提供交互式 HTML 播放器和手机竖版 MP4。
怎么重新生成示例影片?运行 check.cjs 通过六项检查关卡,运行 render.cjs 生成蝴蝶 MP4,再运行 node examples/butterfly-life/tools/build.cjs 重新生成 HTML 播放器。
视觉风格的灵感来自哪里?画面和剪辑仿照 Kevin Ngo 的《The life of a fruit fly》,具体的影响记录在 examples/butterfly-life/docs/reference-analysis.md 中。
技能包里实际包含什么?skills/procedural-film/ 内含 SKILL.md(即流水线)、会复制到每部新影片中的基础引擎和工具、规划文档模板,以及一个包含镜头类型、场景和音乐指南及目标画面的参考文件夹。
大小
24.1 MB
星标
546
时长
2个月
提交 · 90 天