What happened
Authors can define disassembly paths and drive moving parts with a declarative simulation using mechanisms such as slider-cranks, ODEs, lookup tables and state machines; the repository says the simulation evaluates no code. Decoder traces upstream and downstream links between parts and detects feedback loops.
There are two authoring routes: edit a .decoder.json file in Studio and see changes immediately in 3D, or use the agent skill to author, validate and package exhibits. The skill runs commands through npx primitive-decoder and does not require a repository checkout. The repository also supports checkout-based installation for Claude, Codex, Gemini, Copilot, Cursor and a shared agents folder.
Exports include standalone HTML, GLB, glTF, OBJ, STL, faceted STEP, SVG, PNG and the source project file. The package command bundles the renderer, simulation, project data and a vector fallback plate into one HTML file; the repository says it makes no network requests. Developers can also use the same engine as DecoderSDK from primitive-decoder. Decoder is distributed under Apache License 2.0.
Decoder offers twelve viewing modes, including cutaway, section, X-ray and thermal views, and generates vector technical illustrations in six styles. The repository includes seven sample exhibits, from an espresso machine and mechanical watch to a human heart, processor and mechanical pencil.
Trend signal
The skill makes Decoder an example of the portable-capability pattern: agents can learn a bounded workflow and invoke its tools without needing a project checkout. That connection is useful, but portability alone says nothing about the skill’s quality or how reliably agents use it.
Why it matters
For builders, standalone HTML makes an exhibit easy to hand off for offline use without asking viewers to install Decoder or depend on a live service.
Limits and uncertainty
Decoder’s exhibits are educational models, not certified engineering analyses, and local use requires Node.js 22.12 or newer plus a WebGL2 browser. Each part and relationship carries an evidence label—observed, documented, inferred, illustrative or unknown—and observed or documented claims must cite a source. Effects such as flow particles and heat glow are explicitly illustrative. The repository says its export verification opens packaged exhibits offline in headless Chromium with networking disabled and checks interactions and the no-WebGL fallback; that is a stated packaging check, not evidence of engineering validation.
Skill to build now
Install the skill with npx skills add Primitivelabai/decoder --skill decoder. To try the CLI without a global install, validate a project with npx primitive-decoder validate example.decoder.json. The global CLI option is npm install -g primitive-decoder. After installing the skill from a checkout, restart the agent; for an agent without skill support, provide it with skills/decoder/SKILL.md as instructions.
Reader takeaway
Decoder is aimed at communicating how a machine, device or organ works—not certifying its engineering behavior. Builders can author through an agent skill or Studio, then package an exhibit as self-contained HTML for offline viewing. The project also makes evidence labels part of the model, helping readers distinguish sourced claims from inference and illustration.