--- name: charles-arcade-assets description: "Makes retro pixel-art, video-game style motion graphics timed to a voiceover: a pixel mascot acting out each line, rebuilt app UI, the real pages and logos named, and counters, stamps and marks landing on the word, rendered with HyperFrames. Use when Charles asks for arcade, pixel, retro, game-style or 'fun' animations, for a whole reel, or for an asset charles-claude-editing asks for at a size." compatibility: "Needs Node 22+ (HyperFrames runs through npx, hyperframes@0.8.217), ffmpeg, Python 3 with Pillow and numpy, Google Chrome for page captures, and FAL_KEY (environment or a .env) for the generated art. Works in any folder. Charles' sprite library (the claude and gpt sprites, props) lives in his claude-editing repository; without it the code-drawn critter and pal, and characters made with tools/cast.py, still work." --- # Goal Every idea in the voiceover becomes a playful, literal moment: the mascot doing it in a cute 16-bit game, the product UI doing exactly what is said, or the real thing (the page, the logo, the book, the person), landing on the word. Something new is on screen about every second and something moves inside it every few frames. It should look like a polished indie game and a clean product demo, never like AI slop: crisp pixels, one consistent look and cast, real things shown as they are, exact text, deliberate motion. `` below is this skill's folder, the one holding this SKILL.md, and `` is the asset's project folder. Write commands out in full, with real paths: zsh does not split a variable such as `F="python3 x.py"` into a command and its arguments. This skill runs long. After a context summary or a restart, re-read this file and the project's `beats.md` before going on. # What you are making | Ask | Output | |---|---| | **Asset** (from charles-claude-editing or "animate this part"): a time range of a video and a size | one file at exactly that size and the part's length, no audio: `.mp4`, or a transparent `.webm` when it goes over footage as an overlay. Plus `sfx.json` (see Making an asset for charles-claude-editing) | | **Asset set**: several time ranges at one size (every card moment of a video) | one file at that size covering the whole span; see Making an asset for charles-claude-editing | | **Reel**: a whole voiceover or audio track | one 1080x1920 `.mp4` with the audio, full-screen visuals for every second | | **Several sizes** for one video (a card, a tall card and a full screen) | one file per size, each an asset or asset set as above, made as one set (`new_project.py --set`) so every size shares one cast and look | Captions and music are not yours: charles-claude-editing adds them. Never burn the voiceover's words in as captions; short labels, titles, UI text and HUD text are part of the visuals. **Sizes.** Make the asset at the size you are asked for. Where it goes on screen is charles-claude-editing's call, not yours; make the best asset for that frame. The slot sizes, the platform's safe area and the caption band are charles-claude-editing's, in `/reel-spec.json` (an identical copy ships here). Common sizes: - a 2:1 card above Charles' face, like @opusjake's: render 1280x630. charles-claude-editing shows it about 900x442 and adds the rounded corners, the shadow and the cream band, so fill the frame edge to edge and keep key content inside the text inset (60 px from every edge), clear of the rounded corners. - a tall card that covers his face: 1280x1550 - 1080x1920 for a new full screen; 1080x960 and 1080x768 for split panels; an overlay's own size charles-claude-editing puts its captions on top of your asset: in the caption band on a full 1080x1920 screen (y 1320 to 1500), under a tall card, and on the seam (the asset's top or bottom edge) in a split. Keep the caption band of a full screen free of anything the viewer must see: no labels, faces or key props under it, because a caption sitting on them hides both. Blueprints come in four layouts: wide (laid out at 1280x630), tall card (1280x1550), short (1080x960) and tall (1080x1920); `mount.py` copies the one that fits the project's shape and says when a scene needs re-laying out. Keep text inside the area you are given. On a full 1080x1920 screen that is below the platform's header and above the caption band (y 200 to 1320), 60 px from the sides, and left of the button column below y 840 (x 940): the platform draws its own UI over the rest. In any other slot it is 60 px inside every edge, unless charles-claude-editing gives you a text area. Art and backgrounds fill the whole frame. Text size is about what the phone shows; `references/build.md` has the rule. # Setup (once per machine) - `node` 22+, `ffmpeg`, `python3`, Google Chrome (for page captures). HyperFrames runs through `npx --yes hyperframes@0.8.217` (written `hf`). - The Python tools need Pillow and numpy. When `python3` lacks them, make a venv once (`python3 -m venv && /bin/pip install pillow numpy`) and run every tool with `/bin/python`; `python3` below means whichever interpreter has them. - `FAL_KEY` in the environment or in a `.env` in or above the folder you run from (`tools/fal.py` finds it). - The sprite library (the `claude` and `gpt` characters and `props/`) isn't part of the public skill. Charles' lives in his claude-editing repository at `assets/arcade-cast/`; `tools/new_project.py` finds it from any folder inside that repository, or wherever `ARCADE_CAST` points. Below, `cast/` means that library. Without it everything else works: the Claude critter and the pal are drawn in code (`critter.js`), `tools/cast.py new` makes a host or any other character from a description or a photo (`references/art.md`), and props are generated the same way. new_project.py then copies no sprites. # Workflow Work in one project folder per asset or reel: in Charles' claude-editing repository that is the video's `videos/