Communitygithub.com

whatif-3d-animation

一步步帶你設計同製作 What-if 3D 搞笑動畫短片/Reels(「如果將 X 掉落 Y 會點?」「如果全世界停電一日?」):揀題、砌「一級慘過一級」階梯、核事實、寫稿、錄音、用 Blender 程式砌 3D 鏡頭、字幕聲效後製、安全審查到出片。任何科目同題材都用得(科學、歷史、地理、理財、日常生活)。

whatif-3d-animation 是什么?

whatif-3d-animation is a Claude Code agent skill that 一步步帶你設計同製作 What-if 3D 搞笑動畫短片/Reels(「如果將 X 掉落 Y 會點?」「如果全世界停電一日?」):揀題、砌「一級慘過一級」階梯、核事實、寫稿、錄音、用 Blender 程式砌 3D 鏡頭、字幕聲效後製、安全審查到出片。任何科目同題材都用得(科學、歷史、地理、理財、日常生活)。.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ronaldtsecf/whatif-3d-animation/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

What-if 3D Animation Short: Step-by-Step Guide

This skill takes a creator from a "What if…?" idea to a 60–120 second, vertical 1080×1920 3D comedy animation short (IG Reels / TikTok / YouTube Shorts).

  • Visuals: Entirely generated in Blender by code (character, scene, props, effects), no AI-generated video, so every frame is reproducible and can be inspected frame by frame.
  • Voiceover: The creator's own voice.
  • Post-production: Subtitles, labels, sound effects, music, and loudness handled by Python + ffmpeg.

Role Division

  • You (Claude): Guide and producer. At each step, clearly explain what is being done and what the creator needs to do, then write code, assemble shots, and handle post-production.
  • Subagent: A separate subagent not involved in writing the given item, specializing in independent review.
  • Creator: Selects topic, edits script, records voice, watches and approves the video.

How You Guide (Claude Must Follow)

  1. At the start of each step, say: "This is Step N: ___. What you need to do is ___, I'll handle the rest." The creator does not know code; do not throw terminology at them.
  2. Ask the creator everything needed in one go, with suggested options; proceed to the next step only after they respond. ⏸ indicates a creator action point; all other steps are done automatically.
  3. First time: Run Step 0 first; if the creator says "just try it out", use the demo set to output a non-narrated preview, then start their own topic.
  4. After each step, append a line in the episode folder episode.md (step number, output location) so the next conversation can resume.

Step 0: Preparation (First Time Only)

  • Follow the Installation Checklist to install Blender, ffmpeg, whisper.cpp, fonts, and Python packages, then run scripts/doctor.sh and scripts/smoke_test.sh.
  • To see the full pipeline in action first: scripts/new_episode.sh ep01-demo --from-example to open the demo episode "What if sodium was dropped into Victoria Harbour", then follow engine.md to produce a non-narrated preview.
  • Read Style Guide, Measured Numbers & Lessons; every step's checkpoints are there.

Step 1: Choose Topic ⏸

Objective: Find a "What if…?" question that the audience instantly wants to know the answer to.

  • Use the Topic Ideas for what-if formulas and subject examples; present 8–10 topics for the creator to pick; if they state a topic directly, consider it chosen.
  • Three criteria for a good topic: ① Universal appeal (everyday objects, landmarks, life scenarios); ② Can be escalated "from small to large"; ③ Has a true answer, and the answer is surprising.
  • Before opening the topic, ask the creator three things: what subject or domain they teach/talk about, who the audience is (students? general public?), and desired length.
  • Do not copy topics or character designs from other what-if accounts.
  • Once the topic is chosen, open an episode: scripts/new_episode.sh <episode_name>, i.e. $WHATIF_HOME/<episode_name>/, default under ~/whatif-videos/.

Step 2: Build the "Worse and Worse" Ladder

Objective: Break the topic into 5–7 levels, each escalating in severity, with facts and a joke per level.

  • For each level, write: quantity/severity (e.g., grain of rice → 1g → 1kg → 1 ton → ridiculous), what the visual shows, the real fact, source or calculation, and the joke.
  • Escalation methods: quantity from small to large, time from short to long, scope from one person to the whole world, speed from slow to fast — see ideas.md for templates.
  • The final level is usually an exaggerated calculation asking "How much would it take…?"; end with a takeaway that teaches something.
  • Mark exaggerated parts as imagination; clearly separate facts from imagination (use a "True Fact" card in the video). For numbers without an official source, write "Common internet figure" on screen.
  • Output: notes/<episode>_fact_and_visual_ladder.md.

Step 3: Independent Fact Check

  • Dispatch a brand new subagent to follow the Fact-Check Checklist: recalculate every number, verify causality, check that "possible" is not presented as "certain".
  • All must-fix items must be fixed before proceeding.

Step 4: Write Voiceover Script ⏸

  • Before starting, ask the creator for 1–2 paragraphs of their natural speech (classroom recording, old video subtitles) as voice reference; write long sentences and tone words in their style, do not write in short 4–9 word sentences (sounds unnatural on recording).
  • Word count based on Speed Conversion: ~350 words for a 75-second video.
  • Mark as "AI Draft" and hand to the creator to edit and approve.
  • Then dispatch another new subagent to follow the Script Review Checklist: facts, misleading phrasing, safety lines, proper nouns.
  • Output: notes/<episode>_recording_script.md.

Step 5: Record Audio ⏸

  • The creator records the script once, using a phone voice memo app. If they make a mistake, just re-speak that sentence; no need to stop; cutting is your job.
  • Input: place in voice/raw.m4a; if recorded with Mac Voice Memos, run scripts/voice_intake.py <script_bundle.md> to identify the episode and check if recording is complete.
  • If they missed a sentence, do not ask them to re-record: instead, label important facts on screen.

