Generates interactive 3D engineering-drawing explainer pages for any mechanism (engines, pumps, gearboxes) using three.js. Users write one geometry/kinematics file; the kit produces a draggable, step-through simulation with balloon labels, cycle chart, and optional 60fps walkthrough clip.
Ships in inkworks-skill. 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.
A page made this way is an engineering drawing that moves. One machine, drawn in light grey parts with ink outlines on white grid paper, labelled with numbered drafting balloons, running through its cycle slowly enough to follow. People can pause it, step one phase at a time, scrub a chart, follow one cylinder, open the throttle and orbit the camera.
It started as a four-cylinder engine and was then split into a reusable kit and one small file per machine. The second machine, a bicycle floor pump, proved the split works. Both ship here as worked examples.
| Path | What it is |
|---|---|
kit/ | A complete page. Copy it, add a mechanism, serve it. No build step, three.js is vendored |
kit/js/kit.js | Rendering kit: toon parts with ink edges and outlines, hidden-line ghosts, flow particles, flashes, gears, springs |
kit/js/sheet.js | Everything around the machine: DOM, state, loop, both layouts, controls, gauge, charts, labels, tags |
kit/js/mechanisms/starter.js | The smallest complete mechanism (a slider-crank), every field commented. Start here |
kit/js/mechanisms/engine.js | Inline-4 four-stroke engine: 4 instances with phase offsets, valvetrain, spark, gas, heat |
kit/js/mechanisms/pump.js | Bike floor pump: 1 instance, phase bounds that move with state, mechanism state, an action button |
kit/tools/smoke.py | Clicks every control in both layouts at three sizes and fails on any page error |
kit/tools/shoot.py | Headless stills at any size |
kit/tools/record.py | Frame-exact 60 fps clip with a drawn cursor and real mouse events, from a plan in kit/tools/clips/ |
kit/tools/engine_sound.py | Example sound track synthesised from the clip's per-frame state |
scripts/new_project.py | Copies the kit into a new folder with a renamed mechanism and a chosen layout |
references/mechanism-api.md | Every field a mechanism file can set, and what the page does with it |
references/look.md | The visual spec for both layouts. Keep it |
references/clips.md | Recording the walkthrough and adding sound |
references/lessons.md | Things that broke while building this, and the fixes |
Needs a browser and Python 3 for the static server. The tools need pip install playwright && playwright install webkit, ffmpeg for clips, and numpy plus scipy for sound.
python3 scripts/new_project.py <dest> --name <machine> --from starter (or --from engine / --from pump when the new machine is close to one). Add --layout figure for the clean card. Serve it with python3 <dest>/serve.py <port>.state.mech and only advances when the angle moves forward.kit.part() for solids, kit.ghost() for housings and casings, M.glass for anything see-through that holds the action (manifolds, barrels, hoses), kit.stream() for flowing fluid. Keep to the material palette in references/look.md.view.target, view.dir and view.box (the bounding box of everything that moves, at full travel), then tune radius, radiusFigure and radiusCompact until nothing leaves the frame at either end of the cycle.kit/tools/smoke.py (all checks must pass), then look at stills from kit/tools/shoot.py at 1440x900, 1280x720 and 390x844 in both layouts. Look at both ends of the stroke, not just the start.kit/tools/clips/, adapt it, check with --frames-every 30, then render. Clips are silent unless the user asks for sound; see references/clips.md.state.theta. Play, step, scrub, the recorder and the sound track only ever move theta. No wall-clock animation inside pose(), apart from smoothing that uses dt.bounds(state); never fake a fixed split.Pick with meta.layout in the mechanism, data-layout on <body>, or ?layout= in the URL. Both are always available, so show the user both.
agents/openai.yaml (opens in a new tab)kit/css/sheet.css (opens in a new tab)kit/index.html (opens in a new tab)kit/js/kit.js (opens in a new tab)kit/js/main.js (opens in a new tab)kit/js/mechanisms/engine.js (opens in a new tab)kit/js/mechanisms/pump.js (opens in a new tab)kit/js/mechanisms/starter.js (opens in a new tab)kit/js/sheet.js (opens in a new tab)kit/serve.py (opens in a new tab)kit/tools/clips/engine_sheet.py (opens in a new tab)kit/tools/clips/pump_figure.py (opens in a new tab)kit/tools/engine_sound.py (opens in a new tab)kit/tools/record.py (opens in a new tab)kit/tools/shoot.py (opens in a new tab)kit/tools/smoke.py (opens in a new tab)kit/vendor/three/LICENSE (opens in a new tab)kit/vendor/three/addons/controls/OrbitControls.js (opens in a new tab)references/clips.md (opens in a new tab)references/lessons.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/inkworks-skill:inkworksfrom inkworks-skill
npx claudepluginhub moh4696/inkworks-skill --plugin inkworks-skillOther plugins' skills for the same job