Communitygithub.com

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

What is breakdown?

breakdown is a Claude Code agent skill that makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/breakdown

Ask in your favorite AI

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

Documentation

3D Exploded Breakdown (breakdown)

┌──────────────────────┐
│ PHONE / EXPLODED VIEW│  mono header
│   ▱▱▱▱▱▱ ──── 01 Glass
│   ▱ 9:41 ▱ ── 02 Screen
│   ▱▱▱▱▱▱ ──── 03 Frame │  layers lift apart, the phone turns slowly
│   ▱▱▱▱▱▱ ──── 04 Board │  leader lines draw out to the labels
│   ▱▱▱▱▱▱ ──── 05 Battery
│   ▱▱▱▱▱▱ ──── 06 Back  │
└──────────────────────┘

Setup Check

SKILL_DIR is the directory containing this SKILL.md file (check the path in <skills>).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<directory containing this SKILL.md>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/node_modules/three/build/three.module.js" ] || bash "$KIT/setup.sh"

Requires ffmpeg, node (18+), python3 (3.9+), and WebGL via headless Chrome.

Steps

  1. Define the 6 layers. The default 3D model is a smartphone with 6 layers (top to bottom): cover glass, display, frame, logic board, battery, back glass. Craft literal specs (e.g. ["Battery", "3,582 mAh"]) or dry humor (e.g. ["Battery", "never enough"]).
  2. Write the spec. Create <name>.breakdown.json using the schema below.
  3. Validate & quick snapshot.
    python3 "$SKILL_DIR/build.py" <name>.breakdown.json --check
    python3 "$SKILL_DIR/build.py" <name>.breakdown.json --snap 3.8
    
    Inspect the snapshot PNG with read_file to verify label alignment before the full render.
  4. Render. Run:
    python3 "$SKILL_DIR/build.py" <name>.breakdown.json
    
    Takes ~1.5 minutes (a sub_timeline_readiness_timeout warning is normal).
  5. Visual QA (Required). Inspect <name>.breakdown.sheet.jpg with read_file:
    • All 6 labels sit cleanly to the right of the phone and inside the red safe-area box.
    • Numbers run 01 to 06 from top to bottom without overlap or truncation.
  6. Hand over. Return clickable links to the .mp4 and .sheet.jpg.

Spec Schema

{
  "title": "Phone",
  "subtitle": "Exploded view",
  "labels": [
    ["Cover glass", "toughened · 0.6 mm"],
    ["OLED display", "6.3 in · 120 Hz"],
    ["Titanium frame", "grade 5 · 7.8 mm"],
    ["Logic board", "3 nm chip · 8 GB"],
    ["Battery", "3,582 mAh"],
    ["Back glass", "matte · magnet ring"]
  ],
  "time": "9:41",
  "date": "Saturday 1 November",
  "accent": "#F08A5D"
}
  • labels (required): Exactly 6 entries, top layer first, each ["Name", "short note"]. Keep names <= ~16 chars and notes <= ~22 chars. Use ["", ""] to hide a layer's label.
  • title / subtitle: Uppercase monospace header.
  • time / date: Shown on the lock screen layer.
  • accent: 6-digit hex color for label numbers, leader dots, and battery stripe.
  • hold (optional): Extra seconds at the end.
  • out (optional): Custom output .mp4 path.

Custom Layered Device (Advanced)

For another flat layered object (tablet, smartwatch, card wallet, laptop lid), copy "$SKILL_DIR/template.html" next to the spec and add "template": "template.html" to the spec:

  • Adjust PW, PL, PR (width, length, corner radius) and build layers with slab(w, l, r, thickness, material) + tex(w, h, draw).
  • Update part(y), Y0 (assembled heights), ORDER, and ANCHORS ([partIndex, [x, y, z]]).
  • Check with --snap 1.0,3.8 (assembled at 1.0, exploded + labelled at 3.8).

Taste Rules

  • Six labels max, crisp and plain. Facts or dry wit — never marketing slogans.
  • Preserve the dark studio backdrop and clean right-hand label column.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills