# コードで作ったAIアニメトレーラー: Between Blinks(間)

コードで作ったAIアニメのトレーラー「Between Blinks(間)」。超知能を描く87秒の作品で、オリジナルのストーリーと合成した音楽つき。プロンプトを全文掲載しています。

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

## このプロンプトで作れるもの

このプロンプトはエージェントに、人工超知能(ASI)を題材にした60〜90秒のアニメのトレーラーについて、完全な創作の自由を与えます: 2秒以内のつかみ、感情の転換、息をのむ瞬間、そして心に残る結末を、「悪のロボット」という定番に頼らずに。見た目(2〜3トーンのセルシェーディング、先細りのインク線、描き込んだ空、スミアとインパクトフレーム、24 fpsで2コマ打ちのキャラクター)は固定し、素材ファイル、フォントファイル、音声合成、生成モデルはすべて禁止しています。

完成したのはBETWEEN BLINKS(間)、87.5秒。Claude Codeでclaude-sonnet-5-5を指定して作られました(RezはSonnet 5.6 (next)と表記)。このASIは思考が速すぎて、少女の1回のまばたきが9,000年に感じられます。彼女が1文を話す間に100億通りの結末を想像し、本当の結末を見逃してしまいます。

## プロンプト(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、1秒あたり最大1回のフラッシュ、説明のつかない跳ねがない輝度監査、順番を入れ替えた再レンダリング後も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のセクションを「このプロジェクト内でトレーラーをランタイムレイヤーとして作る」に置き換えたプロンプトを貼り付けます。作画に入る前に、トリートメントと、もう一度観たくなる3つの瞬間を依頼しましょう。
2. **ショットをランタイムレイヤーで.** 各ショットは`add_runtime_layer`で追加し`validate_runtime_layer_source`で確認するランタイムレイヤーになります。手描きのキャラクター、インク、2コマ打ちのタイミングは[カートゥーンアニメーション](https://www.subclip.app/ja/agent-skills/community/cartoon-animation)と[HyperFramesモーションレイヤー](https://www.subclip.app/ja/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. **講評を重ねて書き出す.** セクションが1つ終わるたびにエージェントに`get_timeline_contact_sheet`を依頼し、重要な瞬間(最初のフレーム、大きな変化のすべて、最後のフレーム)で`view_frame`を使わせます。静止画では動きの問題が見えないので、承認する前にプレビューで再生してください。オリジナルでエージェント自身が最も弱いとした手と顔には、[キャラクターアニメーションQA](https://www.subclip.app/ja/agent-skills/community/character-animation-qa)スキルを使いましょう。`export_video`で書き出します。

## 関連するコミュニティスキル

- https://www.subclip.app/ja/agent-skills/community/cartoon-animation
- https://www.subclip.app/ja/agent-skills/community/hyperframes-motion-layers
- https://www.subclip.app/ja/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/ja/agent-skills/community/examples)