3D of Things

3D of Things A skill for coding agents

Name a machine in one line, and your agent builds it in 3D, takes it apart and shows how it works.

npx skills add bro-xuan/3d-of-things

Then ask for a machine: /3d-of-things add a mechanical metronome

Installs into Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and dozens of other agents. Written and timed in Claude Code.

6 beats a second

The collection’s pocket watch, live. The case is glass, the red line is the power from the crown to the balance, and the hands show your time. Open its page

The collection

The watch above and eighteen more. Each opens on its own page, ready to turn, take apart and run; point at one here to see its insides.

Real insides, really moving

The one rule at the top of the skill’s instructions. A model that only shows its outside is a catalogue picture; a page explains a machine when its insides are true and they work.

The pocket watch, closed: a case, a dial and three hands.
The shell The first pocket watch was a fine model of a case, a dial and three hands with nothing inside. “Take it apart” pulled the hands off and stopped.
The pocket watch taken apart: case, dial, barrel, gear train, pallet fork and balance spread out in a line.
The machine The case cut open along its own edges and the movement built in code: a barrel and mainspring, a train of 80/10, 75/10 and 84/7 teeth, and a Swiss lever escapement beating six times a second.1

The other way a page fails is as a list. Twenty lettered parts on an exploded model say what is there and explain nothing. So the parts are grouped as the energy flows, from the mainspring to the hands, and the film follows the same chain, the machine doing its job once. Every object keeps to the same eight rules:

  • True insidesBuilt from real numbers, teeth, focal lengths, timings, each with its source. What’s simplified is said on the page.
  • Numbers from the modelEvery number on the page is the one that moves the parts.
  • Follow the energyGroups, callouts, the order parts come off and the film all run from source to output.
  • Named partsEvery mesh belongs to a named part with a line on what it does: 8 to 20 parts in 4 to 8 groups.
  • Solid and wholeThe model is never faded or clipped at the page’s edge, and it’s framed whole at rest.
  • A short filmHow it works is the happy path in 15 to 25 seconds: one smooth camera move, the casing as glass, a caption per shot. Pause, scrub, slow it down.
  • Free licencesCC0 or CC BY, checkable at the source, credited exactly.
  • VarietyEach new object differs from the last in mechanism and shape.

Each object also corrects one common misconception. Wind a watch tighter and it doesn’t tick faster: the balance sets the rate, and the spring only keeps it going.

Writing a prompt

Name the machine as exactly as you can and say what should move. Finding the numbers is the agent’s job.

Name the machine
/3d-of-things add a mechanical metronome
Say what should move
/3d-of-things a sewing machine: the needle, the shuttle hook and the feed dog working together
Start from a free model
/3d-of-things take apart Poly Haven’s vintage video camera, like the Leica
Check what’s there
/3d-of-things the SLR’s winding step has a label floating somewhere: check everything still works

Before anything else it sizes the job, in one of four tiers, and says the budget in its first message. A machine with several systems of its own isn’t started without asking: the agent proposes a smaller version that keeps the core of the idea first.2

  1. The garden sprinkler taken apart.SourcedA free model whose parts are already separate. Content and tour only.15–30 min
  2. The bicycle pump taken apart.OpenedA free shell, cut open in code and given its insides.15–60 min
  3. The washing machine taken apart.BuiltNo usable model, so the whole object is generated in code.25–60 min
  4. The Tesla Roadster taken apart.MachineSeveral systems with physics of their own, like a car that flies.2 h and up

What the agent does

Eight stages between your line and the finished page. Each ends with a check, and most of the quality is decided in the first two, before any geometry exists.

  1. BriefExactly which object, whether it differs from what’s on the site, the energy chain in a line, a short plan.5 min
  2. Truth sheetSources, real numbers, the energy chain, one misconception, the parts in groups, the film’s shots.15 min
  3. Scaffoldnpm run new writes the object’s folder, a first model and page, and checks them.2 min
  4. ModelThe shell cut open, or the whole object generated with the kit. Any clash fails the build.The long one
  5. ContentThe words and the film, placed by points the build names, never by pasted coordinates.15 min
  6. MechanismOnly for a kind the site doesn’t have yet. Everything that exists is reused first.When needed
  7. Checknpm run check and npm run qa, until both pass and every contact sheet has been read.10 min
  8. ShipPosters, the README, the production build.5 min

