Skip to content

By PromptFission2 min read

Inkworks has a coding agent draw working 3D machines where every part follows one angle

An agent skill builds interactive engineering-drawing explainers in three.js. Its main rule: no animation by clock, only closed-form functions of a single driver variable.


Ask a coding agent for an animated explainer of a car engine and you tend to get something that moves convincingly and falls apart when you pause it. Inkworks, an agent skill credited to exploraX (GitHub user Moh4696), is built around one rule that prevents this. Everything on the page must be computed from a single number.

The output is a web page styled as an engineering drawing, with a machine running slowly enough to follow. Readers can pause, step one phase at a time, drag a cycle chart, and orbit the camera.

How it works

The skill splits the work in two. A kit, shipped with three.js vendored and no build step, handles rendering and everything around the machine, from ink outlines to gauges and controls. The agent’s job is to write one mechanism file holding the geometry, the phase names and text, and the kinematics.

The kinematics are the constraint. The skill file tells the agent to write them first, as closed-form functions of the driver angle only: piston positions, valve lifts, pressures, volumes. Play, step, scrub and the clip recorder may only move that angle. Wall-clock animation is banned. The skill file is blunt about the consequence: if a part’s position cannot be written as a function of the angle, the page cannot scrub or step it.

Dragging the chart to mid-stroke does not replay an animation to that point. It evaluates the machine there.

State that builds up over time is the exception, and the skill handles it by quarantine. A tyre filling or a part heating goes in a separate state object that advances only when the angle moves forward.

The rules also ask for honest physics. Phase boundaries have to come from the mechanism. In the bundled bicycle pump example, delivery starts later on each stroke as the tyre fills, so the boundary is computed from state instead of being fixed. The agent is told to simplify numbers but never logic.

Checking its own work

Three tools ship with the kit. A smoke test clicks every control in both layouts at three screen sizes and fails on any page error. A recorder makes 60 fps walkthrough clips with a drawn cursor and real mouse events. And an example script synthesises an engine note from the clip’s per-frame state, so the sound follows the tachometer.

The repo has two commits and two worked examples, an inline-four engine and the pump. How well the approach holds up on a gearbox or a lock, both of which the README lists as targets, is not shown.

Try it yourself

The repo is MIT licensed. It installs with npx skills add Moh4696/inkworks-skill, and the README lists Claude Code, Codex, Cursor, Gemini CLI and OpenCode as supported. The examples can be served locally with Python 3 and a browser.

We have not installed the skill or opened the example pages. This is based on the README and the skill file in the repo.