name: chess-reel description: Make a vertical 3D chess video (opening trap, queen sacrifice, checkmate, tactic) with this repo: script, voice, music, render, checks, post captions. Use for any request to make, change or review a chess reel, short or TikTok here.
Making a chess reel
One video is openings/<id>.json (script) and openings/<id>.captions.txt (post captions). The scripts do the rest.
openings/queen-blunder.json is a complete, checked example: copy its shape.
Steps
- Pick the line. A short forced finish (7 to 12 moves) with one shocking moment beats a deep theory line.
npm run line -- "e4 c6 d4 …"proves every move is legal and shows Stockfish's view. Read it: know which move is the mistake, which replies are forced (legal=1), and what happens on every other reply. If the game is famous, confirm the players and year from two sources before saying them. - Write the script. references/script.md (format and writing rules) and references/style.md (what makes these work). Say every line aloud in your head: one idea each.
- Write the post captions. references/posting.md.
- Check for free.
npm run check -- <id>must printREADY: no key, no internet, no credits. It catches illegal moves, words that don't match, wrong escape squares and wrong moves in the captions. Only then make the voice. - Draft.
npm run draft -- <id>makes the voice (costs credits once) and a quick video. Thennpm run stills -- <id> 0.5 2 12 …at the key moments; open the sheet once. What to look for: references/checks.md. Voice notes: references/voice.md. - Render.
npm run video -- <id>(10 to 20 minutes). It stops if a check fails. The result is invideos/. - Hand over. Show the video, give ready-to-paste captions, say what was checked and what wasn't (you can't hear music: ask the owner to listen once). Don't post it.
Running it from Codex, or with little usage left
Rendering costs no agent usage at all, so spend yours on the writing:
- Read this file, references/script.md and
openings/queen-blunder.json. Nothing else is needed for a normal video. - Do steps 1 to 4 yourself. They work inside Codex's sandbox.
- Steps 5 and 6 need the internet and a browser, which the sandbox blocks. Give the owner one line to paste into their
own terminal:
npm run draft -- <id>, and once they like itnpm run video -- <id>. Ask them to paste back only the last line or aFAILline. - Don't run, watch or poll a render, don't print whole files, and look at one contact sheet, not single frames.
When changing things
- Brand (name, colours, logo, tagline):
brand.jsononly. - Look, camera, lighting, arrows: references/look.md before touching
src/ChessScene.ts. - Music: references/music.md.
- Something looks wrong: references/lessons.md first; it's probably there.
Limits today
Games start from the normal starting position (no FEN), the camera is on White's side, no promotions, one music piece.
Say so instead of faking it, or add the feature properly with its own check in verify.mjs.