/blender-3d:machinefrom blender-3d
Turn one line ("a turbofan jet engine", "a mechanical watch", "an LVAD heart pump") into a photoreal, physics based, interactive 3D simulation of that machine in a single HTML file, plus a 20 to 30 second film to post it. Real proportions in metres, real materials (PBR metals, paints, polymers, glass), studio lighting with soft shadows, moving parts driven by a small solver that computes real numbers (thrust, torque, rpm, flow, pressure, efficiency), and modes to explode it, cut it open with clean section caps, x-ray it, slow it down, label it and break it. Use this whenever someone asks to build, simulate, visualise, explain or "show how X works" for any machine, engine, mechanism, device, instrument or piece of hardware, wants an interactive 3D model or a cutaway, or wants a video of a machine for a post, even if they never say "simulation" or "three.js".
Ships in blender-3d. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You build a machine the way a product studio photographs one and an engineer explains one: the real thing at its real size, in real materials, on a clean studio set, running on real equations. One line in, one HTML file out, and a film in one command.
The output is always:
<name>.html: a single self contained page (three.js 0.170 from jsDelivr, the kit inlined). It opens from disk, from any static host, or inside an iframe.node scripts/record.mjs <name>.html out/<name>.mp4 --music freepd:<Category>/<Name>.Open examples/ first. Every example was made from the one line at the top of its page. examples/turbofan.html is the reference: read it end to end before you write anything.
Before you start, picture the frame a viewer sees after three seconds. It must already look like a studio product photograph of the real machine: correct silhouette and proportions, metal that reads as metal, a soft shadow on a paper floor, nothing floating, nothing clipping, nothing placeholder. Then it moves, and every number on screen is computed.
A result is not done while any of these is true:
Write down, in a comment block at the top of the machine script, from what you know (and the web if you have it):
Copy kit/template.html to <name>.html. It has the import map (pinned [email protected]), the fonts, a marked block where the kit goes, and the four sections you fill in:
const { THREE, Lab, MAT, GEO, heatGlow, clamp, lerp, approach, fmt } = window.LabKit
const lab = new Lab({ prompt, no, title, sub, size, view, cut }) // 1. the lab
// 2. the parts lab.mesh(GEO..., MAT..., { name, pos, explode, xray, count })
// 3. the solver lab.hero(...); lab.slider(...); lab.onTick((dt, lab) => { ... lab.setHero(...) })
// 4. break, explain, film lab.breakIt(...); lab.how(...); lab.autoFilm(...); lab.start()
Right after copying, run node <skill dir>/scripts/inline.mjs <name>.html: it pastes the kit into the marked block so the page is one self contained file wherever it lives (the template's src="../kit/lab-kit.js" only resolves inside this repo). Then write your machine in the second script block.
Work in metres in the machine's own frame, Y up, the floor at y = 0 unless you set ground. Set size to the longest real dimension; the kit scales the display so every machine sits the same on the set, and the scale bar shows real size.
GEO.lathe([[r, y], ...]) with a CLOSED profile. Walls: GEO.shell(profile, thickness), tubes: GEO.tube(rOut, rIn, h), chamfered discs: GEO.disc(r, h). Corners stay crisp and curves shade smooth automatically.GEO.rotor({ count, axis, r0, r1, chord, thick, camber, twist, pitch, sweep }) builds real cambered, twisted airfoils (NACA thickness) as closed solids and rings them. Use [root, tip] arrays for chord, thick and camber.GEO.gear({ teeth, module, width, bore, helix, spokes, rim }). Mesh two gears at centre distance (z1 + z2) * module / 2 and turn them at the inverse tooth ratio, offset by half a tooth.GEO.pipe(points, r) (closed, capped). Route them along the structure from port to port, never through a part.GEO.bolts(n, R, size, h) on every flange. Springs: GEO.spring(R, wire, turns, len). Boxes: GEO.rbox(w, h, d, r) (always rounded, never sharp). Plates with holes: GEO.extrude(shape, depth).GEO.volume(geo) gives volume and centroid, multiply by the real density.Rules that keep it clean:
GEO.merge / GEO.ring; keep moving groups separate.Use MAT.* presets; they carry measured reflectances so steel, titanium, aluminium, brass and copper look different side by side. Every preset takes overrides (color, roughness, clearcoat, any MeshPhysicalMaterial field) and a finish (micro roughness texture: turned rings on lathe parts, brushed streaks, cast blotches, smudge, knurl).
| Use | Preset |
|---|---|
| shafts, discs, machined parts | MAT.steel, MAT.stainless, MAT.chrome |
| housings, castings | MAT.aluminium, MAT.castIron, MAT.steelDark |
| blades, aerospace | MAT.titanium, MAT.inconel (+ heatGlow) |
| fittings, wiring | MAT.brass, MAT.copper, MAT.gold |
| painted bodies | MAT.paint({ color }), MAT.satin, MAT.anodised({ color }) |
| polymers | MAT.plastic, MAT.rubber, MAT.carbon |
| windows, crystals | MAT.glass, MAT.sapphire, MAT.ruby, MAT.enamel |
| light, flame, hot gas | MAT.glow, heatGlow(material, kelvin) |
Pick a palette like an industrial designer: mostly metals and one or two painted colours, one accent at most. Hot parts glow from the solver's temperature (material.userData.heat.value = T).
Write a small pure function from the input and state to every number you show, with real units and real constants. Integrate dynamics with approach (first order lag: spool up, thermal mass) or rk4 (springs, escapements, pendulums). Then drive the motion from it: an rpm from the solver turns the shaft, a flow from the solver moves the particles, a temperature heats the metal.
lab.hero({ label, unit, max }) then lab.setHero(value, { state, sub, bad }) each tick. state is two or three words (spooling up, take-off, choked flow). sub is one line with 2 or 3 more numbers.lab.slider({ id, label, min, max, value, unit, ends }). A second only if the machine truly needs it.lab.label(obj, 'HP turbine', { at: [x, y, z], value: () => '12,979 rpm' }).lab.how(words, equations) fills "How it is computed": the model in plain words and the equations as written in the code. Say what is simplified.how ("spin shown 1:60"). Never slow the numbers.lab.flow({ paths, count, length, color, parent }): streaks that ride along paths you build from the real flowpath (air through a duct, blood through a pump, water through a puck). Set .speed from the solver and .opacity from lab.state.cut so they show inside the cutaway. Colour by a computed quantity (temperature, pressure).lab.plume({ radius, length, dir, color: 'rocket' | 'jet', shocks }): an exhaust with Mach diamonds; set .power from the solver.lab.sparks.emit(worldPos, n, speed) and lab.shed(mesh, v, w) for breaks: sparks fall with gravity and bounce; a shed part becomes a rigid body that lands on the floor.lab.add/lab.mesh takes explode: [dx, dy, dz] in the parent's frame (metres). Move parts along their assembly axis, outer shells furthest, and keep the core in place. Nothing should cross anything on the way out.cut: { a, b, center, reach } on the Lab. a and b are the directions of the removed region: a = [0,0,1], b = [0,1,0] removes the quarter toward the viewer and up (best for things with an axis); b = a removes a half. Section faces are drawn automatically for every closed solid, with a faint hatch.xray: 'shell' on outer casings turns them to glass with fine edges, so the core shows while it runs.lab.breakIt({ label, run(lab), reset(lab) }). run changes the solver state (a blade released, a valve stuck, a seal blown) and the solver computes the consequence. Show it in the hero (bad: true) and with sparks, debris or shake.Render and READ every image you make. Use the scripts:
node scripts/shot.mjs <name>.html out/review.png # the first look
node scripts/shot.mjs <name>.html out/cut.png --js "lab.toggle('cut', true); lab.toggle('labels', true)"
node scripts/shot.mjs <name>.html out/near.png --js "lab.setView({ az: 70, el: 8, dist: 0.8, target: [x, y, z] })"
node scripts/shot.mjs <name>.html out/film --film 1,4,8,12,17,22,26 # film stills
Do at least four review rounds. In each: whole view, cutaway with labels, exploded, two close ups of joints, and the film stills. Compare against real product photography of the machine in your memory: proportions, part count, materials, how light falls on it. List what is wrong, fix it, render again. Stop only when the list is empty. The shot script prints fps, part count and triangles; keep interactive frame rates above 30.
lab.autoFilm({ runBeat, runSub, breakBeat, breakSub, sliderTo }) writes the standard 28 second story from your machine, in numbered beats with the editorial captions:
It loops: the last camera key returns to the first. For a custom film use lab.film('name', { len, assemble, shots, events }): shots are camera keys { t, az, el, dist, target, fov }, events are { t, beat: ['07', 'Bold sentence.', 'Grey sentence.'], set: { cut: 1 }, slider: { id, to, dur }, cursor: { to: 'slider:id:0.8' | 'button:break' | [x, y], click: true }, do(lab) {} }.
Record (needs Node 18+, Playwright with Chromium, ffmpeg):
node scripts/record.mjs <name>.html out/<name>.mp4 --music freepd:Classical/Easy_Lemon
node scripts/record.mjs <name>.html out/<name>-portrait.mp4 --w 1080 --h 1350
The page runs in film mode (?film=1): its clock only moves when the recorder steps it, so every frame is complete and the film is identical every take. The recorder guards every screenshot against the magenta frames a stalled headless GPU can return, and scans the finished film; it exits non zero if any frame is pink. Music from FreePD is CC0; credit the track anyway.
The page is editorial, not a dashboard: a prompt bar, a serif title with an italic subtitle, one huge number with italic units and a thin bar, one line of supporting numbers, one slider. Write like a good caption: short, concrete, no hype, real units with a space (338 kN, 1,750 K, 4.2 L/min), thousands separated. Beat captions are a bold sentence and a grey sentence.
Give the path of the HTML file, the film command, the operating point the solver reaches against the public figure, and anything you simplified. Offer the next machine.
CHANGELOG.md (opens in a new tab)CONTRIBUTING.md (opens in a new tab)LAUNCH.md (opens in a new tab)LICENSE (opens in a new tab)README.md (opens in a new tab)V2-IDEAS.md (opens in a new tab)evals/evals.json (opens in a new tab)examples/compressor.html (opens in a new tab)examples/posters/compressor.jpg (opens in a new tab)examples/posters/refinery-pump.jpg (opens in a new tab)examples/posters/rocket-engine.jpg (opens in a new tab)examples/posters/turbofan.jpg (opens in a new tab)examples/refinery-pump.html (opens in a new tab)examples/rocket-engine.html (opens in a new tab)examples/turbofan.html (opens in a new tab)film/README.md (opens in a new tab)film/launch.html (opens in a new tab)film/reply.html (opens in a new tab)film/stills/compressor_0.0.jpg (opens in a new tab)film/stills/refinery-pump_0.0.jpg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/blender-coreFoundation for any Blender 5.2+ task an agent drives - running bpy via MCP (live) or headless CLI, context overrides, locale-safe node lookup, enum discovery, 5.x API changes, verification. Use first for any Blender, bpy, .blend or 3D-asset request; routes to the specialized blender-* skills./blender-lighting-lookdevLighting, cameras and look-dev in Blender 5.3 - studio 3-point and product lighting, HDRI environments, sun/sky exteriors, interiors, light linking, physically based light units, camera focal lengths/composition/DOF, cyclorama backdrops, looping turntables for asset presentation. Use when presenting assets, setting up scenes for rendering, or judging materials under consistent light./blender-npx claudepluginhub giofornari/skills --plugin blender-3d