Placing things used to cost time too: a callout’s position typed as three decimals, then nudged after every look. Now the generator names its points and the content file uses the names, so a changed layout moves everything with it.

objects/<slug>/generate.mjs, then content.mjs
// The build names the points the page will need…
anchors: {
  handle: toModel([cx, cy + L.handle, 14]),
  small_face: toModel([sx, sy, -17]),
},

// …and the content file places things by name.
{ title: 'Crank', node: 'crank', ride: true,
  position: at('handle'), camera: pose(at('handle'), [-24, 18], 1.5) }

Building the insides

Most free models are shells. Six of the nineteen had their insides generated inside a downloaded case, and six were generated whole, each laid out from published numbers.

The pocket watch's film: the case and plates turned to glass, the escape wheel, pallet fork and balance solid, with the caption 'Slowed ten times: each swing of the balance lets the escape wheel slip half a tooth, a tick.'
The watch’s escapementAt each beat the pallet fork lets the escape wheel slip half a tooth, and the tooth gives the balance a push. In the film it runs slowed ten times, seen through the glass dial and plate.

The pocket watch was a closed case. Its build cuts the case along the mesh’s own edge loops, adds the inside surfaces a shell never had, and builds about twenty parts from real tooth counts. Every wheel follows one beat count taken from your clock, so the train stays in mesh at any time of day and in slow motion.

The Leica M3 was a shell too: its build cuts it along the seams of the top cover and base plate, thickens each piece inward, and builds the cloth shutter, the film path, the rangefinder optics and a nine-blade iris. The medium-format SLR had no free model at all, so all of it is code, laid out from the service manual of the Hasselblad 500C/M.3

The Leica's film, firing: the two cloth curtains crossing the film gate, slowed so the slit can be seen.
The Leica’s shutter The first cloth curtain uncovers the film and, 1/100 s later, the second covers it again; the film slows the run down so the slit can be seen.
The SLR's film, winding on: a vermilion line runs from the knob through the gear train to the drive key.
The SLR’s winding One turn of the knob winds the drive key back 30/35 of a turn, through gears sized from the factory’s service manual.3
The Roadster's film: blue air lines run from under the floor to the fans in the tail, the body as glass.
The Roadster’s suction Four ducted fans pull the air from under the sealed floor. About 6 kPa less underneath is two tonnes of downforce, parked or moving.

The cars are lofted from a few curves per car and cut into the panels that come off. Under the 2026 Roadster are the fans, two carbon tanks of air at 690 bar and ten nozzles, laid out from Tesla’s launch and its patent; under the family car, a two-litre four firing 1, 3, 4, 2, a four-speed gearbox and a differential.

The checks

Agents build quickly and see slowly, so three scripts do the looking. All three read the object’s own content file, so a new object is checked without new code.

  • npm run checkUnder a second, no browser. Every name the content uses exists in the model, every mesh belongs to a part, every point sits on the model.
  • npm run qaThe real page in headless Chromium: every callout, and the film played through, each shot’s caption and labels checked and a strip of frames to read.
  • npm run models:buildFails if any part crosses another at rest, or if taking it apart would pass one part through another.

Headless Chromium used to draw with software WebGL, at about 460 ms a frame. On the Mac’s GPU it takes 18 to 23 ms, with the same picture. A whole object’s check now runs in about a minute, and a quick pass over all nineteen in under three.4

A contact sheet from npm run qa: the pin tumbler lock's film as thirteen frames at even steps, each labelled with its time.
One run, one sheetThe lock’s film as the runner saw it, a frame every second and a half: the camera should glide from one to the next, never jump.

How long it takes

Active time in Claude Code, measured from the session logs with npm run timing, idle gaps left out.

