{No thinking needed}Hand this tutorial to your agent in one click

A key section of this article is locked, and an agent opening the link cannot see it either. Unlock it first, then copy the full text for your agent in one click.

Tutorial/Dec 1, 202614 min

Have your AI agent turn an exercise into live anatomy

Share

Intermediate tutorial: give your AI agent the free, open-source anatomy skill, run the push-up example, pick a single-joint exercise with a big range of motion using three rules, write prompts for a start image, an end image edited from it and a looping video, then let the agent track the bones frame by frame, measure the joint angle and muscle lever, and build a 30-second vertical film and an anatomy page people can drag and tap on a phone. You sign off on the numbers. Includes 3 copy-ready prompts.

Machine translation. Read the original

What you'll get

Name an exercise, say a push-up or a calf raise, and your AI agent opens up the joint involved and turns it into a 30-second vertical film, plus a web page that works on a phone: drag a slider and the joint bends, tap a muscle for a short explainer, wipe across to reveal a tissue map. It runs on the free, open-source anatomy skill on GitHub, and there are 3 prompts you can copy.

One thing to be clear on: the pictures are generated by AI, but every angle, lever and shortening on screen is measured off those pictures by your AI agent, frame by frame. Nothing is typed in. Your part is choosing the right exercise, checking the two images, and signing off on the numbers.

Five steps per exercise: pick a movement, make the start and end images, generate the motion, track the bones, export the film and the page

Who it's for

  • Personal trainers and PE teachers. "Which muscle does this work, and why does the triceps strain so hard in a push-up?" lands far better as a page people can drag and tap than as a poster on the wall.
  • Physiology and anatomy teachers, and science communicators. Build a set of joint explainers: the film goes on social media, the page goes to students.
  • Creators who want interactive explainers. Swap the exercise and the same method gives you a new episode.

What you need

  • An AI agent that can install skills. The author used Claude Code, which needs a paid plan.
  • Two generators, one for images and one for video. The image one has to accept a reference image and edit an existing image; the video model must let you pin the opening, midpoint and closing frames. By the author's numbers, generation costs about $3 per exercise (a pair of 4K images plus a ten-second video).
  • FFmpeg plus Python 3 and Node 18 or newer. Your agent can set these up.
  • Any ordinary computer. Tracking and rendering run locally, with no GPU required.

Step 1: Install the skill and run a ready-made example

The repo already includes three finished exercises (curls, push-ups and calf raises). Build one of them as-is first, to confirm your setup works and to see exactly what you'll end up with.

