Ingest — a skeleton you did not author
Load this when what you were handed is already a skeleton: a skeleton.json
with its .atlas and page images, and a request to understand it, answer a
complaint about it, re-express it, or extend it. Every rule below is owned by
INGEST.md; this file says when to open it and what it will
not do for you.
📖 A failure line ends with the command that prints its row of the guide —
(see rigc guide <RULE>). Run that command first, before reading anything else:
it prints that rule's row of the shipped guide and nothing else. rigc guide §<n>
(and §<n>.<m>, §<n>.<m>.<k>) prints the section's heading, own prose and
subsection index from docs/AUTHORING.md; add --all to include subsection
bodies. A leaf prints its full text either way. Sizes describe full ledger spans;
--all with a rule name is refused, exit 2. A compile error points at its stable
CE_ code row. rigc guide §5.1.<k> prints a numbered compile-error group of
at most 30,000 UTF-8 bytes, and rigc guide §5.1 prints the introduction and
index within that same limit; only legacy uncoded library errors point at §5.1.
Non-negotiables
- Validation is never bypassed.
validatereads a foreign file as it is, andbuildwrites nothing on a red gate — AUTHORING §0. - The compiler never invents a value, and neither does the decompiler. The
specs state every bone, slot and key; what the export left implicit is written
down before it compiles.
rigc ingestobeys the same rule from the other side — what it cannot read out of the skeleton is a named finding, never a guess — INGEST §2.0 and §2. - The validator's messages are the instructions. A red line on an export is a fact about the file, and sometimes about the rule — INGEST §3 says which, and AUTHORING §5 names the file to change.
Start here: rigc ingest
bashrigc ingest hero.json --out specs/ rigc build --rig specs/rig.json --motion specs/motion.json --images parts/ --out build/
It reads the skeleton — only the skeleton — and writes the rig spec and motion
spec that rebuild it: byte for byte for a skeleton rigc emitted, and for an editor
export the weaker claim diff measures, with three kinds of benign difference left —
INGEST §2.3. Two values it will not guess: the
stage (a skeleton that declares none is carried as declaring none, and --stage
adds a box to one — an editor export may be such a file, though every one in the
example corpus carries a box, and passing the flag at a file that declares a box is
refused rather than ignored) and each animation's duration (the largest key time,
recorded as a finding).
Read findings.json: a BLOCK line means the rebuild will be missing something and
the command exits non-zero. Every code it can print — gutter, exit, meaning, what to
do — is the finding-code table in INGEST §2.0. Keep the note both specs carry.
What this guide will not do
rigc still cannot edit a skeleton: there is no command that opens one and
changes it, so every change is expressed in the specs — INGEST §0. diff's ratios
say how much of a reference's structure a candidate reproduces, so extending or
renaming a foreign skeleton lowers them by design, and neither validate nor diff
has a pass bar — INGEST §0 and §4.
⚠️ This section said "there is no route from it to specs, so every change goes
through transcription" until 2026-09-17. That route exists now and it is the first
thing to reach for; transcription by hand is what you fall back on for a construct
ingest reports as a blocker.
Read, in this order
- INGEST.md — what every command will and will not do with
a foreign file (§0),
ingestand transcription (§2), what each validator complaint means on an export (§3), and the re-pivot, rename and extend recipes (§4). - AUTHORING.md — the two spec files the transcription targets (§3–§4), the failure map (§5–§6), and the coordinate contract (§11.2).
- Then RIGGING.md for why the re-pivot edit has the shape it has, and MOTION.md for the animation you are adding.
Every guide linked here is in the installed package at node_modules/@rig-c/core/docs/,
which is the copy that matches the rigc you run; the links go to the repository's
main. Inside the Claude Code plugin the same files are at ${CLAUDE_PLUGIN_ROOT}/docs/.
The install line and the build → validate → render → check loop are in the rigc
skill.


