agentleFS
SuntorlinSuntorlin/mate-agent/skills/builtin/long-scroll-film/SKILL.md

long-scroll-film

Skill0 starsChanged 39 days agoMITView on GitHub

Talk to the user in the language of their latest message. The voice sets the clock. Each world's stop lasts exactly as long as its lines; walking is only the cut between beats. The engine reads every line's length from audio/voice/<id>.mp3, so lock the lines first and re-render after any voice change - never hand-tune animation timing to a guessed length. Code is free; voices are cheap. A whole 53 s film used no image or video generation. Generate media…

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep each icon's signature colour even inside a restricted palette (a yellow mascot in a green Game Boy world).

    line 77
  2. Distinctive:

    Before voices exist you may time the cut with a free placeholder.

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

long-scroll-film

LSF="${CLAUDE_CONFIG_DIR:-$HOME/.openinspect/claude}/skills/long-scroll-film"
bash "$LSF/scripts/new_film.sh" /workspace/project-<slug>      # scaffold (engine, example worlds, score)
node "$LSF/scripts/render.mjs" /workspace/project-<slug> --stills 2,6,12
node "$LSF/scripts/render.mjs" /workspace/project-<slug> --video out/film.mp4
python3 "$LSF/scripts/mix.py" /workspace/project-<slug>        # → out/mix.wav (−14 LUFS)

Talk to the user in the language of their latest message.

The law

The voice sets the clock. Each world's stop lasts exactly as long as its lines; walking is only the cut between beats. The engine reads every line's length from audio/voice/<id>.mp3, so lock the lines first and re-render after any voice change - never hand-tune animation timing to a guessed length.

Code is free; voices are cheap. A whole 53 s film used no image or video generation. Generate media only for what code cannot draw (photoreal people), with the product's generation tools.

What makes it land

The payoff is a voice. Each world borrows a period voice (an arcade announcer, an RPG king, a professor, a mascot cry) and the last world gives the hero a voice of their own. Silence is a beat too: a hero who only ever answers 「はい」 or 「……」 makes the first spoken line land.

Stages

#stageoutputgate
1Script in textworlds (5–8), one beat + one line each, voice per roleuser confirms (expect several rounds)
2One frame firstthe most recognisable stop, hero in 3 directions, media-preview eachuser picks
3Worldsfilm/worlds.js, stills of every stopself-check (contact sheet)
4Voicesaudition the hero (2 voices), then every line; transcribe each clip-
5Render + mixout/film.mp4 + out/mix.wav → muxed finaldeliver with media-preview

1. Script

  • One world = enter → one line → one action → leave. A second line only for the punchline.
  • Escalate: worlds get shorter and faster toward the climax (raise v per world, e.g. 950 → 1450 px/s), then the last world slows hard (v 700, 0.6 s before and 1.0 s between its lines). The same walk-stop-talk rhythm repeated reads as a slideshow.
  • Pick worlds recognisable from one frame. If the user says "not typical enough", go more canonical.
  • Public or client work: genre conventions only (a dialogue box, a pixel cave, a battle menu) - no real characters, logos or melodies. Real IP only for the user's internal use, on their explicit word.
  • In film/lines.js keep spoken text (ja/…), caption (zh/…) and dialogue-box text (box) separate: 「……」, quotes and ellipses are silent in TTS and can swallow a neighbouring word.

2. One frame first

Render one stop with the hero three ways - the canonical look, one original hero who persists across worlds, a brand mascot - with --stills, and show full frames plus a 2× nearest-neighbour crop (ffmpeg -vf "crop=…,scale=iw*2:ih*2:flags=neighbor"); pixel art is unreadable as a thumbnail.

3. Worlds (film/worlds.js; interface in references/engine.md)

  • Pixel worlds: draw on 240×135, the engine scales ×8; dialogue on a 480×270 pixel layer (FILM.ptext, FILM.typed). Flat-vector / low-poly worlds draw full-res in draw(c, s).
  • Time every event from FILM.cue('<id>').T, never from "seconds after entering".
  • Frame each stop so the next world stays out of shot while anyone talks: w ≥ max(camAt, stop − 720) + 1980 (the camera never moves back).
  • Keep each icon's signature colour even inside a restricted palette (a yellow mascot in a green Game Boy world); without it the sprite is not recognised.
  • Contact-sheet every stop: --stills at each cue + ffmpeg -pattern_type glob -i 'out/stills/t*.png' -vf "scale=640:-1,tile=3x3" sheet.png, then look at it.

4. Voices (with the product's voice tools)

  • Cast with the product's voice search (by language, popularity or an attitude word); skip voices named after real people, idols, voice actors or anime/game characters.
  • Audition the hero on the two key lines with two voices; prefer the one whose pause lands the joke.
  • One text-to-speech call per line, one at a time or at most 4 in flight; save each result to audio/voice/<line id>.mp3, following the tool's own cost and approval rules.
  • Trim edge silence (TTS adds 0.3–1 s): ffmpeg -i in.mp3 -af "silenceremove=start_periods=1:start_threshold=-45dB,areverse,silenceremove=start_periods=1:start_threshold=-45dB,areverse" out.mp3.
  • Transcribe every clip (media-edit transcribe) and compare with the line before rendering. In the first run 5 of 9 clips said the wrong line (parallel calls shared one request file); only the transcripts caught it.
  • Before voices exist you may time the cut with a free placeholder; say plainly it is a placeholder.

5. Render, mix, deliver

audio/score.json: one loop per world (original melodies), signature jingles on cues, typing blips per dialogue line; mix.py ducks music under voices and normalises to −14 LUFS. Then ffmpeg -i out/film.mp4 -i out/mix.wav -c:v copy -c:a aac -b:a 192k -shortest out/final.mp4, check loudness (ebur128), and media-preview out/final.mp4 "<title>". 1920×1080 at 30 fps renders at roughly 8–10 frames/s.

Gotchas (measured, 2026-10-07)

symptomcausefix
several clips say the same lineparallel TTS sharing one request filesequential / unique files; transcribe each clip
rate_limited from TTS~9 requests at once≤ 4 in flight, retry failures
「はい」と「……」 spoken as 「はい、しか」ellipsis silent, particle swallowedseparate spoken text and caption
next world visible during dialoguecamera never goes backwiden the world (rule above)
dialogue box stays while walking awayUI drawn after the cueengine draws ui/over only during the stop
a beat's prop never appearsbeat without durevery beat in script needs dur
a mascot reads as a goblin4-shade palette, side viewfront view, keep its signature colour
▶ cursor missingpixel font lacks the glyphdraw the triangle
user assumed the placeholder voice was realnot namedname it on first delivery

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.