# 用代码制作的 AI 动漫预告片：Between Blinks

用代码制作的 AI 动漫预告片：Between Blinks，一部关于超级智能的 87 秒预告片，原创故事，配乐由代码合成。附完整提示词。

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

## 它能做出什么

这个提示词给智能体完全的创作自由，做一部 60 到 90 秒、关于人工超级智能的动漫预告片：两秒内抓住观众，一次情感转折，一个令人震撼的时刻，以及一个有力的结尾，不能落入邪恶机器人的俗套。它规定了画风（两到三色赛璐珞着色、收尖的墨线、手绘感天空、拖影和冲击帧、角色以 24 fps 一拍二），并禁止任何素材文件、字体文件、文字转语音和生成式模型。

成果是 BETWEEN BLINKS（間），时长 87.5 秒，在 Claude Code 中制作，指定模型为 claude-sonnet-5-5（Rez 标注为 Sonnet 5.6 (next)）。片中的 ASI 思考得太快，一个女孩眨一次眼，对它来说就是 9,000 年；她说完一句话的工夫，它想象了一百亿种结局，却错过了真正的那一个。

## 提示词（prompt.md）

仓库中的 prompt.md 原文，一字未改。仓库里的每个模型拿到的都是同一个提示词。遇到 {{FOLDER}} 占位符时，发送前把它替换成一个空的输出文件夹。

```
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.
```

## 生成结果

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

指定模型: claude-sonnet-5-5. 运行环境: Claude Code (via T3 Code). 推理强度: xhigh. 制作用时: 88 分钟. GPU: NVIDIA GeForce RTX 5090. 渲染器: Canvas2D for characters, ink and lettering, plus a small WebGL2 painter and post pass, written by the agent, no libraries. 视频: 1920x1080, 87.5 s.

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

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

在 Claude Code（通过 T3 Code）中制作，按 Rez 的计时约 88 分钟，按智能体的计时 85 分钟（Rez 标注为 Sonnet 5.6 (next)；指定模型为 claude-sonnet-5-5，推理强度 xhigh）。Canvas2D 把角色、墨线和每个字形都画成手写的笔画路径，一个 WebGL2 绘制器生成天空和星云，一个 WebGL2 后期通道加入辉光、震动和冲击帧。宇宙网和女孩虹膜里的纤维是同一组点，所以揭晓时是一次真正的匹配剪辑。配乐在 Node 中逐个采样合成，从钢琴、弦乐到共振峰合唱。检查项：解码无误，-14.1 LUFS，每秒最多一次闪烁，亮度审查没有无法解释的跳变，打乱顺序重新渲染后 91 帧中 91 帧逐位一致。自述弱点：蒙太奇里的人物动起来像纸娃娃，拉钩的手看起来像橡胶，前面的侧面双人镜头很僵硬，智能体从没听过这段音乐。

原始文件：https://github.com/RezAIT00/agent-demos/tree/main/prompts/asi-anime-trailer/generations/sonnet-5.6-next。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/asi-anime-trailer/generations/sonnet-5.6-next

## 在 Subclip 中制作

1. **先在编辑器里写创意说明.** 通过 Subclip MCP 连接 Claude Code 或 Codex，新建一个 1920x1080、24 fps 的项目，粘贴提示词，并把其中的 Rules 和 Deliver 两节替换为：在这个项目中把预告片做成运行时图层。在开始绘制之前，先要创意说明和三个值得反复回看的时刻。
2. **把镜头做成运行时图层.** 每个镜头都是用 `add_runtime_layer` 添加、用 `validate_runtime_layer_source` 检查的运行时图层。[cartoon animation](https://www.subclip.app/zh/agent-skills/community/cartoon-animation) 和 [HyperFrames motion layers](https://www.subclip.app/zh/agent-skills/community/hyperframes-motion-layers) 技能讲解了手绘角色、墨线和一拍二的节奏。每个画面都只能由时间决定，这样时间线才能随意拖动，并逐帧精确导出。
3. **检查渲染器.** 原版用 Canvas2D 画角色，用一个小型 WebGL2 绘制器画天空。Canvas2D 是稳妥的部分。对渲染器要实事求是：Subclip 的图层渲染器和导出流程对 WebGPU 和重度 WebGL2 的支持尚未验证。先做一个 5 秒的测试图层，在预览和导出的 MP4 中都检查一遍，如果其中任何一个出现黑屏或卡顿，准备好 Canvas2D 或普通 WebGL 的备用方案。
4. **音乐、音效和字幕.** 提示词要求合成配乐，那就保留：让智能体把它渲染成音频文件，作为音频项放入并与剪辑点同步。额外的重击声和呼啸声可以用 `search_public_audio` 查找。原版所有台词都以文字显示在屏幕上；如果你想改用旁白，可以用 `generate_local_speech` 配音。
5. **评审几轮，然后导出.** 每完成一个段落，就让智能体调用 `get_timeline_contact_sheet`，再对关键时刻（第一帧、每次大的变换、最后一帧）调用 `view_frame`。静帧看不出运动问题，所以批准之前要在预览里按播放看一遍。手和脸是原版中智能体自己认为最弱的地方，用 [character animation QA](https://www.subclip.app/zh/agent-skills/community/character-animation-qa) 技能检查。用 `export_video` 导出。

## 相关社区技能

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

## 来源与署名

提示词和生成结果作者：**Rez**（[@RezAIT00](https://x.com/RezAIT00)），来自 [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos)。我们的仓库副本：[github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos)。

原始提示词文件夹：https://github.com/RezAIT00/agent-demos/tree/main/prompts/asi-anime-trailer。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/asi-anime-trailer

[全部示例](https://www.subclip.app/zh/agent-skills/community/examples)