Communitygithub.com

animation-music-video

端到端动画音乐 MV 制作标准工作流:覆盖需求拆解与多创作模式选择(意象氛围编舞模式 / 原创故事叙事模式 / 说唱一句一景卡点模式)、7 大纯代码画风库(含风格 G 白边贴纸手账说唱风)、参考视频画风拆解、 本地音频实测校时与高光片段精确裁剪、角色视觉圣经与分镜剧本创作、Remotion 动画工程实现、 16帧视觉质检精修闭环、1080p 高清带原唱 MP4 渲染交付,以及(可选)4:3 横版与 3:4 竖版配套封面生图验收交付。 当用户要求制作整曲或片段动画音乐 MV、说唱卡点手账 MV、生成 MV 故事/分镜剧本/双版封面、 复刻抖音方头Q版/贴纸风/像素风动漫 MV 或导出成片时激活本技能。

animation-music-video 是什么?

animation-music-video is a Claude Code agent skill that 端到端动画音乐 MV 制作标准工作流:覆盖需求拆解与多创作模式选择(意象氛围编舞模式 / 原创故事叙事模式 / 说唱一句一景卡点模式)、7 大纯代码画风库(含风格 G 白边贴纸手账说唱风)、参考视频画风拆解、 本地音频实测校时与高光片段精确裁剪、角色视觉圣经与分镜剧本创作、Remotion 动画工程实现、 16帧视觉质检精修闭环、1080p 高清带原唱 MP4 渲染交付,以及(可选)4:3 横版与 3:4 竖版配套封面生图验收交付。 当用户要求制作整曲或片段动画音乐 MV、说唱卡点手账 MV、生成 MV 故事/分镜剧本/双版封面、 复刻抖音方头Q版/贴纸风/像素风动漫 MV 或导出成片时激活本技能。.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pphgood/animation-music-video/tree/HEAD

在你喜欢的 AI 中提问

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

文档

Animation Music Video Production (Standard Operating Procedure)

This skill encapsulates a complete, reproducible production pipeline from "Song Selection + Style Definition → Audio Calibration → Script & Storyboard (3 Modes) → Animation Engineering → Visual Quality Inspection → HD MP4 Delivery (→ Optional: 4:3 / 3:4 Matching Covers)".

Core Disciplines: Phase Three supports three workflows: "Imagery Ambiance Choreography Mode," "Original Story Narrative Mode," and "Beat-Sync Metaphor Montage Mode." Regardless of mode, the script and storyboard must be completed and confirmed by the user before writing and rendering any animation. Before rendering the full video, a keyframe visual spot-check must be performed to fix any clipping or occlusion issues. Phase Seven (matching covers) is an optional step performed only upon user request.


Phase 1: Requirements Gathering & Interactive Art Style Confirmation

