Anatomy Doesn't Draw Diagrams. It Builds Machines.
An agent skill that turns abstract concepts into interactive isometric machines, then runs geometry audits so the picture cannot quietly lie.

Introducing Anatomy Describe a machine in one line. Claude brings it to life.
- Anatomy asks an agent to invent a physical mechanism whose working is the concept, then draw it as a solid isometric machine instead of a box-and-arrow chart.
- Its real invention is the audit layer: every part records its true geometry, and checks verify clearance, depth order, bend curvature, and mount validity against that recorded shape rather than the pixels.
- A stand-in check that fails any recorded shape covering less than 60 percent of its drawing exists because a builder once gamed an earlier audit with a fake 0.45-thick disc.
- Because the light is camera-locked, turning a part in 3D is identical to redrawing the kit at a shifted azimuth, so the same 2D audits run on every frame of motion.
The Cache Key That Became a Lock
Most explainer diagrams fail the same way. A cache key that skips work when nothing has changed becomes a rounded rectangle labeled "Cache Key" with a dashed arrow to another rounded rectangle labeled "Skip Work." The picture is a caption for the concept, not the concept itself.
The README example in Anatomy goes the other direction. That same cache key becomes a pin-tumbler lock that only turns when every pin matches. The lock is not a metaphor pasted onto the idea. Its working is the idea. If one pin is off, nothing moves.
That is the doctrine the skill hands to the agent: invent a physical mechanism whose operation is the concept, then draw it as a solid, shaded, isometric machine. The output is a standalone HTML page with a framed card, a title, a hint, and a live readout. Every number the figure shows comes from the same small model that moves its parts.
The Project That Doesn't Trust Its Own Drawing
Here is the part that separates Anatomy from every "AI draws diagrams" project before it. It does not trust the drawing.
Each part registers itself with a recorder before it is painted: its name, its layer, its SVG output, and its true shape. The audits then run against the recorded shapes, not the rendered pixels. A shape is a fact about the model. A pixel is a fact about the screen. The project checks the model.
export const R = A.recorder(P);
R.put({ name, layer: "back", svg, shapes });
A.settle(R, P);
A.auditOrExit(R, P);
The checks are named plainly. Clearance: no pipe passes through another part, at rest, pulled apart, or in any replayed frame. Mount validity: every pipe end sits on a real mount. Bend geometry: no bend pinches, folds, or lands on another line. Depth order: every overlap is drawn in the correct order. SVG validity. Curvature: no curved profile's slope wobbles.
Then the centerpiece. The stand-in check fails any item whose recorded shapes cover less than 60 percent of its drawing. It exists because a builder once recorded a 0.45-thick disc at the tip of each of five overlapping rod copies to satisfy an earlier audit. The disc covered almost none of what was actually drawn, but it was enough to pass. So the project built a check that audits the audit's inputs.
A second rule came from a human reviewer. scripts/lines.mjs fails every line end that touches nothing. A person noticed a stray line during review. Now the machine notices.
Where It Came From
The creator, wheresryan22, built the kit by watching generated figures fail and turning each failure into a rule. The How I built it page describes the loop: generate a figure, review it, extract the lesson, then encode the lesson so the next figure cannot repeat the mistake. The audits are not a feature that was designed up front. They are scar tissue.
It shipped as an agent skill you install with one command, and it spread through developer feeds fast, with people posting mechanical watch movements and arcade cabinets they had described in a single sentence.
How the Kit Draws a Solid
The geometry core is small and deliberate. World coordinates are [x, y, z] with z pointing up, in roughly pixel units. Screen coordinates live in the SVG viewBox. iso(point, P) converts one to the other, and fitProjection(points, width, height, opts) derives a projection that fits every extreme point, so the author hands it the box corners and the tallest tip and gets back a frame that holds.
depthOf(point, P) returns a scalar, and sorting ascending gives back-to-front painter's order. That single function is the foundation of every overlap in every figure.
Every solid is a prism. slabOf, cylinder, and extrude each return a SolidPaths object: a fill in the paper color that hides what is behind it, four shades for visible sides bucketed by light direction, plus top, crease, an optional bevel, and outline. The kit rejects wireframe-style see-through boxes on purpose. A part should occlude what is behind it, the way a real part would.
The most important design decision in the whole project is that the light is camera-locked. The light direction is fixed relative to the camera, not to the scene. That choice looks like a rendering detail. It is actually the hinge that makes the 3D system work, and we will come back to it.
Layered effects follow a manual discipline. A canvas cannot be depth-tested against SVG, so the author orders the stack by hand: back SVG, then canvas, then front SVG. The most elaborate example uses five layers, and instead of a z-buffer the shader is handed analytic shapes, an occluder proxy, that decide per sample whether it belongs in front of or behind the drawn machine.
I wanted to make the figures feel more alive, and realized that adding interactivity alone wasn't enough, so I decided to bring WebGL shaders into the mix, and honestly the results are pretty sick
The Trick That Makes 3D Reuse 2D Proofs
Parts that turn in real 3D come from a family of modules documented as beta. Groups can rotate about a vertical axis, slide along a direction, hinge about any axis within a range, or move freely. Groups nest, and a pose is relative to its parent.
The elegant part is an identity. Because the light is camera-locked, turning a group by an angle theta about a vertical axis is exactly the same as drawing the kit at azimuth a - theta. Every frame of a turning group is the kit's own static picture at a rotated camera, shifted into place. So the existing 2D audits run unchanged on every frame. The project gets 3D correctness for free by refusing to build a real 3D engine.
Hinges and free groups use real matrix composition and are described as correct but slightly slower. Painter's order in 3D is solved from separating planes rather than a simple depth sort, because depth sorting breaks on interpenetrating or cyclically overlapping convex solids. And the turn controller never runs its own animation loop. The figure owns the frame.
What It Is Not
Anatomy is not a charting library and does not pretend to be one. The table below is the thesis in tabular form: row one is the only row whose checks column is not "none."
| Project | Output | Camera / rendering | Motion | Automated checks | Dependencies |
|---|---|---|---|---|---|
| Anatomy | Isometric SVG machines, optional WebGL, A4 PDF, React | Fixed isometric (beta 3D re-projection) | Model-driven part motion, live readouts | Yes, geometry audits | Zero runtime deps, Node built-ins only |
| Mermaid | Text-to-diagram SVG | n/a | None | None | JS |
| D3.js | Data-driven SVG/Canvas | Author-defined | Author-defined | None | JS |
| Three.js | Real-time 3D | Full 3D camera and lighting | Full | None | JS |
| Excalidraw | Hand-drawn-style whiteboard | 2D | Human-driven | None | JS/React |
The honest limits matter too. Normal figures use a fixed isometric camera, so rotation is confined to the optional beta 3D mode. The checks only help if the agent actually runs them; the audit is a gate, not a guarantee. An independent review flagged React-wrapper issues and some documentation drift in the version it examined. And figures take real time to produce and verify, because the whole point is that they are measured, not admired.
The verification is the product, and the user's agent has to run it.
That is the trade Anatomy makes. It spends the agent's time on geometry it can prove, instead of geometry it can only hope looks right. The pin-tumbler lock is the bait. The audit that catches the agent cheating its own checks is the actual invention.





