Generate Your First Anatomy Figure¶
| Category | Creative & Real-World AI Builds |
| Status | โ Completed |
| Repo | nextwork-generate-your-first-anatomy-figure |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Generate Your First Anatomy Figure guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Creative & Real-World AI Builds
Status: โ
Completed
Overview¶
A figure is only trustworthy if its numbers come from the same model that moves its parts. The first draft computed tempo from a pendulum formula that ignored the escapement, so the review notes called that out; v2 integrates the swing and counts ticks, and a headless browser samples the drawn angle to prove the readout matches. The escapement in v2 is still a governor, not a real mechanism, and the notes say so.
Summary¶
I installed the Anatomy skill with the guide's npx skills add command into the project, and real Claude Code used it to build an interactive isometric mechanical metronome: a plinth, a pendulum rod with a sliding weight you drag, and a live tempo readout, as one standalone light-theme HTML page. In headless Chrome the readout and the measured swing agree (119.98 BPM measured against 120.0 shown at the start; 171.4 and 72.7 at two dragged positions). The review notes name the biggest simplification. The secret mission is done: v2 replaces the free-pendulum formula with a simulated rod-and-spring model, and an Explode button (or the E key) pulls the case apart to show the pendulum, the escapement and the spring barrel.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Claude Code (headless), Anatomy skill, Isometric SVG, Node.js, Headless Chrome (DevTools protocol), Pendulum physics
What I built¶
figure/v1/metronome.html: the first draft.figure/v2/metronome.html: the corrected figure with the exploded view (open it in Chrome). Both are built bybuild.mjsfrom the Anatomy kit.figure/v2/model.mjs: the rod, weight and spring model; the page integrates it and counts ticks for the readout.check-model.mjschecks it in Node.figure/v2/measure.mjs: opens the page in headless Chrome, samples the drawn arm angle every frame and compares measured tempo with the readout and the theory; output inmeasure-output.json, screenshots indocs/.review-notes.md: the most important simplification, why motion teaches more than a paragraph, and the v2 changes.prompts/,docs/session-log.md,skills-lock.json: my three prompts, a readable log of the sessions, and the skill version I used. The skill itself is not copied here; install it withnpx skills add wheresryan22/anatomy -a claude-code.
How to run¶
xdg-open figure/v2/metronome.html # drag the weight, press E
node figure/v2/check-model.mjs
node figure/v2/measure.mjs # needs Google Chrome
# to rebuild: npx skills add wheresryan22/anatomy -a claude-code, then node figure/v2/build.mjs
Verification¶
I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.
rm -rf /tmp/av && mkdir /tmp/av && cp -r figure /tmp/av/ && (cd /tmp/av && node figure/v2/check-model.mjs >/dev/null && node figure/v2/measure.mjs >/dev/null 2>&1 && python3 -c "import json;b=json.load(open('figure/v2/measure-output.json'));assert not b['errors'];[(lambda w:(abs(w['measuredBpm']-w['theoryBpm'])<0.5 or (_ for _ in ()).throw(AssertionError(k))))(b[k]) for k in ('startWindow','explodedWindow')]") && echo ANATOMY OK
Notes¶
The v1 notes were written before its files moved into figure/v1, so a path or two in them is out of date. Claude Code chose a hanging pendulum for v1 and an inverted rod on a spring for v2, as in a wind-up metronome; the v2 amplitude is held by the escapement standing in for a real one. The measurement shows the page agrees with its own model, not with a real metronome.
Original project: https://nextwork.ai/projects/fc800e5d-42ae-42cd-b1c5-0d1d875b6e0d ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf /tmp/av && mkdir /tmp/av && cp -r figure /tmp/av/ && (cd /tmp/av && node figure/v2/check-model.mjs >/dev/null && node figure/v2/measure.mjs >/dev/null 2>&1 && python3 -c "import json;b=json.load(open('figure/v2/measure-output.json'));assert not b['errors'];[(lambda w:(abs(w['measuredBpm']-w['theoryBpm'])<0.5 or (_ for _ in ()).throw(AssertionError(k))))(b[k]) for k in ('startWindow','explodedWindow')]") && echo ANATOMY OK
ANATOMY OK
[exit code 0]