🏗️

2D Image Rigging and Animation with rig-c

Tags
AI
AgenticAI
Claude
GameDev
Animation
Rigging
Spine
OpenSource
Projects
Description
rig-c began with my solo game project. Making a demo trailer to test its tools led to pose retargeting and 2.5D. I refined error messages to tell AI agents why checks failed and what to fix, then kept improving rig-c by using it in my next game.
Published
Published Oct 11, 2026
On this page
I'm making a game on my own with web technology. I can work my way through the code, but the CG side was more than I could handle alone. Drawing characters, separating them into layers, placing bones, and animating them involved too much I didn't know. So I started testing how much of that process an AI agent could take over.
rig-c brings together the tools that turn a painting into separate parts, a skeleton, and motion. I didn't start with a grand plan for a toolchain. I needed to get the characters in my game moving.
The trailer below came out of that work. A character sits on a swing, tilts its head, swings its legs, hops, and waves. I didn't place a single bone myself. This was less than two months after I started the project on August 16. This post walks through how I communicate with the agent in everyday language and work with it to fix broken rigs.

The file loads, but the character is broken

At first, I thought the job was done when the agent's file passed the parser. Spine's parser turned out to be more forgiving than I expected. A constraint written the 4.2 way could silently disappear in 4.3, and a malformed curve could produce NaN. The file loaded, the agent reported “done,” and only later, when I watched it move, would I discover a part coming loose.
The agent had no signal that it had failed, and no feedback telling it what to fix. I couldn't keep adding characters that way.
So I changed the workflow. Instead of writing the final file directly, the agent writes two JSON specs, one for the rig's structure and one for its motion, and submits them to a compiler. At that stage, rigc checked them and produced Spine 4.3 data. If the checks failed, it wrote no output. The compiler documentation describes what it checks and what it returns when something fails.

Parting ways with Spine

One decision along the way changed the project's direction: parting ways with Spine. Early on, Roa(My AI Agent) kept asking me to buy the tool first, so I spent a hefty ₩500,000 or so on Spine Pro. My early toolchain depended on spine-core, and the workflow I had built effectively required users to have the paid Spine Pro editor too.
Only later did I realize that Spine already had an established industry and artist community around it. From what I saw, resistance to AI seemed particularly strong in that community. Taking that atmosphere into account, I decided there wasn't much to gain from continuing to build around and contribute to the Spine ecosystem.
So I removed the requirement to install spine-core. What I was building was closer to a validator: it checks rigs written by agents and points out what's wrong. That job didn't need a mandatory Spine runtime dependency.
Today, rig-c uses its own format, skeleton.model.json, with its own player. It can still import Spine 4.3 data and export it again. Some features use spine-core as an optional install, but the basic build and playback of rig-c's own model don't need it. The separate terms for choosing the Spine editor or an official runtime are covered in the licensing documentation.

Explaining failures so the agent can fix them

The wording of an error mattered as much as adding another check. If an image was missing, “build failed” only sent the agent wandering again. Naming the file and the path where the tool had looked let it fix a bad filename or path without hunting through documentation.
For example:
FAIL A17_ATLAS_PAGE_FILES_EXIST: page "../images/hull.png" is not on disk at …/images/hull.png
The same principle applies to measurements. Instead of “weight error,” the message names the mesh, the vertex, and the weight sum it found. I sometimes spent more time refining those lines than writing documentation. The agent needed enough information to decide what to do next.
I also stopped the compiler from guessing values missing from the spec. If a required number is absent, it names the field and stops. That keeps measured values separate from anything the tool might otherwise fill in on its own.
These checks only establish structural validity. A head can sit beside the torso and still pass if the spec asks for it and the data is otherwise valid. Someone still has to watch the result. Making the trailer brought that distinction home.

"Go make the trailer yourself"

I needed a progress check to see what the tools could actually do. So I casually asked Roa (Claude), the HQ agent directing the project, “Want to try making one yourself?”
Roa split the prepared artwork into layers, wrote the rig config for rig-c, attached the swing to the character’s skeleton, and added physics to each strand of hair. It also choreographed the performance and composited the video.
Having it try its own tools from a user's point of view paid off right away. It ran into five defects in a single day. Long hair hanging down the back quietly disappeared during assembly, for example, and a checker assumed that the character would be standing. Three of those defects were fixed and released that same day. The process and fixes are recorded in the trailer repository.
Those were all caught by the tools or found by Roa while reading its own reports. The really interesting ones were the problems I spotted while watching the video.

All the checks passed, but the picture looked wrong

This was all the feedback I gave that day:
  • "The shape of the eyes doesn't match the tilt of the face."
  • "The chest doesn't move. Looks like a paper doll."
  • "The hand is too small. An open hand should be about the size of the face."
  • "The wrist looks broken when the character waves."
