/video-to-game:video-to-gamefrom Video to Game
Turns a gameplay video into a playable WebGL game in Three.js with assets generated via fal. Ships scripts for video analysis, asset generation, playtest recording, and side-by-side comparison.
Ships in Video to Game. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The video is the game design document, and you cannot watch it. A video model is good at what you are bad at: the look of a game, its camera, its one memorable mechanic. Your job is to reverse-engineer that clip into a game someone can play, with assets generated to match it, and to prove it with pictures, not adjectives.
prompts/gameplay-video-prompts.md (repo root) has the recipe and 31 prompts that worked.python3 scripts/study_video.py gameplay.mp4 -o study/ saves a frame every 0.25 s, a contact sheet,
the palette and the cuts. Open the sheet, then the frames. Write the spec before any code:
camera (distance, height, lens), hero, the one core mechanic, world layout, palette, light, materials, mood,
and the key moment the video sells. See references/study-the-video.md.python3 scripts/fal_asset.py <endpoint> --arg k=v --file k=path -o assets/ runs a model and logs it.
Nothing drawn by hand, nothing downloaded elsewhere. See references/fal-assets.md.templates/game.html: Three.js only, one import map, a real loop (controls, goal,
progression, feedback, end, restart), keyboard and gamepad, ?autostart and ?seed=N, window.__game state.
See references/game-loop.md.python3 scripts/side_by_side.py gameplay.mp4 shot.png -o pairs/ --times 2,5,8.
See references/look-and-post.md.play.mjs from templates/play.mjs: keyboard only, reading window.__game.
node scripts/record_play.mjs "http://127.0.0.1:8000/?autostart" play.mjs -o take.mp4 films it at its real
frame rate; python3 scripts/best_window.py take.mp4 --length 10 finds the liveliest stretch; look at those
frames. Fix what a player would hit: falls, walls, dead seconds, unreadable moments. See references/playtest.md.index.html + assets/ + README.md (concept, controls, every fal asset with its endpoint),
the side-by-side pairs, the best take, and an honest list of what differs from the video.Scripts need Python 3.9+, ffmpeg, Node 18+ with playwright-core for the recorder, and pip install fal-client
with FAL_KEY set for fal_asset.py. Run them from this skill's directory or with full paths.
| File | Read when |
|---|---|
references/study-the-video.md | starting: frames, palette, camera, mechanic, the spec to write |
references/fal-assets.md | generating assets: which model for what, the character pipeline, prompts that work, costs |
references/game-loop.md | building: structure, input, camera, state contract, multiplayer, performance |
references/look-and-post.md | matching the video's look: grade, fog, bloom, density, hierarchy, the side-by-side routine |
references/playtest.md | playing your own game: scenarios, recording, best window, what to fix |
Templates: templates/game.html (Three.js skeleton with the post stack, input, state contract),
templates/play.mjs (a keyboard playtest scenario).
references/fal-assets.md (opens in a new tab)references/game-loop.md (opens in a new tab)references/look-and-post.md (opens in a new tab)references/playtest.md (opens in a new tab)references/study-the-video.md (opens in a new tab)scripts/best_window.py (opens in a new tab)scripts/fal_asset.py (opens in a new tab)scripts/record_play.mjs (opens in a new tab)scripts/side_by_side.py (opens in a new tab)scripts/study_video.py (opens in a new tab)templates/game.html (opens in a new tab)templates/play.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threejs, webgl, game-development, video-to-game, fal, generative-assets
2 plugins ship this exact skill · first indexed Oct 29, 2026
npx claudepluginhub peterondesign/cozy-matcha-cafe-sim --plugin video-to-gameOther plugins' skills for the same job