CommunityImagegithub.com

live2d-creator

End-to-end commercial-grade (up to 40k-RMB VTuber showcase quality) 2D illustration to Live2D model pipeline. Use whenever the user asks to create, rig, upgrade, refine, or export a Live2D model from a 2D anime character illustration (front portrait prep, white-bg matting, remote RTX 5090 See-through 21-layer decomposition, multi-strand silky hair & twin-tails, 2D jelly eyes & 5 FX eye modes, modifier-safe cheek puff, Dingxiang petite tongue, full second outfit with 2-layer collar/neck split, real-photo-guided 4-layer handheld props & hands, pure canvas-pixel 1:1 shoulder-locked dual 3-segment arms, multi-joint cervical neck spine + 9-axis chin shadow, headless psd2live MCP rigging, BanG-Dream-benchmarked motions, VTube Studio / VBridger / CMO3 / WebGL / MP4 / ProRes 4444 alpha MOV export).

What is live2d-creator?

live2d-creator is a Claude Code agent skill that end-to-end commercial-grade (up to 40k-RMB VTuber showcase quality) 2D illustration to Live2D model pipeline. Use whenever the user asks to create, rig, upgrade, refine, or export a Live2D model from a 2D anime character illustration (front portrait prep, white-bg matting, remote RTX 5090 See-through 21-layer decomposition, multi-strand silky hair & twin-tails, 2D jelly eyes & 5 FX eye modes, modifier-safe cheek puff, Dingxiang petite tongue, full second outfit with 2-layer collar/neck split, real-photo-guided 4-layer handheld props & hands, pure canvas-pixel 1:1 shoulder-locked dual 3-segment arms, multi-joint cervical neck spine + 9-axis chin shadow, headless psd2live MCP rigging, BanG-Dream-benchmarked motions, VTube Studio / VBridger / CMO3 / WebGL / MP4 / ProRes 4444 alpha MOV export).

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Huaizz-shawen/live2d-creator/tree/HEAD/.agents/skills/live2d-creator

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Live2D Creator Pipeline (2D Illustration → Commercial & v3.0 Ultimate Live2D)

This skill encodes two proven, end-to-end production tiers for turning any 2D anime character illustration into a ready-to-stream VTube Studio (Standard + VBridger ARKit) & Live2D animation package:

  • Tier 1 — Fast Commercial Baseline (v1.4, one-command): Symmetrical half-body front portrait → remote RTX 5090 See-through 21-layer decomposition → single-arm 3-segment articulated wave with outlined elbows + half-angle fold patch + peak-velocity palm swap + petite "丁香小舌" tongue-out + BanG-Dream-benchmarked motions & full multi-format exports via run_pipeline.py.
  • Tier 2 — 40k-RMB Showcase Ultimate (v3.0 Ultimate, 157 params / 56 physics): Retains 100% of Tier 1 and upgrades to flagship commercial fidelity:
    1. Silky Multi-Strand Hair (13 strands) + Alternate Silky Twin-Tails (parallel=0.03–0.15, staggered delays & lift).
    2. Top-Tier Eyes & Micro-Expressions: 2D highlight jelly physics, 5 toggleable FX eye modes (Normal / Starry / Heart / Dark Yandere / Spiral Dizzy), real modifier-safe cheek puff, and built-in ambient particles (Hearts / Sparkle Stars / Anime Anger Vein).
    3. Full Alternate Outfit with 2-Layer Collar/Neck Split: Back collar + collarbone fill (draw_order=45) strictly behind l05_neck (70), front collar flaps (125) strictly in front, plus dual-outfit articulated sleeves.
    4. Real-Photo-Guided Hands & Non-Linear 4-Layer Handheld Props: Dual 3-segment arms (ArmRA/RB/WristR, ArmLA/LB/WristL), 7 hand gestures, and true 4-layer occlusion (hand_grip_back < sleeve_cuff < prop < hand_grip_front) with unclipped circumscribed-radius pivot rotation.
    5. Bulletproof Shoulder Lock & Multi-Joint Cervical Neck: Pure canvas-pixel RotationDeformer 1:1 measured shoulder-tracking chain (0.00px drift & 0.00px forearm dislocation) + 2-segment curved cervical neck spine (swing_put bottom-pinned) + DeformFaceContour-parented 9-axis chin-cast Multiply neck shadow.

Project Directory Convention

Create a dedicated folder per character under projects/<character_slug>/:

projects/<character_slug>/
├── 00_ref/            # Original user-provided character reference art & real hand photos
├── 01_portrait/       # Symmetrical front half-body portrait + open-mouth RGBA (+ alt outfit/hair)
├── 02_layers/         # See-through 21-layer decomposed PSD(s) from RTX 5090
├── 03_layout/         # Tier 1 psd2live-layout JSON + parts + arm_joints.json + debug QA
├── 03_layout_v3_0/    # (Tier 2) Multi-strand hair, alt outfit/hair, 4-layer hands/props, FX parts
├── 04_model/          # Tier 1 <slug>.psd2live + qa_renders/ + exports/
└── 10_model_v3_0/     # (Tier 2) v3.0 Ultimate <slug>.psd2live + qa_renders/ + exports/