Install the open-source anatomy skill for me (https://github.com/Nyxera0x/anatomy, MIT license):
1. Follow the repo README to install it, then run npm run setup and pip install -r requirements.txt once inside the skill's folder. If Python, Node 18 or FFmpeg is missing, ask me before installing it.
2. Use its built-in command to build the push-up example end to end: both the film and the page.
3. Open the page through a local web server (not by double-clicking the file) and give me a link I can click.
4. Make a contact sheet of the film with the repo's sheet.mjs, check it yourself for overlapping labels and black frames, then report back.

Item 3 matters because the page streams its video in pieces, and that fails when you open the file straight from disk.

The push-up example's start image: forearm vertical on the floor, upper arm horizontal, triceps stretched

This image and the next one come from the project repo: the bottom and the top of a push-up as two "specimen" shots. For your own exercise, the goal is a matching pair like this.

Step 2: Pick an exercise that actually moves

Pick the wrong exercise and no amount of tweaking saves it. The author's hard-won rules come down to three:

Rule Why Bad pick
A single joint with a wide range The limb section should rotate at least 60 degrees and the muscle should visibly swell, otherwise the clip barely seems to move A joint that only shifts a few degrees
No faces or heads Skinless faces look gruesome and platforms flag them, while an arm or leg looks like something from a museum Neck or facial muscles
Nothing but specimen in the frame A dissected arm ending in a hand with skin looks glued on, and a cut stump in frame is jarring A limb that's half dissected, half intact

Squats (knee), lunges, pull-ups (elbow) and wrist curls all fit.

Step 3: Make two images, and the second is always an edit of the first

This is the step everything rests on. The first image is the start of the movement and the second is the end. The end image must be an edit of the start image, not a fresh generation. An edit keeps the muscle and the lighting on the same pixels, so when the video model fills in the motion it doesn't morph one arm into another.

Sign in to unlock this key section

New accounts get 10 free credits, plus 1 more each day you sign in (none on days you don't). Spend 1 credit to unlock and it stays open for you.

When the images come back, check the anatomy first (number of bones, where the muscles sit), then the framing: in the other pose, the moving segment must stay inside the frame too. On the author's first try with no reference image, the model mistook the arm braced against the ground for a leg, complete with a kneecap at the elbow. Adding the reference image fixed it.

If the framing is off, don't regenerate yet. Have your agent pull the camera back with the repo's reframe.py and crop away any skin or cut ends. Cropping is free; another generation isn't.

The push-up example's end image: arm straight, triceps contracted, shorter and thicker

Step 4: Generate the video, then let the agent measure the bones and build the film and page

Give the two images to your video model as start = image 1, middle = image 2, end = image 1, generate 10 seconds, download it and hand it back:

The video is ready: [path to video]. Carry on with the anatomy skill:
1. Re-encode it without metadata and put it in this exercise's folder.
2. Make the grid images and pick 8 to 12 textured tracking points on each of the two bones, find the joint centre and the muscle's line of pull (where the tendon wraps around the joint, follow the tendon instead of drawing a straight line), and use one bone of known length for scale.
3. Run the tracking and check track_sheet yourself: do the points stay on their bones, does the pivot sit on the joint? Then sanity-check the numbers: the lever should be 1.5 to 5 cm, and the angle range must be one this joint can really do.
4. Update the chapter text, camera, labels and the tissue map's reference colours (sampled fresh from this video), then build the 30-second film and the page.
5. Make a contact sheet of the film and check each chapter for labels covering the captions or buttons. Then give me the film's path, the page link and the key numbers you measured.

"Follow the tendon" in item 2 was learned the hard way. The author's first version ran the line of pull directly from the elbow tip to the middle of the muscle, which gave a lever of just 1.2 cm and had the muscle pulling 21 times the hand's force, clearly wrong. Routed along the tendon over the end of the upper-arm bone, the reading became roughly 1.7–2.4 centimetres, in line with the roughly 2 cm textbooks give.

The colour sampling in item 4 has a similar story. Reusing the calf raise's colours on the push-up painted the bones the colour of cartilage, because the bones in the two clips are lit differently.

Step 5: Check the numbers before you publish

Once it's done, you only need to check three things:

  • Angle. Does the range match the real movement? The push-up example measures an elbow angle going from 83° up to 163°.
  • Lever and force ratio. Is the lever within reason? In the example the triceps' lever is about 2 cm and the palm sits 25 cm away from the elbow, meaning the muscle pulls about 13 times what the hand pushes. Standing on one foot for a calf raise, the Achilles tendon carries roughly 2.3x your body weight.
  • The page. Open it on your phone: drag the slider, tap a muscle, swipe the tissue map, once each.

If a number looks off, send the agent back to step 4 to look at the tracking sheet again. Don't just edit the number.

Watch out for

  • These numbers are measured off AI-generated pictures. They're good for explaining principles and for education, not for medical or rehab decisions.
  • Your video generator needs to accept opening, midpoint and closing frames. With only first and last frames, the motion rarely returns cleanly to where it began.
  • Check each platform's rules before posting: cutaway anatomy can get collapsed or labelled on some platforms, and picking exercises without faces avoids most trouble.
  • Of the repo's three examples, the biceps curl takes its lever from a textbook curve; the other two measure it from the footage. Say so when you teach with them.

References

Done with this one? Mark it to track your path.Sign in
Save it for laterSign in
Questions about this piece?Ask AI about this

Comments (0)

No comments yet. Start the conversation.

Sign in to join the discussion.Sign in