Before writing the script, clarify the following 5 decisions with the user (adopt directly if already specified; do not ask redundant questions):

  1. Track & Production Scope: Artist, song title. Produce the full track or a specified highlight segment (e.g., from a specific lyric start to end).
  2. Creative Mode Selection (Determines Script Structure):
    • Mode 1 · Imagery Ambiance Choreography (Imagery-First): Derives core visual motifs and scene-by-scene emotional visuals directly from the lyrics' imagery and the track's mood. (Suitable for impressionistic ancient-style, strongly atmospheric ballads, abstract visual flow.)
    • Mode 2 · Original Story Narrative Mode (Story-First): Involves deeply reading the lyrics and musical arrangement, independently creating an original micro-film story script with a complete narrative arc and clear character motivations. The story is then interwoven with the lyrics' meaning and the music's rhythm to create a three-track-scene-by-scene storyboard. (Suitable for emotional narratives, relationship dramas, or strong plot-twist micro-film MVs.)
    • Mode 3 · Beat-Sync High-Density Montage Mode (Beat-Sync Metaphor Montage): Precisely measures BPM and drum hits (e.g., 90 BPM 4 beats = 2.67s). Each dense rap lyric gets its own high-imagination metaphorical vignette (1.5–3.0s/scene high-frequency cuts). Mimics physical props from UI elements like phone chat bubbles, battery percentages, late-night clocks, measuring cups, and frosted glass, combined with strong warm/cool or light/dark color contrast hard cuts.
  3. Interactive Art Style Selection (Key Step):
    • If the user has not specified a style, first consult the 7 Code-Proven Style Preset Library. Based on the song's genre and mood, recommend 1–2 most fitting styles. Show the user the 100% code-rendered 7-in-1 style catalog image style-catalog-7in1.jpg. Use ask_question (or a selection list) to ask the user to explicitly confirm one of the following 7 styles:
      • Style A · Chibi Head Hand-Drawn Comic Style (Viral on Douyin @yuyuyu, default for emotional pop/heartbreak ballads)
      • Style B · Retro Pixelated Grain Style (480×270 HD-2D pixel grid, for nostalgic hits/late night city)
      • Style C · Layered Papercut 3D Pop-Up Book Style (5-layer cutout shadow theater + 15fps light stop-motion, for folk/acoustic narrative/fairy tales)
      • Style D · Chinese Ink Wash Silhouette Style (Rice paper negative space + wet ink distant mountains + cinnabar accents, for ancient-style/opera/Chinese pop)
      • Style E · 90s City Pop Neon Silhouette Film Style (Purple sunset ocean + neon backlit silhouettes + 35mm grain, for R&B/Lo-Fi/urban night drives)
      • Style F · Hand-drawn Sketch Doodle Style (12fps boiling line filter + big-head doodles + fiery red/fluorescent yellow accents, for rock/Bilibili hand-painted videos/strong beats)
      • Style G · White Border Sticker Scrapbook Picture Book Style (Viral on Douyin @T.05an, no black outline flat color + white border die-cut shadow + UI mimicry fusion + cream paper card subtitles, default for melodic rap / Emo Rap / urban beat-sync vignettes)
    • Reference Video Verification: If the user provides a custom reference video URL (e.g., from Douyin/Bilibili), first view the actual frames using a browser to identify its true art style (e.g., distinguish between "Chibi vector hand-drawn comic style," "White border sticker scrapbook style," and "True pixel art style"), then confirm alignment with the user.
    • Code Starter Templates: Styles C/D/E/F/G have directly reusable Remotion pure-code TSX templates under examples/code-style-proof/.
  4. Execution Method:
    • Direct Execution & Render: The current Agent sets up the Remotion project and delivers the final MP4.
    • Generate External Production Package: Outputs only the script, LRC, audio source explanations, and a complete prompt for an external model (e.g., Claude).
  5. Working Directory Convention: Create <Song Name>-MV/ in the workspace root. Place the original audio and LRC in this directory, keeping them read-only. Build the animation project in the subdirectory <Song Name>-MV/<slug>-mv/.