Before the procedure, checked by hand

  • Pocket watch movement1 h 47Opened · 1 h 47 active, 27% of it checking
  • Leica M32 h 07Opened · 2 h 07 active, 37% of it checking
  • Medium-format SLR1 h 59Built · 1 h 59 active, 33% of it checking
  • 2026 Roadster57 + 39 minMachine, rebuilt from the 2017 car · two sessions, 24–32% checking

With the procedure, 18 October 2026

  • Washing machine24 minBuilt · 24 min active, 38% of it checking
  • Bicycle pump15 minOpened · 15 min active, 38% of it checking
  • Garden sprinkler15 minSourced · 15 min active, 46% of it checking

Before the procedure, a third of every build went on checking by hand, with a new browser script for each object waiting on software rendering, and another sixth on re-reading code to remember how things fit together. The checks, the scaffold, the kit and the skill’s references removed most of both. The three objects built with them took 15 to 24 minutes each, all three in one 70-minute session. Checking is still the biggest stage, but now it’s reading contact sheets and fixing what they show.5

The numbers as a table
ObjectTierActive timeOf that, checking
Before the procedure, checked by hand
Pocket watch movementOpened1 h 4727%
Leica M3Opened2 h 0737%
Medium-format SLRBuilt1 h 5933%
2026 Roadster, rebuilt from the 2017 carMachine57 min + 39 min24–32%
With the procedure, 18 October 2026
Washing machineBuilt24 min38%
Bicycle pumpOpened15 min38%
Garden sprinklerSourced15 min46%

Install

One command adds the skill to your agent. The first time you ask for a machine, it sets up a workspace: a copy of the repository, which is the skill’s kit (the viewer, the model pipeline, the generator kit and the checks), with the nineteen machines as its references.

  1. Add the skill
    npx skills add bro-xuan/3d-of-things
    Into Claude Code, Codex, Cursor, Gemini CLI, Copilot and the other agents npx skills supports.
  2. Name a machine
    /3d-of-things add a mechanical metronome
    Open your agent in any folder. Without one, the same stages run by hand in a clone of the repository.
  3. Put it on your site
    npm run export -- --out ../my-site/public/machines
    Builds the site for that path, checks it, copies it in as static files and prints the two rewrites your host needs.

Limits

Agents are good at building these and less good at seeing them. A part can be right in every number and still look wrong; the fixes that mattered most came from someone watching the model play and saying what felt off: a watch that faded into the page’s edge, seven cars that looked the same.

  • Free models onlyCC0 or CC BY, checkable at the source. Most are shells, so most objects need their insides generated, and that’s the slow part.
  • Simplified insidesReal dimensions and timing, but not every screw, and each page says what was left out.
  • Careful takes timeA simple machine takes 15 to 25 minutes. The watch took nearly two hours before the procedure, and a vehicle with physics of its own takes longer.
  • WebGL neededWithout it, each page shows its poster. Treat the first version as a draft: turn it, take it apart, say what’s wrong, ask again.

Questions

Which agents does it work with?
It’s an agent skill: a folder with a SKILL.md and its references. npx skills add installs it into Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and dozens of others. It was written and timed in Claude Code; its steps are shell commands and a browser, so an agent that can run commands can follow them.
Does it work outside this repository?
Yes. It sets up a workspace the first time and builds there, with this site’s viewer, pipeline and checks; npm run export then puts the machines on any static host, Next.js and Vercel included.
Can I change an object later?
Yes. An object’s words and placement live in its content.mjs and its geometry in the generator beside it. Change a number in the generator and everything placed by name moves with it; then run the checks again.
Will it slow the page down?
Models are 0.8 to 2.9 MB, compressed with meshopt and WebP. The gallery is plain HTML, and three.js loads only when an object page opens, after its poster is on screen.
Is it accessible?
The viewer answers the keyboard (arrow keys turn the model, W switches the look, Esc closes the tour), every step is reachable from the step bar, and reduced motion turns the flights and sweeps off.
What’s the licence?
MIT, for the code, the skill and the models built in code. Every downloaded model is CC0, and its credit is on its page.