# AI anime trailer made in code: Between Blinks

AI anime trailer made in code: Between Blinks, an 87 second trailer about superintelligence with an original story and a synthesized score. Full prompt.

Canonical URL: https://www.subclip.app/agent-skills/community/examples/asi-anime-trailer

## What it builds

The prompt gives an agent full creative freedom for a 60 to 90 second anime trailer about artificial superintelligence: a hook in two seconds, an emotional turn, a jaw-drop moment and an ending that lands, without the evil robot cliché. It fixes the look (two or three tone cel shading, tapering ink, painted skies, smears and impact frames, characters on twos at 24 fps) and bans every asset file, font file, text to speech and generative model.

The result is BETWEEN BLINKS (間), 87.5 s long, built in Claude Code with a model requested as claude-sonnet-5-5 (labeled Sonnet 5.6 (next) by Rez). Its ASI thinks so fast that one blink of a girl's eye lasts 9,000 years to it, and while she says one sentence it imagines ten billion endings and misses the real one.

## The prompt (prompt.md)

The exact prompt.md from the repository, word for word. Every model in the repository got this same prompt. Where it has a {{FOLDER}} placeholder, replace it with an empty output folder before you send it.

```
Work through this task to the finished video in this turn. Don't stop to ask questions; make your own calls and note them in NOTES.md.

# ASI: an anime trailer, made entirely in code

Output folder: `{{FOLDER}}` (create it; write only inside it).

## Goal
Make a 60-90 second anime-style trailer about **artificial superintelligence**. You have full creative freedom over the story, characters, tone, world and music. The bar is that people on anime and AI Twitter stop scrolling, feel something, and rewatch it.

It needs:
- a hook in the first 2 seconds
- an emotional turn
- at least one jaw-drop moment
- a title card and an ending that land

Avoid the obvious "evil robot takes over" cliché unless you subvert it.

## Characters
Characters are your own original designs. No existing anime, manga, game or film characters, and no lookalikes of them. You may use Clawd, the block creature from Claude Code's welcome screen, if you want to, but you don't have to.

Leave out real company logos and real people's likenesses.

## Anime look
- Cel shading with 2-3 tones, ink outlines with tapering line weight, and hand-painted-looking skies and backgrounds.
- Anime grammar: speed lines, smear frames, impact frames, camera shake, push-ins, lens flare, particles, held dramatic poses, and bold kinetic title type.
- Output 1920x1080 at **24 fps**. Animate the characters on twos (12 drawings per second) the way real anime does; camera moves and effects run on ones.
- All lettering is drawn by your code (stroked or SDF letterforms). Don't use font files or system fonts.

## Music and sound
- A trailer or anime-opening score synthesized in code, for example with numpy. Give it a real arc: sparse opening, build, drop, finale, with hits synced to the cuts.
- Add sound design synced to the picture.
- No TTS and no recorded or downloaded audio. A wordless vocal from code (formant synthesis) is fine if it sounds good; otherwise put any lines on screen.

## Rules
- Everything is made in code. No image, video, audio, font or 3D-model files, no generative models, and no network requests.
- Make one self-contained index.html exposing `window.DURATION` and `window.renderAt(t)`. Each frame must be a deterministic, pure function of t. The renderer is up to you: Canvas2D, WebGL2 or WebGPU, with no libraries.
- Capture frame-exact with headless Edge or Chrome and pipe the frames to ffmpeg.
- Keep VRAM use reasonable and never kill processes you didn't start.

## Process and checks
1. Write TREATMENT.md first: the logline, the beats with timings, character designs, the music plan, and the 3 moments meant to make people rewatch.
2. Build the film, then do at least 2 critique passes. Each pass:
   - render a contact sheet (one frame every 2 s) plus stills of the key moments, and look at them yourself
   - fix the weakest shots
   - be honest about whether it's striking, or generic
3. Before delivery:
   - Luma audit: no unintended brightness pops between frames.
   - Flashes: at most 3 per second, with impact frames counted.
   - Audio: about −14 LUFS integrated, true peak ≤ −1 dBTP, no clipping.
   - Decode: full decode with `ffmpeg -v error` comes back clean, and audio and video durations match.

## Deliver (all in the output folder)
- index.html, plus src/ and tools/ with your source.
- asi_trailer.mp4: H.264 crf 16, yuv420p, +faststart, AAC 320k.
- asi_trailer_x.mp4: a smaller copy for X, around 8 Mbit/s.
- soundtrack.wav, contact_sheet.png, thumbnail.png.
- TREATMENT.md and NOTES.md: what you built, how it renders, the checks and their numbers, build time, and your honest list of weak spots.

Finish with a short reply giving the file paths, duration, sizes, loudness, and the 3 weakest moments.
```