None of that told Roa how to fix the rig. An expert might have said, "Rotate the eye bones 24 degrees." I can't give that kind of instruction. I can only point out what looks wrong. Yet all four problems had passed every check.
notion image
Let's start with the eyes. The character was painted with its head tilted. A later measurement put the tilt at 23.7°. But the eye bones stood straight up, aligned with the page. Blinking squashes the eyes along the bones' vertical axis, so the eyes were being compressed relative to the page instead of the face. When they closed, two perfectly horizontal lines appeared on the tilted face. From my one comment, Roa worked out the angle, rotated the five bones for the eyes, eyebrows, and mouth to align with the line through the eyes, and brought me before-and-after images.
What happened next was my favorite part. I thought Roa would fix the trailer and stop there. Instead, it asked, "Could this happen with other characters too?" It turned out to affect every character painted with a tilted head. By that evening, two issues had been opened. One proposed changing the tool so it would orient the bones to match the face from the start. The other proposed a new rule to check that any rig followed that alignment. The check was merged that same day. My nagging had become a test.
The wrist problem came from two mistakes at once. The forearm attached to the palm was 14° out of alignment with the sleeve, and the entire hand was swinging ±15° around the cuff, out of sync with the arm. Now the forearm lines up with the sleeve, and only the hand moves slightly at the wrist, following half a beat behind. Of course, I knew none of that. I just knew it looked broken.

Human review and AI fixes

I actually started that day apologizing: "I'm not an expert, so my instructions are a bit clumsy." But I wanted this tool to work with exactly that kind of feedback. I point out what looks wrong, and the agent figures out how to fix the rig. I shouldn't have to specify bone angles myself to get something corrected.
Watching it move revealed problems the automated checks had missed. Once Roa found the cause, we could turn it into a rule to check for next time, just as we did with the tilted face.

This could work. What next?

There were things to fix, but the trailer exceeded my expectations. I was honestly surprised. AI had reached the point where it could imitate Spine rigging well enough to produce something that actually moved. What began as a casual progress check left me thinking, “This could work.”
I had to decide whether to stop there or take on more. I chose to build features of rig-c's own.

Turning pose data into motion

Pose was the first thing I tackled. You can give Stable Diffusion a stick-figure-like pose and get a picture in that pose. Could we take pose data and turn it into motion for a rig?
It worked remarkably well. Rather than describing how human joints move and asking the agent to guess rigging values, giving it data about joint positions and movement seemed a better fit for AI. That became the tool for retargeting pose motion onto a rig.
Poses were extracted from a dance challenge video and applied to the rig. The skirt's movement comes from physics.

Adding 2.5D with depth maps

The second feature was 2.5D. With a depth map, could a flat, drawn character turn its head with a sense of 3D volume? I thought it would be a big step if that worked too.
I wanted to expand the movement we could get from the same starting point: one painting. There are limits, since it can't invent every surface the original never showed. Still, I could see room to go beyond simply shifting parts back and forth.
I covered the resulting depth-driven rig and how to use it in a separate post, 🩻Depth-Driven 2.5D Rigging Interface.

My next game is the first user

That was when I decided to take the project further. I set up the GitHub organization and domain, and organized the tools so other projects could use them. I also made one firm rule: we would use our own tools in our own projects first.
My next game became the toolchain's first consumer. This went beyond running a demo; it was in actual development. The AI agents building that game sent a flood of feedback and bug reports back to rig-c. Things that seemed fine from the tool developer's side kept revealing problems when another project tried to use them.
Apparently, there's a name for that: dogfooding. For the trailer, I had asked HQ to use the tools itself. Now the next game keeps using them and pushing them forward. What matters most to me is whether they actually work in that project.

Does it work for an agent that has never seen it?

I also wanted to know whether the tools only worked well for the agents I had been developing them with. So I made a public exam. A fresh session gets the installed packages' README and help, then works through a set of tasks. Before each command that changes a file, it records what it read and what it expects to happen. Gaps between expectation and reality reveal where the tools' explanations fall short.
In the October 20, 2026 round, eight models from three families completed five tasks. On the dance task, six passed every machine-checked line. But when one person judged the rendered clips with the model names hidden, those six results scored anywhere from 3 to 9 out of 10.
That was one run per model and one judge, so it isn't a basis for general claims about which model is better. What mattered to me was the visible difference in quality among results that passed the same checks. Failed attempts are kept too, along with the measurements that stopped them.
There are limits to animating a single painting as well. It may suit small gestures, but raising an arm high or turning the body far can expose areas the drawing never showed. Additional drawings or changes to the parts may be needed. I've documented the retargeting process and its limits with examples and measurements.
The workflow I want is straightforward. The agent builds, the tools catch the errors they can check, and a person watches the motion and points out what looks wrong. The agent finds the cause, fixes it, and leaves a check that can help on the next job. If I still need to become a rigging expert before I can get a character moving, the problem that started all this remains unsolved.

Try it yourself

To see the output first, open the browser examples. For a first attempt, I recommend Getting Started, which comes with a painting and separated layers already prepared. That route lets you try rigging with Bun, without Python or a GPU. Image generation and layer separation happen separately beforehand.
You can also reproduce this article's trailer. The trailer repository includes the artwork, separated layers, config, and scripts. That route includes video compositing and requires Bun, npm, and Python.
git clone https://github.com/rig-c/trailer && cd trailer pip install -r requirements.txt ./build.sh
Rebuilding the prepared inputs with the published packages does not require a GPU. The versions and measurements used for reproduction are recorded in the repository. The README's review record also lists what I said, what was actually wrong, how it was fixed, and which issue it led to. If you read one more thing after this post, I recommend that record.
The sky, lighting, and captions were composited separately after rendering. The rig handles the character's movement.
rig-c is MIT licensed: github.com/rig-c.