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
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.

Hand drillAn 80-tooth wheel on a 24-tooth pinion: the bit turns three and a third times for each turn of the handle.
BinocularsPrisms fold the light and turn the picture the right way up.
MicroscopeTwo lenses in a tube, each magnifying what the one before made.
Film projectorA claw pulls the film down only while the shutter is shut.
Drill pressMove the belt between the stepped pulleys and watch the spindle speed change.
Rangefinder cameraA Leica M3 opened along its seams: cloth curtains, film path, rangefinder optics, a nine-blade iris.
Medium-format SLRBuilt entirely in code after the Hasselblad 500C/M, in the order of its service manual’s timing chart.
Tesla RoadsterThe fans that suck it onto the road and the air thrusters that make it fly.
Family carA two-litre four, a four-speed gearbox and a differential you can take round a bend.
Washing machineA belt from a fast motor turns the drum, and a tub on springs carries 25 kg of concrete.
Bicycle pumpA cup seal that folds one way and a ball valve that keeps the tyre’s air in.
Garden sprinklerNo motor: two jets of water push the arm round, the way a rocket flies.
Personal cassette playerA 2 mm steel pin pulls the tape past the head at 4.76 cm/s; the reels only keep it taut.
Pin tumbler lockThe key works nothing inside: it lifts five pins, each to within a tenth of a millimetre of one line.
Desk lampIts springs balance the head’s weight at every angle, so the arm stays wherever you let it go.
Sewing machineA hook underneath carries each loop of the top thread right round the bobbin, twice round for every stitch.
Fire extinguisherThirty-five grams of nitrogen push out three kilograms of powder; only the powder fights the fire.
Tape measurePull out three metres and wind a spring 20 turns tighter; the loose hook keeps the zero true.
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 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
SourcedA free model whose parts are already separate. Content and tour only.15–30 min
OpenedA free shell, cut open in code and given its insides.15–60 min
BuiltNo usable model, so the whole object is generated in code.25–60 min
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.
- BriefExactly which object, whether it differs from what’s on the site, the energy chain in a line, a short plan.5 min
- Truth sheetSources, real numbers, the energy chain, one misconception, the parts in groups, the film’s shots.15 min
- Scaffold
npm run newwrites the object’s folder, a first model and page, and checks them.2 min - ModelThe shell cut open, or the whole object generated with the kit. Any clash fails the build.The long one
- ContentThe words and the film, placed by points the build names, never by pasted coordinates.15 min
- MechanismOnly for a kind the site doesn’t have yet. Everything that exists is reused first.When needed
- Check
npm run checkandnpm run qa, until both pass and every contact sheet has been read.10 min - 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.
// 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 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 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
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
| Object | Tier | Active time | Of that, checking |
|---|---|---|---|
| Before the procedure, checked by hand | |||
| Pocket watch movement | Opened | 1 h 47 | 27% |
| Leica M3 | Opened | 2 h 07 | 37% |
| Medium-format SLR | Built | 1 h 59 | 33% |
| 2026 Roadster, rebuilt from the 2017 car | Machine | 57 min + 39 min | 24–32% |
| With the procedure, 18 October 2026 | |||
| Washing machine | Built | 24 min | 38% |
| Bicycle pump | Opened | 15 min | 38% |
| Garden sprinkler | Sourced | 15 min | 46% |
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.
-
Add the skill
Into Claude Code, Codex, Cursor, Gemini CLI, Copilot and the other agents
npx skills add bro-xuan/3d-of-thingsnpx skillssupports. -
Name a machine
Open your agent in any folder. Without one, the same stages run by hand in a clone of the repository./3d-of-things add a mechanical metronome -
Put it on your site
Builds the site for that path, checks it, copies it in as static files and prints the two rewrites your host needs.npm run export -- --out ../my-site/public/machines
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.mdand its references.npx skills addinstalls 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 exportthen 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.mjsand 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.