2D character rigging, authored by agents

One painting in. A verified rig out.

rig-c turns a character painting, split into layers, into a rigged and animated character — Spine 4.3 skeleton data and a model a web page can play — and writes nothing until its named structural checks pass. How the result looks is still a person's call.

bunx @rig-c/core --help
Recorded video One generated painting, two See-through layer sets and a config an agent wrote, rebuilt by one command — rig-c/trailer. The sky, the lights, the mesh-and-bone reveal and the captions are the film layer (film/compose.py); the rest is the rig.

One character painting goes in; a rigged, animated 2D character that plays in the browser or imports into the Spine 4.3 editor comes out. Every stage prints named, numeric findings and refuses by name what it cannot verify, so a file that fails a check never reaches the disk. A pass is a structural fact about the data, not a verdict on how the character looks.

rig-c makes no images. The painting and its layer split (See-through) come from image models you run yourself — on your own GPU, or a free web demo. rig-c starts from those files, ships no model weights, and runs every one of its own steps on the CPU.

From loose parts to a living rig

Recorded video rig-c's mascot — the trailer's painting, built by @rig-c/parts 1.12.0 into 23 parts, a rig and an idle, then the film rig's performance compiled and rendered by rig-c 2.47.1; the labels, the glide and the dissolves are this film's; the placement and the motion are the rig's. From rig-c/trailer.
  1. Create starts the project: it interviews you, and you sign the plan before any rigging.
  2. Parts merges the painting's two See-through layer sets into rig-space parts, then drafts bones, weighted meshes, physics and a looping idle. Given per-part depth maps from a model you run, it also builds a depth-driven turn: a head that reads as having volume when its dials move.
  3. Pose cleans a recorded body-18 pose sequence and retargets it onto the rig as an animation.
  4. Core compiles the rig and motion specs and gates them by named assertions — nothing is written unless every one passes.
  5. Review lets a person look at what an agent built and hand back feedback bound to a frame, bone or slot.
  6. Play and the adapters run the compiled model in a page, PixiJS, Phaser or Three.js, with no Spine runtime.

Try the CPU-only, no-Python path from prepared example layers: Getting started pins a tested recipe through idle, wave, hello, cloth and browser playback. Its historical Apple M4 runs took 536–571 s for steps 1–10 including 9b/9c, with load average 20–95; the guide separates download/cache scope and its newer Linux reproduction. See what agents do with it on the Exam (2026-10-20: eight sittings, three families — results), and rebuild the published rigs from Examples.

The toolchain

PackageLatestInstallWhat it does
@rig-c/create3.0.0bunx rig-create init p1Starts the project: interviews you and records the plan you sign and every decision after it.
@rig-c/parts2.73.0npm i -D @rig-c/partsAssembles one character painting's decomposed See-through layers into rig-ready parts, then authors weighted meshes, bone chains, physics, and a looping idle over them.
@rig-c/pose1.7.0npm i -D @rig-c/poseCleans and retargets a body-18 pose sequence (from video, dataset, or hand-placed points) onto a rig that rig-c built, gated before keys are written.
@rig-c/core3.12.0npm i -D @rig-c/coreThe rig compiler: a rig spec and a motion spec in, Spine 4.3 skeleton data (skeleton.json + .atlas) and skeleton.model.json out — gated by named assertions before a byte is written (36 under the default --profile spine, all 50 under the opt-in --profile rig-play).
@rig-c/review5.3.1npm i -D @rig-c/reviewLocal human inspection workspace: compare setup geometry, compiled-model playback, source video/sheets, and export frame/bone/slot-bound feedback ready to become an issue.
@rig-c/play1.31.1npm i @rig-c/playPlays skeleton.model.json in the browser with no Spine runtime — as plain DOM elements (<img> with CSS matrix()) or one <canvas> per player.
@rig-c/pixi
@rig-c/phaser
@rig-c/three
@rig-c/pixi 0.2.0
@rig-c/phaser 0.2.0
@rig-c/three 0.2.0
npm i @rig-c/pixi
npm i @rig-c/phaser
npm i @rig-c/three
Plays a rig-c compiled model inside PixiJS 8, Phaser 4.2+, or Three.js 0.186+ through @rig-c/play's posing core, with no Spine runtime.

Built for agents that cannot see

An AI agent asked to author a 2D rig cannot see the screen, and standard JSON parsers accept broken rigs in silence — a 4.2-shaped constraint vanishes in 4.3, a mismatched size: collapses every UV, a four-number curve array yields NaN, and a mesh whose vertex count equals its UV count silently loses its bone weights.

rig-c replaces that silence with five rules:

  1. The messages are the UI. Every refusal names the object, the value found, and the value required. An agent reads one line and knows which field in which file to change — this is rig-c core's own example, a renamed page image:

    FAIL  A17_ATLAS_PAGE_FILES_EXIST: page "../images/hull.png" is not on disk at …/images/hull.png
    rigc: 1 assertion(s) failed
    
  2. Nothing is invented. The compiler never guesses defaults from art or fills in missing numbers. Where the input is silent, it raises a named CompileError.

  3. Emit only after green — and green means structural. rigc build writes to disk only if every named assertion of its profile passes: 36 under the default spine profile (is this valid Spine 4.3 that any runtime plays correctly?), all 50 under the opt-in rig-play profile. rig-parts build adds its own measured bars (seam, loop, folds and more) on top. None of this judges the picture: in rig-c core's words, a rig with its head off its torso passes the gate.

  4. What was not checked is printed too. Every gate report names the profile that judged it and lists, on PROF lines, the rules that profile left out. rig-parts check names each bar that said SKIP and why, and a build accepted with failing bars (compose --accept) is, in its own words, for looking, not shipping.

  5. A person looks. rigc render and rigc inspect draw what was built; @rig-c/review puts it beside the source footage and exports feedback bound to a frame, bone or slot. The checks keep broken data off the disk; Review is where someone judges whether it looks right.

Install

# Start a project
bunx rig-create init p1

# Run the compiler CLI directly with Bun
bunx @rig-c/core --help

# Install the authoring & compilation toolchain in a project
bun add -d @rig-c/parts @rig-c/core @rig-c/pose @rig-c/review

# Install the zero-Spine-runtime browser player
bun add @rig-c/play

Install Agent Skills

@rig-c/core and @rig-c/parts ship Agent Skills (skills/<name>/SKILL.md, inside each npm package) that route coding agents directly to the authoritative authoring rules:

# Codex, Gemini CLI, or Antigravity: link rig-c's skills into .agents/skills/
bun add -d @rig-c/core
bun rigc skills install

# Claude Code: the rig-c/core repository is a plugin marketplace
/plugin marketplace add rig-c/core
/plugin install rigc@rigc

Package names and aliases

rig-c is the project and toolchain brand. The scoped names above are the canonical npm package identities; the engine adapters are three separately published packages.

Convenience install names and commands

These short npm names are alternative entry points for the same products. Prefer scoped names for new installs; existing installations keep working.

Canonical packageConvenience install nameExecutable
@rig-c/createrig-createrig-create
@rig-c/corerig-crigc
@rig-c/partsrig-partsrig-parts
@rig-c/poserig-poserig-pose
@rig-c/playrig-playNone; import the browser library
@rig-c/reviewrig-reviewrig-review

Licensing, stated plainly

rig-c's code is MIT. Which Spine terms apply depends on what plays the output, because rigc writes both Spine 4.3 skeleton data and rig-c's own model (skeleton.model.json):

Sample paintings and layers carry their own licences — Getting Started's example inputs are CC BY-NC 4.0. The full table, with sources: Licensing.