Anatomy reveal

From huytran1120/vie-agentic-skills · View interactive version

Anatomy reveal is an AI agent skill from the GitHub repository huytran1120/vie-agentic-skills. Build any physical object (a product, a tool, furniture, an instrument, a shoe, a vehicle, a piece of jewellery, kitchenware, a toy, even a fruit or a flower) as a crafted isometric "anatomy" figure made of many small convex parts, then turn it into (1) an interactive dissection page you can drag, t

How to use this skill

Skill file

Anatomy Reveal

The object is never a stock 3D model or a traced picture. It is built part by part from its real dimensions, with the Anatomy kit's 3D mode (template/kit):

Because the object is real geometry, the same model turns through any angle, comes apart, and drives both outputs.

template/ is a complete working project. Its worked example is a dual-boiler espresso machine with a built-in grinder (82 parts), but nothing in the pipeline is specific to espresso machines: any object the user names or shows works the same way. Start every job from the template and replace the object.

Read before building:

Inputs: two cases

A. The user uploads an image of the object.

B. The user only names the object.

Either way, finish with a short spec before any geometry: the dimensions, the feature list, the parts list grouped by assembly, and the one or two features that will move in the film. Show it to the user if anything is uncertain.

Workflow

  1. Size it. An object is a "Hero": 100–150 parts, about 2–4 hours for the object and about 1 hour for the film. Tell the user, then build. Have the object rendering on a test page early, and deepen it from there.
  2. Gather the facts for case A or B above (references/inputs.md).
  3. Scaffold: node <skill>/scripts/new-project.mjs <dir>. It copies template/, installs puppeteer-core and builds the example, which proves the toolchain works on this machine.
  4. Build the object in object/geometry.mjs, following the rules in references/object.md:

Iterate with these, and look at every image you make:

  1. Describe the object in object/film.mjs. The figure page and the film read everything object-specific from this one file:
  1. The anatomy page. Run node object/build.mjs and --light to write object/figure.html and object/figure-light.html. Serve the folder over http to look at it in a browser.
  2. Choose the length and the ratio. Ask the user if they have not said (default 10 s, 9:16), then build the film page with node motion/build.mjs --duration <seconds> --ratio <9:16|4:5|1:1|16:9> (3–60 s). Whips keep their length; drifts and holds stretch or compress. For films over about 12 s, add beats (more detail shots) rather than only stretching.
  3. Choreograph motion/timeline.mjs beat by beat (references/shots.md):
  1. Render: node motion/render.mjs blur out/blur --step 4 --most 40, then node motion/encode.mjs out/blur out/<name>.mp4.
  1. Check the MP4 itself. Extract frames (ffmpeg -i out/<name>.mp4 -vsync 0 out/check/f_%03d.png), contact-sheet a dozen of them, and look.
  2. Deliver: the MP4, the two figure pages and the project folder. Say what you did not verify. The film is silent; offer to cut it to a track the user supplies.

Rules

Files

| Path | What |

|---|---|

| scripts/new-project.mjs | Copies the template into a new folder, installs, builds the example. |

| template/kit/ | The Anatomy kit (MIT), with extra materials (glass, pcb, sensor, signal, porcelain, lavender, knit, coffee, bean, milk, smoke) and two debug hooks in turn.mjs. |

| template/object/geometry.mjs | The object: parts, groups, explode assemblies, feature poses, anchors. |

| template/object/scene.mjs | Projection, build, orient() (yaw, pitch, roll in view space), explodeValues(). |

| template/object/film.mjs | Everything object-specific the page and the film read: titles, scene radius, labels, bounds, feature channels and keys. |

| template/object/build.mjs, live.js | The interactive anatomy page. |

| template/object/test-page.mjs, shots.mjs, scan-apart.mjs, capture.mjs | The bare test page, posed screenshots, the explode pass-through sweep, page captures. |

| template/motion/timeline.mjs | Keys, eases, labels, the retiming behind --duration and the framing behind --ratio. |

| template/motion/build.mjs, look.css | The film page: frame(t), pose(state), speed(t). |

| template/motion/render.mjs, encode.mjs, scan.mjs | Stills, poses, the adaptive-blur render; averaging and H.264 encode; the per-frame order check. |

| template/scripts/browser.mjs | Finds Chrome, Chromium or Edge on macOS, Linux or Windows (CHROME_PATH overrides). |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.