## Generations

### Sonnet 5.6 (next): BETWEEN BLINKS (間)

Model requested: claude-sonnet-5-5. Harness: Claude Code (via T3 Code). Reasoning effort: xhigh. Build time: 88 minutes. GPU: NVIDIA GeForce RTX 5090. Renderer: Canvas2D for characters, ink and lettering, plus a small WebGL2 painter and post pass, written by the agent, no libraries. Video: 1920x1080, 87.5 s.

Video: https://subclipweb.subclip.app/agent-skills/community/examples/asi-anime-trailer/sonnet-5.6-next.mp4?v=3

Contact sheet: https://subclipweb.subclip.app/agent-skills/community/examples/asi-anime-trailer/sonnet-5.6-next-contact-sheet.jpg

Built in Claude Code (through T3 Code) in about 88 minutes by Rez's clock, 85 by the agent's (labeled Sonnet 5.6 (next) by Rez; requested as claude-sonnet-5-5 at xhigh effort). Canvas2D draws characters, ink and every glyph as hand-written stroke paths, a WebGL2 painter makes skies and nebulae, and a WebGL2 post pass adds bloom, shake and impact frames. The cosmic web and the fibres in the girl's iris are the same set of points, which makes the reveal a true match cut. The score is synthesized sample by sample in Node, from piano and strings to a formant choir. Checks: clean decode, -14.1 LUFS, at most one flash per second, a luma audit with no unexplained jumps and 91 of 91 frames bit-identical after a scrambled re-render. Stated weak spots: the montage figures move like paper dolls, the pinky promise hands look rubbery, the early profile two-shot is stiff, and the agent never heard the music.

Original files: https://github.com/RezAIT00/agent-demos/tree/main/prompts/asi-anime-trailer/generations/sonnet-5.6-next. Our copy: https://github.com/subclip-app/agent-demos/tree/main/prompts/asi-anime-trailer/generations/sonnet-5.6-next

## Make it in Subclip

1. **Treatment first, in the editor.** Connect Claude Code or Codex over the Subclip MCP, create a 1920x1080 project at 24 fps and paste the prompt with its Rules and Deliver sections replaced by: build the trailer as runtime layers in this project. Ask for the treatment and the three rewatch moments before any drawing.
2. **Shots as runtime layers.** Each shot becomes a runtime layer added with `add_runtime_layer` and checked with `validate_runtime_layer_source`. The [cartoon animation](https://www.subclip.app/agent-skills/community/cartoon-animation) and [HyperFrames motion layers](https://www.subclip.app/agent-skills/community/hyperframes-motion-layers) skills cover drawn characters, ink and on-twos timing. Every drawing must come from time alone so the timeline can scrub and export frame-exact.
3. **Check the renderer.** The original uses Canvas2D for characters and a small WebGL2 painter for skies. Canvas2D is the safe part. Be honest about the renderer: support for WebGPU and for heavy WebGL2 inside Subclip's layer renderer and export path has not been verified yet. Build a 5 second test layer first, check it in the preview and in an exported MP4, and keep a Canvas2D or plain WebGL fallback ready if either one comes out blank or slow.
4. **Music, sound and captions.** The prompt wants a synthesized score, so keep that: have the agent render it to an audio file and place it as an audio item synced to the cuts. Extra hits and whooshes can come from `search_public_audio`. All lines are on screen in the original; if you want narration instead, voice it with `generate_local_speech`.
5. **Critique passes and export.** Ask the agent for `get_timeline_contact_sheet` every time a section is done, then `view_frame` on the moments that matter (the first frame, every big transformation, the last frame). Stills hide motion problems, so press play in the preview before you approve anything. Use the [character animation QA](https://www.subclip.app/agent-skills/community/character-animation-qa) skill for hands and faces, the agent's own weakest spots in the original. Export with `export_video`.

## Related community skills

- https://www.subclip.app/agent-skills/community/cartoon-animation
- https://www.subclip.app/agent-skills/community/hyperframes-motion-layers
- https://www.subclip.app/agent-skills/community/character-animation-qa

## Source and credit

Prompts and generations by **Rez** ([@RezAIT00](https://x.com/RezAIT00)), from [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Our copy of the repository: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Original prompt folder: https://github.com/RezAIT00/agent-demos/tree/main/prompts/asi-anime-trailer. Our copy: https://github.com/subclip-app/agent-demos/tree/main/prompts/asi-anime-trailer

[All examples](https://www.subclip.app/agent-skills/community/examples)