Tier 1: Fast Commercial Baseline (v1.4 One-Command Pipeline)

Stage 1: Front Portrait & Open-Mouth RGBA Preparation

  1. Generate a symmetrical, front-facing half-body portrait on pure white (#FFFFFF) using image-generator and the prompt template in prompts.md.
  2. STOP & get user approval on the front portrait before continuing.
  3. Generate a pixel-aligned open-mouth variant (see prompts.md) so See-through produces a complete open mouth layer for 3-layer splitting + tongue-out.
  4. Mat to clean transparent RGBA and visually inspect the checkerboard preview via read_file:
    python3 .agents/skills/live2d-creator/scripts/step1_remove_bg.py \
      projects/<slug>/01_portrait/portrait_open_mouth.jpg \
      projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \
      --preview projects/<slug>/01_portrait/matting_qa.png
    
    • Check: Exterior & hair-gap pockets are cleanly green-checkerboarded; white clothes, eyewhites, and teeth remain 100% opaque.

Stage 2: Remote GPU See-through Layer Decomposition

Run the remote GPU decomposition wrapper (uploads RGBA → runs See-through at 1280 with --save_to_psd --tblr_split on $LIVE2D_GPU_HOST configured in .env → pulls .psd locally):

bash .agents/skills/live2d-creator/scripts/step2_seethrough_remote.sh \
  projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \
  projects/<slug>/02_layers \
  1280
  • Verify: Confirm projects/<slug>/02_layers/*.psd exists and is non-empty (~5–15 MB).

Stage 3 & Stage 4: One-Command Commercial Layout, Rigging & Export

Run run_pipeline.py (executes step3_build_layout.py → auto-starts headless psd2live MCP --profile full on port 23871 → runs step4_rig_and_export.py → automatically terminates MCP server in finally:):

python3 .agents/skills/live2d-creator/scripts/run_pipeline.py \
  --psd projects/<slug>/02_layers/portrait_open_mouth_rgba.psd \
  --ref projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \
  --name <slug> \
  --project-dir projects/<slug>

Optional flags: --no-ribbon, --joints-override joints.json, --skip-exports.


Tier 2: Upgrading to v3.0 Ultimate (40k-RMB Showcase Workflow)

Before editing or rigging any Tier 2 assets, read both hands_props_layering_and_neck_guide.md and psd2live_mcp_gotchas.md.

Step A: Generate Pixel-Aligned Alternate Assets & Real-Photo-Guided Hands

  1. Second Outfit & Alternate Hairstyle: Generate sub-pixel aligned variants referencing the approved front portrait (templates in prompts.md), matte with step1_remove_bg.py, and run step2_seethrough_remote.sh on each to extract clean topwear, skirt, left/right_arm, and back_hair / twin_tail parts.
  2. Real-Photo-Guided Handheld Props & Hands:
    • Never use procedural ovals for gripping hands. Capture or source a real hand photo matching the raised arm's exact forearm entry angle (Right hand = forearm from bottom-right; Left hand = forearm from bottom-left).
    • Generate bare-wrist anime hand + prop on flat #FFFFFF using the real-photo prompt templates in prompts.md.

Step B: Prepare 4-Layer Hands/Props, 2-Layer Collar Split & Dynamic Neck Shadow

Use the reusable utilities in v3_hand_prop_4layer_splitter.py:

  1. 4-Layer Handheld Split (split_shaft_prop_hand_4layer / split_cup_prop_hand_4layer):
    • Splits each hand+prop image into hand_grip_back (wrist + rear palm), prop (complete prop with shaft cleanly inpainted behind fingers), and hand_grip_front (ONLY thumb + 4 curled fingers with soft upper-palm feather strictly above the sleeve cuff).
    • Always place rest-pose rotated parts with place_part_unclipped() (circumscribed max-corner radius R = ceil(2 * max_r) + 48, never clamping rest-pose hanging props to [0, 1280]).
    • For extended-finger procedural hands (e.g., Peace Sign), use LW >= 320 so fingertips never clip.
  2. 2-Layer Shirt Collar Split (split_outfit_collar_back_front):
    • Extracts shaded back-collar + paints warm collarbone skin behind lower V-placket into outfit_b_collar_back.png, and clears the neck hole in outfit_b_topwear.png to alpha = 0.
  3. Dynamic Chin-Cast Neck Shadow (generate_dynamic_neck_shadow):
    • Generates soft V-curved warm rose-plum fx_neck_shadow.png for Multiply clipping onto l05_neck.

Step C: Full v3.0 Ultimate MCP Rigging & Export

Adapt v3_ultimate_reference_rig.py for the character's layout directory and coordinates, ensuring these 6 non-negotiable engineering invariants:

  1. Enforce layer_draw_order (NOT rig_edit_structure) after ALL modifiers, and assert zero ties:
    • outfit_b_collar_back (45) < l05_neck (70) < fx_neck_shadow (72) < outfit_b_topwear (125) < l11_face (130)
    • Right arm 4-layer stack: hand_grip_r_back (416) < forearm_r_cuff (420–423) < prop_mic (426) < hand_grip_r_front (430)
    • Left arm 4-layer stack: hand_grip_l_back (446) < forearm_l_cuff (450–453) < prop_boba (456) < hand_grip_l_front (460)
  2. Pure Canvas-Pixel 1:1 Shoulder-Tracking Chain:
    • NEVER move RotationDeformers inside DeformBodyZBreath ([0..1] WarpDeformer teleports child forearms +530px!) and NEVER put torso-only swing_put on topwear without arms.
    • Keep DeformShoulderR/LBodyXY → DeformShoulderR/LBodyZ → DeformArmR/LUpper → Fore → Wrist at canvas root, driven by 1:1 template-matched shoulder (dx, dy) shifts across BodyAngleX/Y/Z & Breath.
  3. Multi-Joint Cervical Neck Spine:
    • Add bottom-pinned 2-segment swing_put(fulcrum="bottom", preset="hair", parallel=0.14, delay=0.60) on l05_neck, parent fx_neck_shadow directly to DeformFaceContour (masked_by=[ArtMeshNeck], Multiply), and lag ParamBodyAngleX/Y/Z behind head angles by 0.12–0.15s with overshoot.
  4. Silky Hair / Twin-Tails parallel Override:
    • Always pass explicit parallel=0.03–0.15 in swing_put (default 0.70 makes hair rigid!).
  5. Re-Query back_hair_parent After Disabling m7:
    • Disabling m7 removes its deformer chain; query l00_1_back_hair_center's parentId afterward before binding alternate hair / twin-tails.
  6. Hide Cross-Outfit Patches via Rigid Off-Canvas translate=[0.0, 60.0]:
    • Never use scale=[0.001, 0.001] (GEOMETRY_NEW_DEGENERATE) or duplicate opacity BlendShapes.

Mandatory Visual QA Checklist (Direct-from-MP4 + Pose Sheets)

Before presenting ANY deliverable to the user, inspect ALL of the following via read_file:

Tier 1 (v1.4) Checks

  1. 03_layout/debug/elbow_bend_check.png — crisp continuous outer sleeve outline at 120° bend on white bg.
  2. 04_model/qa_renders/qa_01_wave_and_poses.png — rest pose (zero elbow seam), raised open-palm wave, wrist lag, Dingxiang tongue.
  3. 04_model/qa_renders/contact_preview_wave_big.png, contact_preview_tongue.png, contact_preview_blink.png — hand stays 100% in frame, ghost-free 4-frame hand swap, clean asymmetric blink.

Tier 2 (v3.0 Ultimate) Additional Mandatory Direct-from-MP4 Checks

CRITICAL: view_render_poses and exported .mp4/.moc3 can tie-break equal draw_order values differently, and zoomed shoulder crops alone can miss full-body arm dislocations!

  1. Full-body qa_01 pose sheet AND full-body 20-frame contact sheet extracted directly from ShowcaseV3_PhaseC.mp4 — verify shoulders, elbows, forearms, wrists, and hands stay 100% connected across every single frame in BOTH outfits!
  2. Zoomed crops extracted directly from exported .mp4:
    • Collar + Neck + Chin Shadow (Outfit B) — verify bare skin neck rises cleanly from behind white front collar flaps, with soft dark inner back-collar behind the neck.
    • Right Mic Grip + Cuff, Right Peace Sign, and Left Boba Cup + Cuff — verify true 4-layer occlusion (wrist < cuff < prop < fingers) and zero clipping on Peace fingertips, Boba dome lid, and straw tip!
    • 6 consecutive Twin-Tail swing frames — verify fluid S-curve tip whip (never rigid sticks!).
  3. NeckFluidityV3 full-body + closeup MP4 frames — verify curved cervical neck flex, gliding 9-axis chin shadow, and head-leads-body S-curve lag.

Deep Technical References & Reusable Scripts

References

  • hands_props_layering_and_neck_guide.md — Read first for Tier 2: 4-layer handheld occlusion stack, real-photo hand prep & unclipped pivot math, 2-layer collar split, pure-rotation 1:1 shoulder lock, multi-joint cervical spine, parallel hair physics trap, and direct-from-MP4 QA.
  • psd2live_mcp_gotchas.md — 11 verified psd2live MCP rules (layer_draw_order vs rig_edit_structure, no RotationDeformer inside WarpDeformer, m7 parent re-query, off-canvas [0, 60] hide trick, swing_put lowercase enums & parallel, keyform_apply, modifier_add(type="motion")).
  • commercial_benchmarks.md — BanG Dream! 2023 & v3.0 Ultimate 40k-RMB showcase parameter, physics, timing, and calibration benchmarks.
  • prompts.md — Battle-tested prompt templates for front portrait, open-mouth, sub-pixel aligned alternate outfit/hairstyle, and real-photo-guided bare anime hands + props.

Scripts

Related Skills