Phase 2: Audio Source Measurement & Lyric Refinement

  1. Check Local Materials: Verify if <Song Name>-MV/ contains audio (.mp3/.flac/.wav/.m4a) and an .lrc file.
    • Copyright Compliance Red Line: Never download copyrighted studio MP3s from external sites on behalf of the user. If audio is missing locally, first prepare <Artist> - <Song>.lrc and audio_source_info.md, then prompt the user to provide a legitimate local audio source.
  2. Measure Audio & Refine Timeline: Use the Audio Probe & Precise Crop Script:
    # 1. Detect audio specs and RMS energy envelope for specified range (locate accurate breath points and trailing sounds)
    python "<skill_dir>/scripts/calibrate_audio.py" probe "<audio_path>" --start 130 --end 145
    
    # 2. If making a highlight segment, crop precisely + smooth fade in/out + end visual white space, output verification clips
    python "<skill_dir>/scripts/calibrate_audio.py" clip "<audio_path>" "<project>/public/clip.mp3" `
      --start 134.50 --end 224.45 --fade-in 0.45 --fade-out 0.70 --pad-total 91.00 --verify-dir "<project>/tmp_check"
    
  3. Auditory Boundary Check (Mandatory): Use read_file to listen to tmp_check/verify_head.mp3 and tmp_check/verify_tail.mp3 directly. Confirm:
    • The beginning has a natural breath point, no harsh cut.
    • The end fades out completely after the last syllable, ensuring no next vocal part bleeds in.
    • Check the overall offset (offsetSec) between the LRC and the actual audio, writing the precise frame number into the timeline data.

Phase 3: Visual Bible & Storyboard (Checkpoint Gate)

Generate <Song Name>-MV/script-v1.md. Execute the corresponding structure based on the creative mode selected in Phase 1:

Mode 1: Imagery Ambiance Choreography (Imagery-First)

Must include 4 structured sections:

  1. Unified Character Assets (Visual Bible): Define the look (chibi head proportions, stroke width, hairstyle features like cowlick/double buns, fixed outfit colors, symbolic micro-expression sheet).
  2. 4–5 Core Visual Motifs (贯穿全片): e.g., Polaroid photos, white shirt cuffs, lighthouse coast, platform tram, flipping calendar, zero-gravity starry sky. Ensure the beginning and end echo each other.
  3. Emotional Color Zone Map: For each emotional segment, provide a high-aesthetic color palette (refer to Style & Scene Preset Library). Prohibit dirty gray clashing colors.
  4. Scene-by-Scene Storyboard Table: For each scene, clearly define "Track Time / Internal Time / Corresponding Lyric / Fore-Mid-Background Three-Layer Composition & Camera Movement / Transition / Subtitle Layout Style".

Mode 2: Original Story Narrative Mode (Story-First, recommended for strong narrative/multi-character MVs)

Use the "Lyric Decoding → Original Story Script → Visual Bible → Three-Track Scene-by-Scene Storyboard" three-step method. Must fully include 4 structured sections:

  1. Deep Lyric Reading & Musical Emotion Analysis:
    • Analyze central theme, implied character relationships (e.g., two-person / triangular restraint), a decoding table for core lyrical imagery metaphors;
    • Based on audio energy fluctuation, define a narrative progression strategy for repeated verses/choruses (using time progression, perspective reversal, or relationship shifts to give identical lyrics new meaning; reusing the same image for repeated lyrics is strictly prohibited).
  2. Independent Original Story Script:
    • Write a complete original micro-film title, era/world setting, and main character profiles (personality, distinctive appearance, emotional motivation, and arc), independent of line-by-line illustration.
    • Write a complete story text with a clear "Beginning / Rising Action / Turning Point / Climax & Resolution" four-act structure, a strong causal chain. List interlinked foreshadowing and reveal/reference points.
  3. Visual Bible & Emotional Color Palette:
    • Unified character stylization, highly distinctive costume colors, a symbolic micro-expression library, a list of two-person/multi-person interaction poses without clipping (refer to Remotion Engineering & Pitfall Avoidance Guide), and phased high-aesthetic emotional color palettes.
  4. "Story × Lyrics × Music" Three-Track Scene-by-Scene Storyboard Table:
    • For each scene, besides detailing "Track Time / Frame Range / Corresponding Lyric / Fore-Mid-Background Composition & Beat-Synced Action Nodes / Transition / Subtitle Layout Style", mandatorily include a "Story Narrative Progression (Causal Chain)" column and an "Intertextual Resonance with Current Lyric" column, ensuring each scene both independently advances the plot and tightly interweaves with the sung lyrics and instrumental dynamics.
  5. "Understandable Without the Script" Readability Discipline (Show, Don't Over-Explain):
    • Prohibited: Redundant narration and inner monologues that simply repeat the lyrics: The song itself is the character's voice. Never rewrite the currently sung lyric as a corner narration bar or an "XX's thoughts" inner monologue bubble (this is highly jarring and breaks immersion).
    • Preferred: Natural visual storytelling: Only use natural character-to-character dialogue bubbles (with speaker color coding, width auto-adjusting to prevent orphan characters), in-scene physical letters/postcards/close-up cards, and independent close-up illustration windows for key props and actions (e.g., "The moment a pinky finger gently hooks", "The last candy being unwrapped").
    • Emotional transitions must be "acted out": No jarring emotional cuts (e.g., crying one second, smiling the next). Bridge emotions through visible action sequences (e.g., looking into the distance sadly -> pulling out and unwrapping a key prop -> raising hand to eat/put down -> holding back tears with a restrained smile -> truly letting go). Ensure viewers can understand the narrative without reading the script.

Mode 3: Beat-Sync High-Density Montage Mode (Beat-Sync Metaphor Montage)

Designed specifically for melodic rap / Emo Rap / urban emotional beat-sync vignettes (paired with Style G · White Border Sticker Scrapbook Picture Book Style):

  1. BPM Grid Measurement: Use the audio probe to calculate precise BPM and bar frame counts (e.g., 90 BPM = 20f/beat, 80f/bar). Identify the Intro, each lyric's cut point, and strong drum hit impact frames.
  2. "One Lyric, One Scene" Metaphor Table: Does not pursue long shots or slow narratives. Instead, transform each high-density lyric into a visual metaphorical vignette (1.5–3.0s/scene): e.g., phone read-receipt bubbles, late-night clock, battery warning, emotional measuring cup, foggy glass doodle, 50/50 late-night room × chat split screen, cold rainy night street × warm yellow shop window.
  3. Dual-Color Warm-Cool Contrast & Scrapbook Continuity: Use deep indigo night rooms, bright icy white UI screens, cold rain blue, and warm yellow lights for contrast cuts. Maintain a consistent scrapbook world view with recurring windowsill mascots (rubber duck, teddy bear, cactus, cat, etc.).
  4. Multiple Beat-Sync Transition & Intra-Scene Micro-Motion Choreography (Prohibited: single hard cut or static stickers throughout): The video must blend at least 4 Style G-exclusive transitions (screen-piercing push zoomBurst, white/pink glowing wavy paper tear wavyWipe, horizontal speed line whip pan whipPan, heavy rain curtain dissolve rainCurtain, dreamy large bokeh flash cut bokehFlash). Design BPM-synced breathing camera moves, character micro-motions (turning, holding nose, crying), and in-frame UI interactions (measuring cup real-time jumping numbers leaking hearts, typewriter typing, fog window real-time drawing, stamp heavy drop micro-shake) for each scene.

Mandatory Stopping Confirmation: Hand the script summary (including Mode 2's story outline & scene-by-scene plot points / Mode 3's line-by-line metaphor storyboard) and file path to the user for review. Wait for explicit user confirmation of the script, style mode, and audio readiness before writing any code.


Phase 4: Build Animation Project & Implement Scene-by-Scene

Build the <Song Name>-MV/<slug>-mv/ project according to the Remotion Engineering & Pitfall Avoidance Guide:

  1. Standard Directory Structure:
    • public/: Place calibrated original track or segment audio.
    • src/data/timeline.ts: Canvas size (1920×1080), frame rate (30fps), precise total frame count, color palette, scene table, and refined lyric array.
    • src/components/Characters.tsx: Parameterized SVG characters (including hideArms and dedicated two-person hug/shoulder-lean combo poses).
    • src/components/PropsAndEnv.tsx: Cross-scene reusable spatial environments and core props (maintain spatial continuity for the same camera position).
    • src/components/Effects.tsx: Static paper texture, elliptical vignette, pop art dots, rain curtain ripples, Bokeh highlights, starry sky, comic hatching, cinematic black bars.
    • src/components/LyricsOverlay.tsx: Scene-adaptive dynamic subtitle system.
    • src/scenes/Scene01.tsx ~ SceneNN.tsx: Individual scene components.
    • src/Root.tsx & Main Composition Component: Main composition + single scene preview folder under Scenes/.
  2. Strict Deterministic Rendering: All animations, particles, blinks, and shakes must be 100% driven by useCurrentFrame(), interpolate(), spring(), random(seed). Math.random(), Date.now(), or CSS transition are strictly prohibited.
  3. Zero Compilation Errors: Run npm run typecheck to ensure zero TypeScript errors.

Phase 5: Keyframe Visual Quality Inspection & Refinement Loop (Mandatory)

Do not skip review and render the full video directly! Use the Batch Review Script to extract 12–16 key frames covering all scenes and compose them into a 4×4 review sheet:

cd "<Song Name>-MV/<slug>-mv"
node "<skill_dir>/scripts/audit_stills.mjs" --comp "<MainCompositionID>" --frames 46,128,220,... --sheet

Use read_file to view out/stills/audit_sheet.jpg and 4–6 key high-impact single frames. Review against the following 9-point Quality Checklist:

  • Body Part & Prop Connection: For hugs/shoulder leans, are there ghost arms? For single-arm actions (e.g., raising hand to eat), are default arms hidden and seamless dynamic arms used? Are knees/shins under the garment seamlessly attached for kneeling/sitting poses?
  • Occlusion & Composition Safety: Do tables/railings/frame borders cut into the character's chin or eyes? Are the character's feet pressed by the bottom border subtitle?
  • Micro-Expression Emotional Match & Eyebrow/Eye Visibility: In sad/alone scenes, are ^ ^ squinty eyes or comedic forced smiles with sweat drops used incorrectly? (For tragic restraint, use "lowered brows + slightly glistening eyes + shallow smile".) Is the character's bangs edge clearly visible above the eyebrows, without covering the sad eyebrows?
  • Text Clarity & Layout: Are Chinese subtitles clear and not overflowing? Are dialogue bubbles free of parent word-wrapping orphans? Is the spacing between the climax Song Ti, close-up illustration windows, and character head comfortable? For Style G, are cream paper card subtitles and in-frame UI text (battery/clock/bubbles/labels) sharp and not overlapping faces?
  • White Border Integrity (for Style G): Are the white borders around characters and sticker props complete with no boundary cuts? Are transparent umbrellas/soft focus glows correctly excluded from the outer sticker filter layer (no semi-transparent white blocks)?
  • Transition Frames & Intra-Scene Dynamism Check (for Rap/Rhythm MV): The 16-frame spot-check must include 3–5 transition-in-progress frames. Confirm wavy paper tear glowing edges, horizontal speed lines, large bokeh flash cuts, and heavy rain curtain dissolves are natural with no black seams. Confirm text-chronograph/measuring cup number jump/stamp micro-vibrations are in place.
  • Narrative Self-Sufficiency (No Redundant Narration): Are important emotional transitions "acted out" through visible action transitions (rather than relying on awkward narration bars / monologue bubbles to explain directly)?
  • Color Palette, Glows & Moon Details: Do contrast ratios and elliptical vignettes match the emotion? Are all streetlights/lamps/bridge warm glows using soft radial gradients (no hard circle patches)? Is the crescent moon correctly rendered as an open shape (negative space)?
  • Spatial Continuity: Are flashbacks to different times maintaining consistent angles for buildings/tiles/coastlines?

If any flaws are found, modify the code immediately, re-render the corresponding frames, and perform a secondary review. Repeat until all items pass.


Phase 6: Full Video HD Rendering, Decode Verification & Delivery

  1. Full Video Rendering:
    cd "<Song Name>-MV/<slug>-mv"
    npx remotion render <MainCompositionID> "out/<Artist> - <Song> - MV.mp4"
    
  2. Audio-Visual Integrity Verification (Mandatory):
    • Use ffprobe to verify resolution (1920×1080), frame rate (30fps), duration, and video/audio dual-track codecs (h264 + aac).
    • Use ffmpeg -v error -i "<mp4>" -f null - to perform full-lossless decode validation. Confirm ExitCode = 0.
  3. Delivery Packaging:
    • Copy the final MP4 to the <Song Name>-MV/ root directory for easy double-click playback.
    • Clean up temporary listening slices in tmp_check/.
    • Record measured specs, directory explanations, and npm run studio / re-render commands in <slug>-mv/README.md.
    • Report the final video path, review sheet path, measured specs, and modification entry points to the user.
  4. Local Modification Quick Re-render & Precise Frame Stitching (Avoid Re-rendering Full Video):
    • If the final delivered video requires only minor adjustments to a short segment/action, select a safe seam frame interval [F_start, F_end] where pixels before and after the change are 100% identical (cover the target scene and the transition tail). Use npx remotion render <CompId> "out/patch.mp4" --frames=<F_start>-<F_end> for a local render.
    • Use ffprobe to verify that the original and patch have matching nb_frames, pix_fmt (e.g., yuvj420p), and color_range (e.g., pc). Then concatenate using ffmpeg single-frame trim + concat and -map 0:a -c:a copy to losslessly retain the original audio track (detailed commands in Remotion Engineering & Pitfall Avoidance Guide). Finally, verify the total frame count matches, full-length decode ExitCode = 0, and spot-check the seam frames.

Phase 7 (Optional): Cover Image Generation & Visual Acceptance (4:3 Horizontal + 3:4 Vertical)

Trigger Condition: This phase is an optional workflow, executed only when the user explicitly requests cover generation. If the user does not request covers, or if the built-in image generation service is unavailable, skip this phase entirely (or output only reference key frame paths and external generation prompts as needed).

Generate dual-ratio full-bleed covers for the finalized MV according to the Cover Image Generation Guide:

  1. Extract Reference Key Frames: Select 3 approved key frames from <Song Name>-MV/<slug>-mv/out/stills/ that best represent the character model, core props, and emotional color palette.
  2. Call image-generator to Generate Dual-Format Covers & Archive:
    • 4:3 Horizontal Cover (<Song Name>-MV/covers/<Artist> - <Song> - Horizontal Cover 4x3.png): Suitable for Bilibili/YouTube/widescreen video covers. Title placed in the clean upper left or upper right sky area.
    • 3:4 Vertical Cover (<Song Name>-MV/covers/<Artist> - <Song> - Vertical Cover 3x4.png): Suitable for Douyin/Xiaohongshu/NetEase Cloud vertical posters. Title centered in the top third clean area.
    • Composition & Text Law: Only typeset large song title + small artist name in two clear lines (Chinese/English). Ballads/ancient-style prefer cream white Song Ti; rap/sticker style may use rounded bold fonts/cream sticker letters. Lyric bars, chat bubbles, black borders, white frames, and watermarks are strictly prohibited. After successful image generation, the main Agent copies the generated artifacts to the target cover paths.
  3. Dual-Dimension Visual Acceptance & Archiving:
    • Use read_file to inspect each cover: Confirm the song title/artist font is 100% accurate (no typo or distortion), and visual style details (short hair/hairpins/cowlick/white borders) match the final video. Confirm the image is full-bleed with no artifacts.
    • Use Python Pillow to verify the measured aspect ratio (horizontal w/h ≈ 1.33, vertical w/h ≈ 0.75). If the font or composition does not meet standards, correct and regenerate immediately. (If font distortion occurs twice, switch to a text-free base image + local font programmatic typography.)
    • Archive the two final covers to <Song Name>-MV/covers/ (accompanied by generation_prompt.md), and copy them to the <Song Name>-MV/ root directory for direct use.

相关技能