@rig-c/core (rigc)
The compiler: a rig spec and a motion spec in, Spine 4.3 skeleton data out — and nothing written unless every named check passes.
"bone": "chest",
"x": -112,
"y": 315,
- "weight": 0.32227
+ "weight": 0.42227 FAIL A20_MESH_WEIGHTS_COHERENT: mesh "neck"
vertex 0 weights sum to 1.1000
(see rigc guide A20_MESH_WEIGHTS_COHERENT)
.. 52 assertions: 21 measured
(20 passed, 1 failed), 17 skipped
rigc: 1 assertion(s) failed — nothing written
exit=1 .. 52 assertions: 21 measured
(21 passed, 0 failed), 17 skipped,
14 not in profile "spine"
rigc: wrote build/skeleton.json
rigc: wrote build/skeleton.atlas
rigc: wrote build/skeleton.model.json
exit=0Real output from Character 1's rig, rig-c 2.61.0 (long lines wrapped). Why the summary says 52 when the gate has 50 rules: below. Skip to Install · Inputs and outputs · Limits · Docs
An agent authoring a rig cannot tell whether it succeeded, because Spine's JSON parser accepts a lot of nonsense silently: a constraint in the 4.2 shape simply vanishes, a size: that disagrees with the PNG collapses every UV, a four-number curve array yields NaN. Each of these loads clean, plays, and is wrong. rigc makes the failure legible: every refusal names its rule and the value it found, ends with the command that explains it, and leaves nothing on disk.
rigc pose reads back where every part sits in each picture; two candidate in-betweenings are compiled from the same pair; and a real rigc vote ballot picks the winner — the movement between the poses is the one thing nothing in the toolchain grades. Five shots: the two pictures, rigc pose's report on pose B, the two candidates, a photograph of the real ballot page, and the winner at full size; the command in the band is the one that produced the shot above it. Everything on screen is compiled output or a photograph of a real page, and every number on it was printed first by a tool. The character is film one's; the poses and the three motion specs are the only new authoring. From the rig-c/core README, built under the package's earlier name, spine-rigc — shot 2 is spine-rigc 0.9.0's report, not what rigc pose prints today.Three mistakes an agent makes, on one rig
Each case starts from a fresh copy of Character 1's rig.json, motion.json and its 17 part images, built with bunx rig-c@2.61.0 build --rig rig.json --motion motion.json --images images --out build.
compile A slot names a bone that does not exist
{
"name": "face",
- "bone": "head",
+ "bone": "haed",
"attachment": "face"
rigc compile error: rig.json: slot "face" names bone "haed", which this rig does not declare (see rigc guide CE_RIG_SLOT_BONE_UNKNOWN)
exit=1
rigc guide CE_RIG_SLOT_BONE_UNKNOWN prints that rule's row from the authoring guide, fix included: Name a declared bone in slot.bone. No build/ directory exists afterwards.
compile An image the rig names was renamed on disk
mv images/hair_front.png images/hair-front.png, with rig.json still naming hair_front.png:
rigc compile error: image "hair_front.png" is not on disk at images/hair_front.png (see rigc guide CE_COMPILE_IMAGE_MISSING)
exit=1
The guide's fix: Supply the PNG at the named images path or correct the image name.
gate One vertex's weights do not sum to 1
This one compiles; the gate measures it and refuses — the case at the top of this page. Its guide row covers a weighted vertex with no bone, a negative weight, a bone index out of range, or weights that do not sum to 1.
Put each value back and the same command passes, writing files byte-identical to the clean build. The two compile refusals stop before the gate runs, so they print no assertion summary; the third is a gate FAIL with one.
Passing is structural; looking is separate
A green gate says the data is valid Spine 4.3 that plays without errors — in core's own words, a rig with its head off its torso passes the gate. So rigc also draws what it built, with no reference needed:

rigc render --candidate build --animation idle — idle 41 frame(s), 3.333s + contact.png
rigc inspect … --show art,weights:chest,mesh --zoom slot:neck — the neck mesh after the fix, coloured by its chest weightWhen a person needs to judge the motion against footage and hand back notes, that is Review.
How the gate decides
-
Measure the art. rigc reads the PNGs themselves instead of trusting sizes you typed, so the skeleton and the atlas cannot drift apart.
-
Compile two specs. The rig spec (
rigc-rig/1) holds structure — bones, slots in draw order, skins. The motion spec (rigc-motion/1) holds time — animations, tracks, keys. -
Gate. The default profile,
spine, runs the 36 validity rules: is this valid Spine 4.3 that any runtime plays correctly?--profile rig-playruns all 50; the extra 14 are one renderer's and one canvas budget's policy, which is why they are opt-in. Every report names its profile and lists, onPROFlines, the rules it left out.Why a report counts 52. The registry holds 50 named assertions, and
spine+ the 14 policy rules = 50. The published package links no Spine runtime, so the round trip's own parse,A00_ROUNDTRIP_PARSE, reports SKIP; in its place the report also carries the model side's two parse rules,A00_MODEL_READandA00_MODEL_REGIONS_ON_PAGES, which the registry does not hold — so the summary totals 52 (rig-c 2.61.0, as in the runs on this page: 21 measured + 17 skipped + 14 not in profilespine). -
Write, or refuse. Only a green gate writes
--out.
The published package links no Spine runtime, so A00_ROUNDTRIP_PARSE — Spine's own parse — reports SKIP. Install @esotericsoftware/spine-core beside it and the same rigc runs that round trip too, plus validate, preview, vote, bench and bonedist.
Key terms. Rig spec — bones, the slots array (the setup draw order) and skins. Motion spec — the time file, aimed at the rig by name. Named assertion — a rule the gate runs; each failure names it. Profile — the rulebook: spine (default) or rig-play. ingest — build run backwards: a Spine 4.3 skeleton.json in, the two specs that rebuild it byte for byte out.
Install
bun add -d @rig-c/core
bun rigc build --rig rig.json --motion motion.json --out build/
The published package declares Bun 1.4.0 or later. The canonical npm package is @rig-c/core; rig-c is its convenience install name, and the command is rigc. Licensing by playback path: Licensing.
Inputs and outputs
| In | Out |
|---|---|
| Part PNGs | skeleton.json + skeleton.atlas — Spine 4.3 data |
A rig spec (rig.json) | skeleton.model.json — rig-c's own compiled model, for Play |
A motion spec (motion.json) | the gate report (--report also writes it as JSON) |
| — | on a refusal: the named lines, and nothing on disk |
Limits
- The gate is structural. It does not judge the picture;
renderandinspectare for looking. - The round trip needs spine-core. Without it,
A00_ROUNDTRIP_PARSEis SKIP andvalidate,preview,vote,bench,bonedistdo not run. - Packing is opt-in and narrow —
--packand--atlas-indo no trimming, rotation or scaling. - It emits Spine's format. What a product may do with that data, and with a Spine Runtime, is in Licensing.
Go deeper
- README: What you get · Install · Install it into your agent
- README: First rig in ten minutes
- README: Commands and Starting from a skeleton you already have
- README: Licensing, stated plainly and NOTICE.md
- docs/AUTHORING.md — the format guide; read it before writing a spec
- docs/RIGGING.md · docs/MOTION.md · docs/FACE.md · docs/INGEST.md · docs/PROMPTING.md
- docs/BENCHMARK.md — why you can trust the output, and the 50 assertions with their profiles
- npm: @rig-c/core · CHANGELOG.md
- Start here: /docs/getting-started/