Step 6: Audio Editing, Subtitle Draft, Timing

  • Use Whisper transcription for timestamps; engine/voice_cut.py removes retakes, creates one audio file per level, and tightens pauses (see engine.md Section 5).
  • Write subtitles based on what was actually said into script.md (as [Segmented Script] + [Pure Speech Script]). List numbers and proper nouns as "must be verified by creator's ear" — do not judge yourself; scripts/term_diff.py lists terms with differences between script and recording.
  • Write anchors in post/config.json, run fit_timing.py; shot lengths and joke timings are derived from the audio.

Golden rule of order: Script finalized → Audio locked → Visuals follow audio. Do not build final shot timings before the recording exists. The original creator built visuals first, then swapped in real audio for the demo episode, resulting in 82 seconds becoming 114.5 seconds, requiring all eight shots to be retimed.

Step 7: Build Shots & Jokes

  • One shot per level, written in shots/_body.py, following the example examples/ep01-sodium-harbour/shots/_body.py.
  • Existing assets: The shared library already has the main character, 17 actions, 18 expressions, props, bystanders, and several scenes (Victoria Harbour, cha chaan teng, MTR carriage, lab, football field, public housing corridor) — see Asset Inventory. New scenes and props needed for a new topic must be built by you and added to scripts/engine/ for reuse in future episodes; the first new topic will be slower.
  • Visual rules:
    • Each shot visually matches the corresponding line (e.g., show the explosion when the word "explode" is spoken).
    • If the narration is longer than the designed shot length, add jokes or change camera angles — don't let the character stand still waiting.
    • Exaggerated expressions use cartoon language (surprised O-shaped mouth, bulging eyes, sweat drops, stars) — do not deform model parts.
    • Props and bystanders must not clip through the character.
  • Safety: Any dangerous items that viewers might imitate (chemicals, fire, electricity, heights, sharp objects) must not be near the character's face/mouth; dangerous props must be marked with mark_hazard(). The SAFETY check in --check inspects frame-by-frame; must pass with 0 flagged frames before rendering.
  • All CHECKS in --check must pass with 0 flagged frames: character not exiting the frame, not entering subtitle/title zones.

Step 8: Post-Production

  • post/build.py overlays subtitles, quantity cards, topic cards, safety warnings, true-fact cards, comment question cards, sound effects, and background music; loudness normalized to −14 LUFS.
  • Each episode requires editing the key colors, card text, and sound effect table (sfx_plan()) at the top of build.py.
  • Safety warnings should be adapted per topic, e.g., "Dangerous, do not try" / "Purely hypothetical"; right edge of right-side labels ≤ 930, avoiding IG's right-side buttons.
  • Run Spacing Audit: measure dead time, static cameras, mechanical movement.

Step 9: Independent Review & Fixes

  • Dispatch a new subagent who had no part in building the video, following the Review Checklist: sample one frame every 0.5 seconds and review the entire video.
  • Must-fix items: fix all. Suggested fixes: apply all at once.
  • Do not blindly accept the subagent's report: measure video length and loudness yourself, spot-check the must-fix frames.

Step 10: Creator Watches Preview, Exports HD, Publishes ⏸

  • Deliver a 720p preview along with a "Must Hear by Ear" checklist.
  • Once the creator says OK, export HD: RES=1080x1920 ./render_all.sh, then run build.py.
  • Requirements: 1080×1920, −14 LUFS, true peak ≤ −1.5 dBTP.
  • Only consider it a "finished video" when the creator personally signs off; date and exact words recorded in episode.md.
  • Help them craft a caption: opening question, "Going from X to Y, each level worse than the last", comment question, safety line.

Step 11: Archive

  • Move any new scenes, props, and actions built for this episode that can be reused in future episodes into scripts/engine/, then add a line to the engine.md Asset Inventory.
  • When modifying existing functions, preserve old behavior; after changes, run scripts/smoke_test.sh.

File Map

FileWhen to Use
references/ideas.mdSteps 1, 2: What-if formulas, subject examples, ladder templates
references/lessons.mdMust read before starting each episode: default style, measured numbers, lessons from each step
references/review-checklists.mdSteps 3, 4, 8, 9: Independent fact check, script review, spacing audit, video review
references/engine.mdSteps 6–10: Code, commands, config files, sound effects
references/batch.mdBatch production of 5–10 videos
references/setup.mdStep 0: Installation and first-run validation
examples/ep01-sodium-harbour/Complete demo episode (8 shots, subtitle script, post-production config)
scripts/Episode creation, self-check, smoke test, voice intake, sound effect download; engine/ is the shared code library

Completion Definition

ModeConsidered CompleteEvidence
Up to preview (Steps 1–9)Creator has watched the preview and given feedback or said OKPreview mp4 in <episode>/post/out/; review records
Up to finished video (to Step 10)Creator personally signed off on 1080p finished videoFinished mp4; sign-off record in episode.md
Only a specific stepOutput listed for that step is readyThe respective file
BatchEach video individually meets one of the above modesProgress table in batch.md

If something cannot be done, report honestly: not yet exported at 1080p, some sound effects replaced by synthetic placeholders (build.py prints "Real SFX missing"), not yet verified by creator's ear — call it a "preview", not a "finished video".

Closing Report

Report to the creator (in their language, conclusion first):

  1. Which step we are at, what they need to do now.
  2. What was changed this time, specific to shots or sentences.
  3. What was verified, including review results and loudness numbers.
  4. What is not yet done or not yet verified.
  5. Paths to the preview video and sampled frames.

相关技能